lib/Frontend.php
Method enqueue_scripts
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function enqueue_scripts() {
if ( \is_admin() ) {
return;
}
Avoid too many return
statements within this method. Open
Open
return;
Class file names should be based on the class name with "class-" prepended. Expected class-frontend.php, but found Frontend.php. Open
Open
<?php
- Exclude checks
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
Open
\wp_enqueue_script(
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected frontend.php, but found Frontend.php. Open
Open
<?php
- Exclude checks