84% debug-bar-widgets

Code Review | Debug Bar Widgets

WordPress plugin Debug Bar Widgets scored 84% from 54 tests.

About plugin

  • Plugin page: debug-bar-widgets
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Jun 26, 2022
  • Number of updates: 33
  • Update frequency: every 69.5 days
  • Top authors: ChrisHardie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.87ms] Passed 4 tests

An overview of server-side resources used by Debug Bar Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0056.90 ▲13.40
Dashboard /wp-admin3.31 ▲0.0050.27 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0052.53 ▲4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.00104.42 ▲7.56
Media Library /wp-admin/upload.php3.23 ▲0.0038.14 ▼0.10

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debug Bar Widgets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.25 ▼1.162.63 ▲0.6350.88 ▲3.52
Dashboard /wp-admin2,209 ▲34.92 ▲0.07108.94 ▲0.3940.33 ▼3.17
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0536.86 ▲0.6334.76 ▼2.44
Add New Post /wp-admin/post-new.php1,514 ▼2817.48 ▼0.72686.34 ▲66.1862.24 ▲9.31
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0195.70 ▼4.0841.07 ▼9.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/debug-bar-widgets/debug-bar-widgets.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: debugging, widgets, debug-bar

debug-bar-widgets/debug-bar-widgets.php Passed 13 tests

The main PHP file in "Debug Bar Widgets" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Add a debug bar panel to display registered widgets

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 detected68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1403168

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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 are no PNG files in this plugin