Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
Non-static method AdminDebugTool::instance() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.27ms] Passed 4 tests
Analyzing server-side resources used by Admin's Debug Tool
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.64 ▼34.67 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.11 ▼44.43 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.07 ▼37.40 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.48 ▼88.56 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.25 ▼29.70 |
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool | 2.05 | 6.49 |
Server storage [IO: ▲0.02MB] [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: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
AdminsDebugTool |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Admin's Debug Tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.25 ▼1.13 | 4.96 ▲3.14 | 42.31 ▼3.69 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲1.02 | 97.53 ▲0.48 | 36.39 ▼5.57 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.01 | 38.81 ▼2.26 | 36.22 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 22.48 ▲4.12 | 656.68 ▲20.46 | 53.53 ▲1.95 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.00 | 103.22 ▲5.33 | 44.05 ▲1.28 |
Admin's Debug Tool /wp-admin/tools.php?page=admindebugtool | 939 | 2.15 | 23.76 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
Non-static method AdminDebugTool::instance() should not be called statically
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- AdminsDebugTool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=admindebugtool
- > Deprecated in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+10
Non-static method AdminDebugTool::instance() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=admindebugtool
- > Notice in wp-content/plugins/admins-debug-tool/admins_debug_tool.php+217
Trying to access array offset on value of type null
SRP 50% 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 trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/admins-debug-tool/admins_debug_tool.php on line 217
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admins-debug-tool/admins_debug_tool.php:35
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: queries, debug, monitor, execution, hooks...
admins-debug-tool/admins_debug_tool.php 92% from 13 tests
The main file in "Admin's Debug Tool" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("admins-debug-tool.php" instead of "admins_debug_tool.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin380 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 120 | 22 | 380 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin