Showing 14 of 14 total issues
Method enqueue_scripts
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function enqueue_scripts() {
if ( \is_admin() ) {
return;
}
Class file names should be based on the class name with "class-" prepended. Expected class-admin.php, but found Admin.php. Open
Open
<?php
- Exclude checks
Class file names should be based on the class name with "class-" prepended. Expected class-i18n.php, but found I18n.php. Open
Open
<?php
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected admin.php, but found Admin.php. Open
Open
<?php
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<h1><?php \_e( 'StatusCake Settings', 'wpstatuscake' ); ?></h1>
- Exclude checks
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
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'get_option'. Open
Open
\get_option( 'statuscake_rum_id' )
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected frontend.php, but found Frontend.php. Open
Open
<?php
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected i18n.php, but found I18n.php. Open
Open
<?php
- Exclude checks
Filenames should be all lowercase with hyphens as word separators. Expected plugin.php, but found Plugin.php. Open
Open
<?php
- Exclude checks
Expected 1 space after comma in function call; 2 found Open
Open
\add_filter( 'script_loader_tag', array( $frontend, 'add_async_attribute' ), 10, 2 );
- Exclude checks
Class file names should be based on the class name with "class-" prepended. Expected class-plugin.php, but found Plugin.php. Open
Open
<?php
- Exclude checks
Avoid too many return
statements within this method. Open
Open
return;