84% debug-bar-custom-info

Code Review | Debug Bar Custom Info

WordPress plugin Debug Bar Custom Info scored84%from 54 tests.

About plugin

  • Plugin page: debug-bar-custom-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Jul 1, 2014
  • Number of updates: 9
  • Update frequency: every 2.0 days
  • Top authors: fitwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,295 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
Installer ran successfully

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

This is a short check of server-side resources used by Debug Bar Custom Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.22 ▼2.13
Dashboard /wp-admin3.32 ▼0.0347.95 ▼16.98
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▲1.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.69 ▼2.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.32 ▲4.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Debug Bar Custom Info
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.28 ▼0.001.81 ▲0.2846.79 ▲3.32
Dashboard /wp-admin2,195 ▲185.59 ▼0.1794.32 ▲8.6441.15 ▼0.97
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0239.20 ▲1.7736.03 ▲0.34
Add New Post /wp-admin/post-new.php1,526 ▼023.77 ▲0.28609.03 ▼24.0849.80 ▼17.94
Media Library /wp-admin/upload.php1,403 ▲94.26 ▲0.0197.69 ▼5.9542.37 ▼1.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-custom-info/debug-bar-custom-info.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-custom-info/class-dbci-panel.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Custom Info Panel)
Please take inspiration from this readme.txt

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

The primary PHP file in "Debug Bar Custom Info" version 1.0.2 is used by WordPress to initiate all plugin functionality
44 characters long description:
Display custom debug info in Debug Bar panel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP274351

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.83KB15.71KB▼ 49.05%