Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼291.88ms] Passed 4 tests
A check of server-side resources used by Debug Objects
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.25 | 62.64 ▲5.22 |
Dashboard /wp-admin | 3.61 ▲0.20 | 38.99 ▲0.65 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 55.15 ▲12.80 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.10 | 101.88 ▼1,166.67 |
Media Library /wp-admin/upload.php | 3.48 ▲0.19 | 28.38 ▼6.73 |
Debug Objects /wp-admin/tools.php?page=debug-objects/inc/autoload/class-settings.php | 3.45 | 27.75 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_hook_list |
New WordPress options |
---|
debug_objects |
Browser metrics Passed 4 tests
A check of browser resources used by Debug Objects
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲66 | 15.74 ▼0.26 | 5.61 ▲0.07 | 2.18 ▼0.23 |
Dashboard /wp-admin | 2,908 ▲50 | 6.14 ▼0.05 | 115.57 ▼15.76 | 177.56 ▲20.16 |
Posts /wp-admin/edit.php | 2,708 ▲20 | 2.93 ▼0.31 | 65.45 ▲1.48 | 141.58 ▼7.42 |
Add New Post /wp-admin/post-new.php | 1,674 ▼78 | 16.42 ▼0.23 | 398.85 ▼31.75 | 190.97 ▲27.02 |
Media Library /wp-admin/upload.php | 1,712 ▲14 | 5.53 ▼0.01 | 123.15 ▼20.31 | 202.44 ▲20.57 |
Debug Objects /wp-admin/tools.php?page=debug-objects/inc/autoload/class-settings.php | 2,225 | 2.39 | 55.63 | 137.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method Debug_Objects::on_uninstall() should not be called statically
- The uninstall procedure failed, leaving 1 table in the database
- wp_hook_list
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 37× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/debug-objects/inc/class-cron.php
- > /wp-content/plugins/debug-objects/inc/class-rewrites.php
- > /wp-content/plugins/debug-objects/inc/class-constants.php
- > /wp-content/plugins/debug-objects/inc/class-options.php
- > /wp-content/plugins/debug-objects/inc/class-all_hooks.php
- > /wp-content/plugins/debug-objects/inc/class-theme.php
- > /wp-content/plugins/debug-objects/inc/class-classes.php
- > /wp-content/plugins/debug-objects/inc/class-cache.php
- > /wp-content/plugins/debug-objects/inc/class-enqueue_stuff.php
- > /wp-content/plugins/debug-objects/inc/class-roles.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Debug_Objects' not found in wp-content/plugins/debug-objects/inc/class-fields_api.php:22
- > PHP Fatal error
Uncaught Error: Class 'Debug_Objects' not found in wp-content/plugins/debug-objects/inc/class-woocommerce.php:17
- > PHP Fatal error
Uncaught Error: Class 'Debug_Objects' not found in wp-content/plugins/debug-objects/inc/class-request.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Please a description for screenshot #3 in debug-objects/assets to your readme.txt
debug-objects/debug-objects.php 77% from 13 tests
The main PHP script in "Debug Objects" version 2.5.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 415 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,277 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,570 | 6,184 | 7,006 |
PHP | 42 | 1,913 | 2,647 | 6,410 |
CSS | 5 | 104 | 172 | 728 |
Markdown | 1 | 52 | 0 | 133 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 294 | |
▷ Static methods | 69 | 23.47% |
▷ Public methods | 256 | 87.07% |
▷ Protected methods | 15 | 5.10% |
▷ Private methods | 23 | 7.82% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 20 | |
▷ Global constants | 5 | 25.00% |
▷ Class constants | 15 | 75.00% |
▷ Public constants | 15 | 100.00% |
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
24 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ui-bg_highlight-hard_75_ececec_1x100.png | 0.25KB | 0.13KB | ▼ 47.62% |
img/back_enabled.png | 1.35KB | 0.60KB | ▼ 55.69% |
img/ui-icons_999999_256x240.png | 6.82KB | 4.17KB | ▼ 38.81% |
img/ui-icons_333333_256x240.png | 6.81KB | 4.17KB | ▼ 38.71% |
img/back_disabled.png | 1.33KB | 0.60KB | ▼ 55.11% |