assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

            $meta_name = $params['meta_name'];
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                $resource_uri = get_rest_url() . 'ldp/v1/' . $ldp_container->slug . '/' . $resource->post_name . '/';
Severity: Minor
Found in class-utils.php by phpcodesniffer

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

                $fields = $models_decoded->{$value->slug}->fields;
Severity: Minor
Found in class-utils.php by phpcodesniffer

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

                    $project_term = get_term_by( 'slug', 'project', 'ldp_container' );
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Usage of a direct database call is discouraged.
Open

            $result = $wpdb->get_results(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Open

            $result = $wpdb->get_results(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 2 space(s) between "'show_in_nav_menu'" and double arrow, but found 6.
Open

                    'show_in_nav_menu'      => true,
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Resource version not set in call to wp_register_script(). This means new versions of the script will not always be loaded due to browser caching.
Open

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

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

                                                $term = wp_insert_term(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Detected usage of a non-validated input variable: $_SERVER
Open

            $current_url = $_SERVER['REQUEST_URI'];
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Processing form data without nonce verification.
Open

            if ( isset( $_GET['settings-updated'] ) || $force ) {
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

Resource version not set in call to wp_register_style(). This means new versions of the style will not always be loaded due to browser caching.
Open

            wp_register_style(
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' => __( 'Initiative', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Detected usage of a non-validated input variable: $_SERVER
Open

            $current_url = $_SERVER['REQUEST_URI'];
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

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

                            $term_meta['ldp_model'] = stripslashes_deep( $model );
Severity: Minor
Found in class-settings.php by phpcodesniffer

Each array item in a multi-line array declaration must end in a comma
Open

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

Processing form data without nonce verification.
Open

                if ( ( isset( $_GET['settings-updated'] ) && 'true' === $_GET['settings-updated'] ) ) {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "wpldp_validation_notice"
Open

        function wpldp_validation_notice() {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "menu_setup"
Open

        function menu_setup() {
Severity: Minor
Found in class-settings.php by phpcodesniffer
Severity
Category
Status
Source
Language