lesterchan/wp-sweep

View on GitHub

Showing 326 of 326 total issues

The method plugin_deactivated is not named in camelCase.
Open

    private function plugin_deactivated() {
    }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_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

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_excluded_termids 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

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_parent_termids is not named in camelCase.
Open

    private function get_parent_termids() {
        global $wpdb;
        return $wpdb->get_col( $wpdb->prepare( "SELECT tt.parent FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.parent > %d", 0 ) );
    }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method format_percentage is not named in camelCase.
Open

    public function format_percentage( $current, $total ) {
        return ( $total > 0 ? round( ( $current / $total ) * 100, 2 ) : 0 ) . '%';
    }
Severity: Minor
Found in inc/class-wpsweep.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method plugin_deactivation 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

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language