90% debug-bar-screen-info

Code Review | Debug Bar Screen Info

WordPress plugin Debug Bar Screen Info scored90%from 54 tests.

About plugin

  • Plugin page: debug-bar-screen-...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5
  • WordPress version: 6.3.1
  • First release: Jul 21, 2013
  • Latest release: Apr 28, 2016
  • Number of updates: 9
  • Update frequency: every 112.4 days
  • Top authors: bradvin (66.67%)jrf (44.44%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Debug Bar Screen Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.21 ▼1.77
Dashboard /wp-admin3.31 ▲0.0046.78 ▼6.20
Posts /wp-admin/edit.php3.36 ▲0.0043.10 ▼1.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.46 ▼13.38
Media Library /wp-admin/upload.php3.23 ▲0.0033.27 ▼14.00

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Debug Bar Screen Info
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.13 ▼1.251.78 ▼0.0538.64 ▼8.73
Dashboard /wp-admin2,209 ▲214.85 ▼0.97109.76 ▲2.1445.45 ▼0.05
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0834.45 ▼4.3637.31 ▲4.53
Add New Post /wp-admin/post-new.php1,542 ▲918.62 ▼4.73633.89 ▼38.3162.28 ▲5.68
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0494.39 ▼15.9642.65 ▼6.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: screen id, screen object, debug bar, get_current_screen, debug...

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

The main PHP file in "Debug Bar Screen Info" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Show screen info of the current admin page in a new tab within the debug bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,229 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP62886341,082
PO File255100103
CSS25239
Markdown1205

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.50
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods2165.62%
▷ Public methods1856.25%
▷ Protected methods13.12%
▷ Private methods1340.62%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin