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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲0.28ms] Passed 4 tests
Analyzing server-side resources used by KL Debug
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.52 | 56.80 ▲11.45 |
Dashboard /wp-admin | 4.10 ▲0.46 | 58.19 ▼9.95 |
Posts /wp-admin/edit.php | 4.15 ▲0.47 | 59.96 ▲11.29 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.47 | 97.03 ▼7.63 |
Media Library /wp-admin/upload.php | 3.96 ▲0.47 | 46.44 ▲7.43 |
KL Debug /wp-admin/tools.php?page=kl-debug-settings | 3.94 | 38.22 |
Server storage [IO: ▲4.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 280 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
KL Debug: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.47 ▼0.90 | 10.10 ▲8.49 | 38.65 ▼5.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.06 | 91.09 ▼0.32 | 37.32 ▼4.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.03 | 40.52 ▼1.64 | 35.52 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,548 ▼0 | 23.71 ▲0.27 | 686.65 ▲67.59 | 49.46 ▼12.99 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.14 ▼0.06 | 107.52 ▲9.92 | 45.43 ▼0.64 |
KL Debug /wp-admin/tools.php?page=kl-debug-settings | 949 | 2.36 | 39.49 | 43.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/env_details.html.php
- > /wp-content/plugins/kl-debug/views/front/popup-click-header.php
- > /wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/frames_description.html.php
- > /wp-content/plugins/kl-debug/vendor/micropackage/requirements/tests/bootstrap.php
- > /wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php
- > /wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php
- 108× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: tpl in wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/kl-debug/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/kl-debug/vendor/micropackage/requirements/tests/Checker/test-theme.php:18
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php on line 77
- > PHP Notice
Undefined variable: tpl in wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' not found in wp-content/plugins/kl-debug/vendor/symfony/var-dumper/Caster/FrameStub.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/kl-debug/vendor/symfony/var-dumper/Caster/ConstStub.php:21
- > PHP Fatal error
Uncaught Error: Call to a member function escape() on null in wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php:88
- > PHP Notice
Undefined variable: handlers in wp-content/plugins/kl-debug/vendor/filp/whoops/src/Whoops/Resources/views/env_details.html.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/kl-debug/vendor/symfony/var-dumper/Caster/ImgStub.php:17
- > PHP Notice
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 96% from 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
3 plugin tags: developer, toolbar, debug
kl-debug/kl-debug.php 92% from 13 tests
Analyzing the main PHP file in "KL Debug" version 1.0.5
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/kl-debug/vendor/bin/var-dump-server.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 185 | 3,082 | 5,212 | 15,301 |
SVG | 3 | 0 | 12 | 9,061 |
JSON | 11 | 0 | 0 | 912 |
CSS | 15 | 147 | 62 | 906 |
Markdown | 13 | 207 | 0 | 409 |
JavaScript | 7 | 35 | 34 | 159 |
Bourne Shell | 1 | 21 | 11 | 120 |
PO File | 2 | 39 | 50 | 119 |
XML | 2 | 4 | 3 | 56 |
YAML | 2 | 10 | 0 | 47 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 12.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 11 | |
Traits | 3 | |
Classes | 131 | |
▷ Abstract classes | 6 | 4.58% |
▷ Concrete classes | 125 | 95.42% |
▷ Final classes | 11 | 8.80% |
Methods | 804 | |
▷ Static methods | 208 | 25.87% |
▷ Public methods | 717 | 89.18% |
▷ Protected methods | 35 | 4.35% |
▷ Private methods | 52 | 6.47% |
Functions | 131 | |
▷ Named functions | 102 | 77.86% |
▷ Anonymous functions | 29 | 22.14% |
Constants | 99 | |
▷ Global constants | 13 | 13.13% |
▷ Class constants | 86 | 86.87% |
▷ Public constants | 66 | 76.74% |
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
No PNG images were found in this plugin