log-oscon/wpstatuscake

View on GitHub

Showing 14 of 14 total issues

Method enqueue_scripts has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function enqueue_scripts() {

        if ( \is_admin() ) {
            return;
        }
Severity: Minor
Found in lib/Frontend.php - About 1 hr to fix

    Class file names should be based on the class name with "class-" prepended. Expected class-admin.php, but found Admin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Admin.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-i18n.php, but found I18n.php.
    Open

    <?php
    Severity: Minor
    Found in lib/I18n.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected admin.php, but found Admin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Admin.php by phpcodesniffer

    All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
    Open

                <h1><?php \_e( 'StatusCake Settings', 'wpstatuscake' ); ?></h1>
    Severity: Minor
    Found in lib/Admin.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-frontend.php, but found Frontend.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Frontend.php by phpcodesniffer

    Version parameter is not explicitly set or has been set to an equivalent of "false" for wp_enqueue_script; This means that the WordPress core version will be used which is not recommended for plugin or theme development.
    Open

            \wp_enqueue_script(
    Severity: Minor
    Found in lib/Frontend.php by phpcodesniffer

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

                \get_option( 'statuscake_rum_id' )
    Severity: Minor
    Found in lib/Admin.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected frontend.php, but found Frontend.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Frontend.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected i18n.php, but found I18n.php.
    Open

    <?php
    Severity: Minor
    Found in lib/I18n.php by phpcodesniffer

    Filenames should be all lowercase with hyphens as word separators. Expected plugin.php, but found Plugin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Plugin.php by phpcodesniffer

    Expected 1 space after comma in function call; 2 found
    Open

            \add_filter( 'script_loader_tag',  array( $frontend, 'add_async_attribute' ), 10, 2 );
    Severity: Minor
    Found in lib/Plugin.php by phpcodesniffer

    Class file names should be based on the class name with "class-" prepended. Expected class-plugin.php, but found Plugin.php.
    Open

    <?php
    Severity: Minor
    Found in lib/Plugin.php by phpcodesniffer

    Avoid too many return statements within this method.
    Open

                return;
    Severity: Major
    Found in lib/Frontend.php - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language