84% debug-bar

Code Review | Debug Bar

WordPress plugin Debug Bar scored84%from 54 tests.

About plugin

  • Plugin page: debug-bar
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2010
  • Latest release: Nov 18, 2022
  • Number of updates: 221
  • Update frequency: every 19.9 days
  • Top authors: koopersmith (31.22%)westi (27.15%)dd32-githubsync (9.05%)aidvu (8.14%)nacin (5.88%)

Code review

54 tests

User reviews

64 reviews

Install metrics

30,000+ active /1,420,785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by Debug Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2447.24 ▲0.60
Dashboard /wp-admin3.51 ▲0.1654.96 ▼9.90
Posts /wp-admin/edit.php3.62 ▲0.2650.21 ▲4.02
Add New Post /wp-admin/post-new.php6.08 ▲0.2085.78 ▼20.78
Media Library /wp-admin/upload.php3.43 ▲0.2040.48 ▲3.07

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Debug Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,349 ▲57813.74 ▼0.636.85 ▲5.0641.69 ▲0.88
Dashboard /wp-admin2,408 ▲2204.96 ▲0.07115.66 ▲4.9441.76 ▲3.45
Posts /wp-admin/edit.php2,301 ▲2092.07 ▼0.0236.21 ▼4.7632.96 ▼1.59
Add New Post /wp-admin/post-new.php1,717 ▲19823.63 ▲0.57642.08 ▼25.4452.96 ▼0.36
Media Library /wp-admin/upload.php1,572 ▲1844.17 ▲0.03109.43 ▲9.5046.52 ▼0.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 9× 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/panels/class-debug-bar-request.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-js.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-queries.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar/debug-bar.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-php.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-deprecated.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-object-cache.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-wp-http.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar/panels/class-debug-bar-wp-query.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: debug

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

The entry point to "Debug Bar" version 1.1.4 is a PHP file that has certain tags in its header comment area
100 characters long description:
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,554 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP1020692931
CSS28016434
JavaScript64416189

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods6098.36%
▷ Protected methods11.64%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin