79% debug-bar-hook-log

Code Review | Debug Bar Hook Log

WordPress plugin Debug Bar Hook Log scored79%from 54 tests.

About plugin

  • Plugin page: debug-bar-hook-log
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2013
  • Latest release: Oct 6, 2014
  • Number of updates: 9
  • Update frequency: every 62.0 days
  • Top authors: itsananderson (88.89%)Zer0Divisor (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,844 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.09ms] Passed 4 tests

Server-side resources used by Debug Bar Hook Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.93 ▲1.02
Dashboard /wp-admin3.31 ▼0.0451.81 ▼13.84
Posts /wp-admin/edit.php3.36 ▲0.0049.35 ▼5.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.53 ▼22.40
Media Library /wp-admin/upload.php3.23 ▲0.0042.55 ▲4.74

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Debug Bar Hook Log: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.24 ▼0.401.91 ▼0.2441.58 ▼4.37
Dashboard /wp-admin2,195 ▲245.57 ▲0.0191.04 ▼3.6938.98 ▼1.27
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0539.51 ▼0.9335.50 ▼1.27
Add New Post /wp-admin/post-new.php1,526 ▼023.53 ▼0.19695.27 ▲17.1357.83 ▲4.43
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.07100.68 ▲2.1343.94 ▼4.34

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/debug-bar-hook-log/views/render-hooks.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-hook-log/includes/hook-panel.php:3
    • > PHP Notice
      Undefined variable: filter_groups in wp-content/plugins/debug-bar-hook-log/views/render-hooks.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/debug-bar-hook-log/views/render-hooks.php on line 17
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/debug-bar-hook-log/views/render-hooks.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-bar-hook-log/includes/hook-log.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-bar-hook-log/debug-bar-hook-log.php:13
    • > PHP Notice
      Undefined variable: hooks in wp-content/plugins/debug-bar-hook-log/views/render-hooks.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: debug, dev

debug-bar-hook-log/debug-bar-hook-log.php Passed 13 tests

The primary PHP file in "Debug Bar Hook Log" version 1.0 is used by WordPress to initiate all plugin functionality
72 characters long description:
Logs all actions and filters that are called, along with their arguments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin288 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42420201
JavaScript111043
Markdown111027
CSS12017

PHP code Passed 2 tests

An overview of 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.29
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods880.00%
▷ Public methods10100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin