Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.88MB] [CPU: ▼128.18ms] Passed 4 tests
An overview of server-side resources used by Debug Tool
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.98 | 41.82 ▲19.56 |
Dashboard /wp-admin | 4.10 ▲1.04 | 51.48 ▲8.58 |
Posts /wp-admin/edit.php | 4.12 ▲1.01 | 60.46 ▲14.24 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.57 | 106.81 ▼541.62 |
Media Library /wp-admin/upload.php | 3.96 ▲0.96 | 38.41 ▲6.09 |
Server storage [IO: ▲0.86MB] [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: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Debug Tool
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 55,441 ▲51,845 | 18.56 ▲3.00 | 21.11 ▲10.86 | 81.49 ▲34.34 |
Dashboard /wp-admin | 24,604 ▲21,673 | 6.49 ▲0.35 | 222.51 ▲93.19 | 136.16 ▲28.35 |
Posts /wp-admin/edit.php | 24,322 ▲21,583 | 3.10 ▲0.27 | 105.18 ▲40.67 | 119.46 ▲31.48 |
Add New Post /wp-admin/post-new.php | 15,385 ▲13,509 | 22.57 ▲3.36 | 274.71 ▼120.09 | 133.03 ▲26.09 |
Media Library /wp-admin/upload.php | 23,131 ▲21,321 | 5.22 ▲0.10 | 169.28 ▲23.57 | 138.20 ▲19.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/image-puller.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-tool/tools/queries.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/items-on-page.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/cron-jobs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/wp-cache.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-tool/tools/errors.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/phpinfo.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/actions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-tool/tools/page-stat.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/debug-tool/debug-tool.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Page with debug bar), #2 (Error modal), #3 (Queries modal), #4 (Howto open and close bar)
debug-tool/debug-tool.php Passed 13 tests
This is the main PHP file of "Debug Tool" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Show helpful debug bar at front and admin side. Tool for developers.
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
Good job! No executable or dangerous file extensions detected1,461 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 222 | 70 | 925 |
LESS | 1 | 36 | 1 | 473 |
JavaScript | 2 | 18 | 0 | 62 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 10 | 19.61% |
▷ Public methods | 39 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 23.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 72.61KB | 24.12KB | ▼ 66.78% |
css/images/debug-bug-icon.png | 1.50KB | 1.25KB | ▼ 16.55% |
css/images/settings.png | 0.90KB | 0.58KB | ▼ 35.64% |
screenshot-1.png | 55.07KB | 20.88KB | ▼ 62.09% |
screenshot-3.png | 97.47KB | 31.82KB | ▼ 67.35% |