89% debug-bar-actions-and-filters-addon

Code Review | Debug Bar Actions and Filters Addon

WordPress plugin Debug Bar Actions and Filters Addon scored 89% from 54 tests.

About plugin

  • Plugin page: debug-bar-actions...
  • Plugin version: 1.5.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Feb 5, 2013
  • Latest release: Jun 15, 2022
  • Number of updates: 47
  • Update frequency: every 72.7 days
  • Top authors: subharanjan (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 87,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Debug Bar Actions and Filters Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.34 ▼4.65
Dashboard /wp-admin3.31 ▲0.0045.49 ▼5.46
Posts /wp-admin/edit.php3.36 ▲0.0047.76 ▼5.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.48 ▼10.56
Media Library /wp-admin/upload.php3.23 ▲0.0033.09 ▼1.68

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Debug Bar Actions and Filters Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.085.79 ▲3.3140.04 ▼4.15
Dashboard /wp-admin2,206 ▲154.86 ▼0.02110.52 ▲6.4638.12 ▼6.16
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0038.61 ▼3.4736.47 ▲0.45
Add New Post /wp-admin/post-new.php1,534 ▲1523.25 ▼0.07637.56 ▲16.3959.93 ▲8.92
Media Library /wp-admin/upload.php1,385 ▼04.17 ▼0.0499.28 ▼7.4341.12 ▼1.31

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: debug bar, actions, filters, debug bar filters display, list of hooks fired...

debug-bar-actions-and-filters-addon/debug-bar-action-and-filters-addon.php 85% from 13 tests

The main file in "Debug Bar Actions and Filters Addon" v. 1.5.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("debug-bar-actions-and-filters-addon.php" instead of "debug-bar-action-and-filters-addon.php")

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
No dangerous file extensions were detected248 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44581190
CSS111058

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin