90% debug-bar-super-globals

Code Review | Debug Bar Super Globals

WordPress plugin Debug Bar Super Globals scored90%from 54 tests.

About plugin

  • Plugin page: debug-bar-super-g...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2012
  • Latest release: Oct 1, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: horike (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,810 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Debug Bar Super Globals
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.10 ▼0.85
Dashboard /wp-admin3.31 ▲0.0147.62 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0043.43 ▼3.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.72 ▼22.78
Media Library /wp-admin/upload.php3.23 ▲0.0032.44 ▲0.06

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

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

Browser metrics Passed 4 tests

Debug Bar Super Globals: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.204.36 ▲2.3945.94 ▲4.86
Dashboard /wp-admin2,206 ▲185.82 ▲0.9693.90 ▼7.1536.02 ▼7.03
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0135.62 ▼5.9534.04 ▼1.76
Add New Post /wp-admin/post-new.php1,544 ▲2618.52 ▼4.75617.37 ▲8.1451.38 ▲2.97
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0895.38 ▼4.2541.05 ▼3.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Displays.) image required
You can look at the official readme.txt

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

The entry point to "Debug Bar Super Globals" version 0.1 is a PHP file that has certain tags in its header comment area
120 characters long description:
Displays Super Global valiables for the current request.Like $_POST, $_GET, and $_COOKIE. Requires the debug bar plugin.

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
Everything looks great! No dangerous files found in this plugin45 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28738
CSS1007

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png84.48KB30.87KB▼ 63.46%