JoryHogeveen/view-admin-as

View on GitHub
includes/class-vaa.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '237', column '27').
Open

        $this->hooks      = new VAA_View_Admin_As_Hooks();
Severity: Minor
Found in includes/class-vaa.php by phpmd

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

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$notice'.
Open

                echo '<div class="' . $notice['type'] . ' notice is-dismissible"><p>' . $notice['message'] . '</p></div>';
Severity: Minor
Found in includes/class-vaa.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$notice'.
Open

                echo '<div class="' . $notice['type'] . ' notice is-dismissible"><p>' . $notice['message'] . '</p></div>';
Severity: Minor
Found in includes/class-vaa.php by phpcodesniffer

Method name "_autoload" should not be prefixed with an underscore to indicate visibility
Open

    public function _autoload( $class ) {
Severity: Minor
Found in includes/class-vaa.php by phpcodesniffer

There are no issues that match your filters.

Category
Status