84% debug-bar-shortcodes

Code Review | Debug Bar Shortcodes

WordPress plugin Debug Bar Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: debug-bar-shortcodes
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 6.3.1
  • First release: Dec 22, 2013
  • Latest release: Apr 30, 2016
  • Number of updates: 16
  • Update frequency: every 53.8 days
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /23,510 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.01MB] [CPU: ▼9.23ms] Passed 4 tests

An overview of server-side resources used by Debug Bar Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.38 ▲1.05
Dashboard /wp-admin3.31 ▼0.0446.68 ▼14.82
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▼4.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.39 ▼17.67
Media Library /wp-admin/upload.php3.23 ▲0.0037.92 ▲0.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Debug Bar Shortcodes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.681.79 ▼0.1141.06 ▼9.61
Dashboard /wp-admin2,209 ▲274.88 ▼1.08106.07 ▼1.8141.42 ▼1.68
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0234.36 ▼6.1433.30 ▼3.27
Add New Post /wp-admin/post-new.php1,535 ▲1323.51 ▲0.15680.38 ▲56.4255.40 ▼1.85
Media Library /wp-admin/upload.php1,385 ▲34.22 ▼0.10112.22 ▲14.0348.76 ▲7.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-playlist.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-validator.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_From_File' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-shortcake.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-reflection.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-embed.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-caption.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-video.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-audio.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Caption' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-wp-caption.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Shortcode_Info_Defaults' not found in wp-content/plugins/debug-bar-shortcodes/shortcode-info/class-shortcode-info-lhr.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

debug-bar-shortcodes/debug-bar-shortcodes.php 92% from 13 tests

"Debug Bar Shortcodes" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,841 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP194191,0001,285
PO File1118165307
JavaScript22933154
CSS217395

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity16.62
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods64
▷ Static methods11.56%
▷ Public methods3046.88%
▷ Protected methods23.12%
▷ Private methods3250.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/badge-circle-check-16.png0.74KB0.83KB0.00%
images/badge-circle-cross-16.png0.74KB0.83KB0.00%
images/help.png0.74KB0.64KB▼ 13.80%