94% debug-bar-cron

Code Review | Debug Bar Cron

WordPress plugin Debug Bar Cron scored 94% from 54 tests.

About plugin

  • Plugin page: debug-bar-cron
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 5.8.1
  • First release: Mar 29, 2012
  • Latest release: Dec 28, 2013
  • Number of updates: 13
  • Update frequency: every 49.2 days
  • Top authors: tollmanz (84.62%)helen (15.38%)helenyhou (15.38%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 98,390 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Debug Bar Cron
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1226.09 ▲1.79
Dashboard /wp-admin3.06 ▲0.0145.36 ▲1.97
Posts /wp-admin/edit.php3.11 ▲0.0148.66 ▲1.55
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.10 ▼559.13
Media Library /wp-admin/upload.php3.01 ▲0.0033.20 ▼0.84

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Debug Bar Cron: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.89 ▲0.227.87 ▼3.4951.06 ▲4.51
Dashboard /wp-admin2,967 ▲365.87 ▼0.06147.44 ▼3.64119.95 ▲0.98
Posts /wp-admin/edit.php2,739 ▲32.71 ▲0.0061.20 ▼4.1788.65 ▲0.01
Add New Post /wp-admin/post-new.php1,498 ▼18518.85 ▲0.16388.77 ▲7.31115.20 ▲0.95
Media Library /wp-admin/upload.php1,810 ▲35.05 ▼0.01145.80 ▼2.34123.09 ▲3.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× 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-cron/class-debug-bar-cron.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-bar-cron/debug-bar-cron.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (The Debug Bar Cron panel) image missing
  • Tested up to: Version format is invalid
Please take inspiration from this readme.txt

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

This is the main PHP file of "Debug Bar Cron" version 0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Adds information about WP scheduled events to Debug Bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin231 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png160.07KB55.03KB▼ 65.62%