Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▼5.88ms] Passed 4 tests
An overview of server-side resources used by Debug Toolkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.71 | 46.58 ▲3.73 |
Dashboard /wp-admin | 4.01 ▲0.66 | 51.89 ▼12.16 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 52.47 ▲1.98 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 85.78 ▼16.25 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 39.24 ▲2.90 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 340 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Debug Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.19 ▼0.97 | 1.70 ▼0.07 | 42.19 ▼1.52 |
Dashboard /wp-admin | 2,214 ▲26 | 5.79 ▼0.12 | 99.14 ▼12.93 | 38.07 ▼9.06 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 1.99 ▼0.01 | 36.36 ▲1.16 | 35.59 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 17.57 ▼0.01 | 661.91 ▼19.09 | 65.48 ▲11.77 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.21 ▼0.04 | 99.63 ▲1.54 | 42.65 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/frames_description.html.php
- > /wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php
- > /wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/env_details.html.php
- > /wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php
- 247× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/debug-toolkit/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Notice
Undefined variable: frames in wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/frames_description.html.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Renderer\\TextRenderer' not found in wp-content/plugins/debug-toolkit/vendor/kint-php/kint/src/Renderer/CliRenderer.php:30
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/debug-toolkit/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Kint\\Parser\\Plugin' not found in wp-content/plugins/debug-toolkit/vendor/kint-php/kint/src/Parser/ColorPlugin.php:31
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/debug-toolkit/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Notice
Undefined variable: message in wp-content/plugins/debug-toolkit/vendor/filp/whoops/src/Whoops/Resources/views/header.html.php on line 77
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/debug-toolkit/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/debug-toolkit/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/debug-toolkit/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php:22
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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 require attention:
- Screenshots: Screenshot #1 (The results of running `trace()`.) image not found
debug-toolkit/debug-toolkit.php 92% from 13 tests
The main PHP file in "Debug Toolkit" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin22,511 lines of code in 325 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 294 | 4,095 | 6,598 | 20,786 |
JSON | 8 | 0 | 0 | 839 |
CSS | 6 | 86 | 7 | 514 |
JavaScript | 8 | 43 | 32 | 176 |
Markdown | 7 | 62 | 0 | 156 |
XML | 2 | 3 | 0 | 40 |
PHP code Passed 2 tests
Analyzing 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.43 |
Average class complexity | 10.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 11 | |
Traits | 3 | |
Classes | 251 | |
▷ Abstract classes | 10 | 3.98% |
▷ Concrete classes | 241 | 96.02% |
▷ Final classes | 3 | 1.24% |
Methods | 1,014 | |
▷ Static methods | 203 | 20.02% |
▷ Public methods | 858 | 84.62% |
▷ Protected methods | 94 | 9.27% |
▷ Private methods | 62 | 6.11% |
Functions | 114 | |
▷ Named functions | 72 | 63.16% |
▷ Anonymous functions | 42 | 36.84% |
Constants | 89 | |
▷ Global constants | 10 | 11.24% |
▷ Class constants | 79 | 88.76% |
▷ Public constants | 79 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.61MB with 0.44MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 206.22KB | 66.29KB | ▼ 67.85% |
screenshot-2.png | 116.29KB | 29.51KB | ▼ 74.62% |
screenshot-4.png | 147.57KB | 45.76KB | ▼ 68.99% |
screenshot-3.png | 154.75KB | 38.69KB | ▼ 75.00% |