83% debug-bar-sidebars-widgets

Code Review | Debug Bar - Sidebars & Widgets

WordPress plugin Debug Bar - Sidebars & Widgets scored 83% from 54 tests.

About plugin

  • Plugin page: debug-bar-sidebar...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Jun 30, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: engelen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,232 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: ▼1.39ms] Passed 4 tests

Analyzing server-side resources used by Debug Bar - Sidebars & Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.00 ▼2.39
Dashboard /wp-admin3.32 ▲0.0152.70 ▲6.01
Posts /wp-admin/edit.php3.37 ▲0.0146.39 ▲0.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.76 ▼2.90
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▼0.87

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Debug Bar - Sidebars & Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.23 ▼1.155.19 ▲3.1246.39 ▲4.97
Dashboard /wp-admin2,206 ▲185.79 ▼0.12117.50 ▲17.7449.23 ▲3.69
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0334.87 ▼0.4435.18 ▼0.27
Add New Post /wp-admin/post-new.php1,542 ▲2818.67 ▲1.14648.30 ▼39.8948.64 ▼10.85
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.2196.61 ▼3.8743.60 ▲0.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× 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/debug-bar-sidebars-widgets/panels/class-debug-bar-sidebars.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === debug-bar-sidebars-widgets === )
You can take inspiration from this readme.txt

debug-bar-sidebars-widgets/debug-bar-sidebars.php 85% from 13 tests

The primary PHP file in "Debug Bar - Sidebars & Widgets" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("debug-bar-sidebars-widgets.php" instead of "debug-bar-sidebars.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected153 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP256106140
CSS12013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin