84% scripts-styles-debug-bar

Code Review | What Scripts Styles Debug Bar

WordPress plugin What Scripts Styles Debug Bar scored 84% from 54 tests.

About plugin

  • Plugin page: scripts-styles-de...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2015
  • Latest release: Feb 2, 2015
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: codewink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.01ms] Passed 4 tests

An overview of server-side resources used by What Scripts Styles Debug Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▼0.78
Dashboard /wp-admin3.31 ▲0.0144.86 ▼11.59
Posts /wp-admin/edit.php3.36 ▲0.0148.05 ▲4.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.64 ▼7.63
Media Library /wp-admin/upload.php3.23 ▲0.0035.44 ▼0.03

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for What Scripts Styles Debug Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.081.61 ▼0.1438.76 ▼6.24
Dashboard /wp-admin2,203 ▲125.79 ▼0.1194.37 ▼22.0935.71 ▼7.36
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0634.92 ▼0.2135.43 ▲2.67
Add New Post /wp-admin/post-new.php1,534 ▲1723.44 ▲5.86640.76 ▼39.9259.68 ▲4.13
Media Library /wp-admin/upload.php1,391 ▲94.21 ▲0.0094.92 ▼4.1540.10 ▼6.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/scripts-styles-debug-bar/inc/class-show-all-scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/scripts-styles-debug-bar/inc/class-show-all-styles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scripts-styles-debug-bar/functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scripts-styles-debug-bar/functions.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: debug, debug bar

scripts-styles-debug-bar/scripts-styles-debug-bar.php Passed 13 tests

"What Scripts Styles Debug Bar" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
A tiny plugin to display all enqueued scripts and styles. debug-bar Dependent. Little help for Plugin/Theme Developers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected129 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43341122
CSS1107

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin