assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Open

                                        __(
Severity: Minor
Found in class-settings.php by phpcodesniffer

Found precision alignment of 2 spaces.
Open

                                                  strpos( $site, 'https://' ) !== false )
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Open

                                        __(
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "wpldp_plugin_update"
Open

        function wpldp_plugin_update() {
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
Open

            $menu_id = $locations[ $menu_name ] ;
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$term'.
Open

                <?php echo $term->name; ?>
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Opening PHP tag must be on a line by itself
Open

        </ul><?php
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
Open

            echo "<p class='description'>" . __( 'WordPress site that you know and that the WP-LDP plugin is installed', 'wpldp' ). '</p>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
Open

                            'label' => __( 'Organization', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

json_encode() is discouraged. Use wp_json_encode() instead.
Open

                        $ldp_model = json_encode( json_decode( $term_meta['ldp_model'] ) );
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

"require_once" is a statement not a function; no parentheses are required
Open

require_once( 'class-settings.php' );
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Concat operator must be surrounded by a single space
Open

            echo "<th scope='row'><label for='ldp_site_url'>" . __( 'web site', 'wpldp' ). '</label></th>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$resource_uri'.
Open

                            container: '<?php echo $resource_uri; ?>',
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
Open

                            'label' => __( 'Event', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Opening PHP tag must be on a line by itself
Open

            ?><ul><?php
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Concat operator must be surrounded by a single space
Open

            echo "<p class='description'>" . __( 'WordPress site that you know and on which the WP-LDP plugin is installed', 'wpldp' ). '</p></td>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$resource_uri'.
Open

                        wpldp.render('#ldpform', '<?php echo $resource_uri; ?>', undefined, undefined, '<?php echo $term[0]->slug; ?>');
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 8 space(s) between "'person'" and double arrow, but found 1.
Open

                        'person' => array(
Severity: Minor
Found in class-settings.php by phpcodesniffer

In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to true to load it in the footer, or explicitly false if it should be loaded in the header.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Processing form data without nonce verification.
Open

            if ( isset( $_POST['ldp_site_url'] ) ) {
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer
Severity
Category
Status
Source
Language