lesterchan/wp-sweep

View on GitHub

Showing 326 of 326 total issues

The variable $orphan_term_relationships_sql is not named in camelCase.
Open

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

        $details = 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 $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 $user_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 $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_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 $ms_site 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 $network_wide 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 method run_sweep is not named in camelCase.
Open

    public function run_sweep( $items ) {

        $sweep = WPSweep::get_instance();

        foreach ( $items as $key => $value ) {
Severity: Minor
Found in inc/class-wpsweep-command.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_instance is not named in camelCase.
Open

    public static function get_instance() {
        if ( ! isset( self::$instance ) ) {
            self::$instance = new self();
        }

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 add_hooks is not named in camelCase.
Open

    public function add_hooks() {
        // Actions.
        add_action( 'init', array( $this, 'init' ) );
        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
        add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
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 total_count is not named in camelCase.
Open

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

        $count = 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 admin_menu is not named in camelCase.
Open

    public function admin_menu() {
        add_management_page( _x( 'Sweep', 'Page title', 'wp-sweep' ), _x( 'Sweep', 'Menu title', 'wp-sweep' ), 'activate_plugins', 'wp-sweep/admin.php' );
    }
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 is_sweep_name_valid is not named in camelCase.
Open

    public function is_sweep_name_valid( $name ) {
        return in_array( $name, $this->sweeps, true );
    }
Severity: Minor
Found in inc/class-wpsweep-api.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 permission_check is not named in camelCase.
Open

    public function permission_check() {
        return current_user_can( 'activate_plugins' );
    }
Severity: Minor
Found in inc/class-wpsweep-api.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 admin_enqueue_scripts is not named in camelCase.
Open

    public function admin_enqueue_scripts( $hook ) {
        if ( 'wp-sweep/admin.php' !== $hook ) {
            return;
        }

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 ajax_sweep is not named in camelCase.
Open

    public function ajax_sweep() {
        // Verify referer and check permissions.
        if (
            empty( $_GET['sweep_name'] )
            || empty( $_GET['sweep_type'] )
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 ajax_sweep_details is not named in camelCase.
Open

    public function ajax_sweep_details() {
        // Verify referer and check permissions.
        if (
            empty( $_GET['sweep_name'] )
            || ! check_admin_referer( 'wp_sweep_details_' . $_GET['sweep_name'] )
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 plugin_activation 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

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

Severity
Category
Status
Source
Language