cleverness/widget-css-classes

View on GitHub
includes/widget-css-classes-loader.class.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '29', column '7').
Open

        new WCSSC_Settings();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

In footer ($in_footer) is not set explicitly wp_enqueue_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_enqueue_script( 'widget-css-classes_js', WCSSC_PLUGIN_URL . '/js/widget-css-classes.js', array( 'jquery' ), WCSSC_PLUGIN_VERSION );

End of line character is invalid; expected "\n" but found "\r\n"
Open

<?php

There are no issues that match your filters.

Category
Status