lesterchan/wp-sweep

View on GitHub

Showing 326 of 326 total issues

The variable $parent_term_ids is not named in camelCase.
Open

    private function get_excluded_termids() {
        $default_term_ids = $this->get_default_taxonomy_termids();
        if ( ! is_array( $default_term_ids ) ) {
            $default_term_ids = array();
        }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_default_taxonomy_termids() {
        $taxonomies       = get_taxonomies();
        $default_term_ids = array();
        if ( $taxonomies ) {
            $tax = array_keys( $taxonomies );
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ms_site is not named in camelCase.
Open

    public function plugin_deactivation( $network_wide ) {
        if ( is_multisite() && $network_wide ) {
            $ms_sites = (array) get_sites();

            if ( 0 < count( $ms_sites ) ) {
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_excluded_termids() {
        $default_term_ids = $this->get_default_taxonomy_termids();
        if ( ! is_array( $default_term_ids ) ) {
            $default_term_ids = array();
        }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $term_id is not named in camelCase.
Open

    private function get_default_taxonomy_termids() {
        $taxonomies       = get_taxonomies();
        $default_term_ids = array();
        if ( $taxonomies ) {
            $tax = array_keys( $taxonomies );
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $option_name is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $check_wp_terms is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_default_taxonomy_termids() {
        $taxonomies       = get_taxonomies();
        $default_term_ids = array();
        if ( $taxonomies ) {
            $tax = array_keys( $taxonomies );
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ms_sites is not named in camelCase.
Open

    public function plugin_activation( $network_wide ) {
        if ( is_multisite() && $network_wide ) {
            $ms_sites = (array) get_sites();

            if ( 0 < count( $ms_sites ) ) {
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $comment_id is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_excluded_termids() {
        $default_term_ids = $this->get_default_taxonomy_termids();
        if ( ! is_array( $default_term_ids ) ) {
            $default_term_ids = array();
        }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $parent_term_ids is not named in camelCase.
Open

    private function get_excluded_termids() {
        $default_term_ids = $this->get_default_taxonomy_termids();
        if ( ! is_array( $default_term_ids ) ) {
            $default_term_ids = array();
        }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $ms_sites is not named in camelCase.
Open

    public function plugin_deactivation( $network_wide ) {
        if ( is_multisite() && $network_wide ) {
            $ms_sites = (array) get_sites();

            if ( 0 < count( $ms_sites ) ) {
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $term_id is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function sweep( $name ) {
        global $wpdb;

        $message = '';

Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $excluded_taxonomies is not named in camelCase.
Open

    private function get_excluded_taxonomies() {
        $excluded_taxonomies   = array();
        $excluded_taxonomies[] = 'link_category';

        return apply_filters( 'wp_sweep_excluded_taxonomies', $excluded_taxonomies );
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_excluded_termids() {
        $default_term_ids = $this->get_default_taxonomy_termids();
        if ( ! is_array( $default_term_ids ) ) {
            $default_term_ids = array();
        }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $default_term_ids is not named in camelCase.
Open

    private function get_default_taxonomy_termids() {
        $taxonomies       = get_taxonomies();
        $default_term_ids = array();
        if ( $taxonomies ) {
            $tax = array_keys( $taxonomies );
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $network_wide is not named in camelCase.
Open

    public function plugin_activation( $network_wide ) {
        if ( is_multisite() && $network_wide ) {
            $ms_sites = (array) get_sites();

            if ( 0 < count( $ms_sites ) ) {
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language