log-oscon/wpstatuscake

View on GitHub
lib/Frontend.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    Avoid too many return statements within this method.
    Open

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

      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

      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

      There are no issues that match your filters.

      Category
      Status