Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.01MB] [CPU: ▲64.02ms] 75% from 4 tests
Server-side resources used by Ultimate DebugBar
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.01MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.39 ▲4.93 | 107.37 ▲57.94 |
Dashboard /wp-admin | 8.41 ▲5.11 | 117.32 ▲66.96 |
Posts /wp-admin/edit.php | 8.53 ▲5.17 | 115.06 ▲67.64 |
Add New Post /wp-admin/post-new.php | 13.68 ▲7.79 | 226.20 ▲120.64 |
Media Library /wp-admin/upload.php | 8.04 ▲4.81 | 98.14 ▲63.55 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate DebugBar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 23,708 ▲20,962 | 16.55 ▲1.99 | 121.39 ▲118.85 | 43.61 ▼2.67 |
Dashboard /wp-admin | 13,146 ▲10,958 | 6.96 ▲1.99 | 233.43 ▲124.66 | 40.04 ▼2.37 |
Posts /wp-admin/edit.php | 13,200 ▲11,111 | 4.49 ▲2.52 | 180.97 ▲142.70 | 38.25 ▲2.50 |
Add New Post /wp-admin/post-new.php | 6,431 ▲4,896 | 22.89 ▼0.21 | 816.08 ▲108.73 | 43.92 ▼17.44 |
Media Library /wp-admin/upload.php | 11,534 ▲10,143 | 5.72 ▲1.50 | 218.05 ▲100.64 | 48.55 ▲3.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/build/namespaceFontAwesome.php
- > /wp-content/plugins/ultimate-debugbar/ultimate-debugbar.php
- 143× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DebugBar\\DataCollector\\DataCollector' not found in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/src/DebugBar/DataCollector/TimeDataCollector.php:19
- > PHP Warning
include(wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/twig/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/twig/index.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/doctrine/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'DebugBar\\HttpDriverInterface' not found in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/src/DebugBar/PhpHttpDriver.php:16
- > PHP Warning
include(wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/monolog/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/monolog/index.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'DebugBar\\Bridge\\MonologCollector' not found in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/src/DebugBar/Bridge/CacheCacheCollector.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/ultimate-debugbar/vendor/symfony/var-dumper/Caster/ConstStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'DebugBar\\DataCollector\\DataCollector' not found in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/src/DebugBar/DataCollector/ExceptionsCollector.php:19
- > PHP Warning
include(): Failed opening 'wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/propel/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-debugbar/vendor/maximebf/debugbar/demo/bridge/propel/index.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Tests\\Fixtures\otLoadableClass' not found in wp-content/plugins/ultimate-debugbar/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (List of all database queries with their timings), #2 (List of (slow) hooks lasting over 1ms in an AJAX request), #3 (Deserialized/formatted config options), #4 (Timeline (waterfall) of WP execution (TTFB))
ultimate-debugbar/ultimate-debugbar.php 92% from 13 tests
The main PHP file in "Ultimate DebugBar" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
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
No dangerous file extensions were detected24,538 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 184 | 2,994 | 4,745 | 17,945 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 8 | 305 | 574 | 1,432 |
Markdown | 17 | 393 | 0 | 923 |
CSS | 10 | 90 | 18 | 893 |
JSON | 15 | 0 | 0 | 521 |
XML | 5 | 4 | 8 | 84 |
YAML | 1 | 8 | 0 | 33 |
HTML | 3 | 0 | 0 | 16 |
SQL | 1 | 1 | 0 | 15 |
Bourne Shell | 2 | 2 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 14 | |
Traits | 3 | |
Classes | 137 | |
▷ Abstract classes | 6 | 4.38% |
▷ Concrete classes | 131 | 95.62% |
▷ Final classes | 1 | 0.76% |
Methods | 1,050 | |
▷ Static methods | 164 | 15.62% |
▷ Public methods | 957 | 91.14% |
▷ Protected methods | 61 | 5.81% |
▷ Private methods | 32 | 3.05% |
Functions | 104 | |
▷ Named functions | 46 | 44.23% |
▷ Anonymous functions | 58 | 55.77% |
Constants | 51 | |
▷ Global constants | 6 | 11.76% |
▷ Class constants | 45 | 88.24% |
▷ Public constants | 45 | 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
5 PNG files occupy 0.87MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/maximebf/debugbar/docs/screenshot.png | 15.07KB | 6.75KB | ▼ 55.24% |
screenshot-4.png | 140.25KB | 40.32KB | ▼ 71.25% |
screenshot-3.png | 200.98KB | 66.08KB | ▼ 67.12% |
screenshot-1.png | 343.20KB | 126.80KB | ▼ 63.05% |
screenshot-2.png | 196.28KB | 69.78KB | ▼ 64.45% |