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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.93 ▲1.02 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.81 ▼13.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.35 ▼5.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.53 ▼22.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 42.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.24 ▼0.40 | 1.91 ▼0.24 | 41.58 ▼4.37 |
Dashboard /wp-admin | 2,195 ▲24 | 5.57 ▲0.01 | 91.04 ▼3.69 | 38.98 ▼1.27 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.05 | 39.51 ▼0.93 | 35.50 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.53 ▼0.19 | 695.27 ▲17.13 | 57.83 ▲4.43 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.26 ▲0.07 | 100.68 ▲2.13 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 24 | 20 | 201 |
JavaScript | 1 | 11 | 0 | 43 |
Markdown | 1 | 11 | 0 | 27 |
CSS | 1 | 2 | 0 | 17 |
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 code | 0.29 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 8 | 80.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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