Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.75MB] [CPU: ▲3.17ms] 75% from 4 tests
Analyzing server-side resources used by Developer Debug Tools
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 715.61ms on /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 43.54 ▼6.04 |
Dashboard /wp-admin | 4.27 ▲0.92 | 63.08 ▲0.23 |
Posts /wp-admin/edit.php | 4.33 ▲0.96 | 63.14 ▲12.62 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 99.67 ▲5.87 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 50.62 ▲16.47 |
Available Hooks /wp-admin/admin.php?page=dev-debug-tools&tab=hooks | 4.27 | 751.57 |
Post Meta /wp-admin/admin.php?page=dev-debug-tools&tab=postmeta | 4.37 | 690.11 |
Logs /wp-admin/admin.php?page=dev-debug-tools&tab=logs | 4.27 | 680.66 |
Functions.php /wp-admin/admin.php?page=dev-debug-tools&tab=fx | 4.27 | 683.31 |
Settings /wp-admin/admin.php?page=dev-debug-tools&tab=settings | 4.41 | 694.76 |
Site Options /wp-admin/admin.php?page=dev-debug-tools&tab=siteoptions | 4.27 | 705.40 |
User Meta /wp-admin/admin.php?page=dev-debug-tools&tab=usermeta | 4.44 | 688.88 |
Cron Jobs /wp-admin/admin.php?page=dev-debug-tools&tab=crons | 4.27 | 674.88 |
HTACCESS /wp-admin/admin.php?page=dev-debug-tools&tab=htaccess | 4.27 | 682.32 |
Globals /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars | 4.30 | 715.61 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
ddtt_plugin_activated |
ddtt_plugin_activated_by |
theysaidso_admin_options |
db_upgraded |
ddtt_plugin_installed |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Developer Debug Tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,072 ▲310 | 14.35 ▲0.09 | 1.51 ▼0.15 | 37.23 ▼7.34 |
Dashboard /wp-admin | 2,381 ▲201 | 5.63 ▲0.01 | 97.13 ▼1.01 | 47.19 ▲1.15 |
Posts /wp-admin/edit.php | 2,296 ▲193 | 2.00 ▲0.04 | 40.98 ▼1.87 | 38.52 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,670 ▲136 | 23.73 ▼1.36 | 597.08 ▼7.15 | 51.88 ▼13.37 |
Media Library /wp-admin/upload.php | 1,583 ▲183 | 4.23 ▲0.05 | 103.45 ▲7.14 | 46.16 ▲5.04 |
Available Hooks /wp-admin/admin.php?page=dev-debug-tools&tab=hooks | 3,713 | 1.66 | 28.75 | 90.46 |
Post Meta /wp-admin/admin.php?page=dev-debug-tools&tab=postmeta | 1,969 | 1.69 | 24.20 | 40.20 |
Logs /wp-admin/admin.php?page=dev-debug-tools&tab=logs | 1,116 | 1.66 | 25.17 | 38.20 |
Functions.php /wp-admin/admin.php?page=dev-debug-tools&tab=fx | 1,139 | 1.64 | 25.27 | 38.75 |
Settings /wp-admin/admin.php?page=dev-debug-tools&tab=settings | 3,416 | 1.97 | 27.15 | 61.79 |
Site Options /wp-admin/admin.php?page=dev-debug-tools&tab=siteoptions | 1,621 | 1.66 | 26.75 | 53.83 |
User Meta /wp-admin/admin.php?page=dev-debug-tools&tab=usermeta | 2,677 | 1.82 | 29.98 | 45.41 |
Cron Jobs /wp-admin/admin.php?page=dev-debug-tools&tab=crons | 1,398 | 1.65 | 27.36 | 50.71 |
HTACCESS /wp-admin/admin.php?page=dev-debug-tools&tab=htaccess | 1,652 | 1.66 | 24.51 | 58.35 |
Globals /wp-admin/admin.php?page=dev-debug-tools&tab=globalvars | 1,993 | 1.82 | 25.12 | 49.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- ddtt_plugin_activated
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- ddtt_plugin_activated_by
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_ignore_pages_for_discord_notifications.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_get() in wp-content/plugins/dev-debug-tools/includes/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_quick_link_icon.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_resource_links.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ddtt_start_timer() in wp-content/plugins/dev-debug-tools/includes/admin/option-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/dev-debug-tools/includes/files/hooks/ddtt_debug_log_help_col.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: user meta, debug, developer, testing, htaccess...
dev-debug-tools/dev-debug-tools.php Passed 13 tests
This is the main PHP file of "Developer Debug Tools" version 1.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
WordPress debugging and testing tools for developers
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
Everything looks great! No dangerous files found in this plugin10,483 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 2,556 | 3,810 | 10,257 |
JavaScript | 2 | 51 | 59 | 147 |
CSS | 1 | 0 | 0 | 79 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 7.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 4 | 4.30% |
▷ Public methods | 93 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 96 | |
▷ Named functions | 90 | 93.75% |
▷ Anonymous functions | 6 | 6.25% |
Constants | 26 | |
▷ Global constants | 26 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/img/text-area-resizer_wh_sm.png | 0.46KB | 0.31KB | ▼ 32.41% |
includes/admin/img/admin-help-docs.png | 20.71KB | 4.29KB | ▼ 79.30% |
includes/admin/img/text-area-resizer_wh_sm_trans.png | 0.36KB | 0.23KB | ▼ 36.26% |
includes/admin/img/text-area-resizer-wh-large.png | 2.75KB | 0.83KB | ▼ 69.76% |
includes/admin/img/discord.png | 158.33KB | 63.98KB | ▼ 59.59% |