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.03MB] [CPU: ▼5.40ms] Passed 4 tests
An overview of server-side resources used by Useful Admin Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 39.03 ▼4.80 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.54 ▼3.42 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.99 ▲5.44 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.71 ▼18.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 42.64 ▲11.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Useful Admin Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,779 ▲44 | 13.27 ▼1.13 | 4.44 ▲2.67 | 42.75 ▼3.94 |
Dashboard /wp-admin | 2,185 ▼6 | 4.88 ▼0.03 | 100.30 ▼19.19 | 38.46 ▼7.78 |
Posts /wp-admin/edit.php | 2,075 ▼17 | 2.08 ▲0.07 | 35.94 ▲0.44 | 36.15 ▲4.16 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 18.39 ▼4.77 | 617.35 ▼34.77 | 52.21 ▼3.98 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.24 ▲0.06 | 98.65 ▼0.92 | 41.63 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-hide-admin-menu-items/inc/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-hide-admin-menu-items/auto-hide-admin-menu.php:19
- > 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)
There were no browser issues 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
Please fix the following attributes:
- Donate link: Invalid url: ""
auto-hide-admin-menu-items/auto-hide-admin-menu.php 92% from 13 tests
The entry point to "Useful Admin Menu" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-hide-admin-menu-items.php" instead of "auto-hide-admin-menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin551 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 81 | 73 | 344 |
JavaScript | 2 | 18 | 16 | 169 |
CSS | 1 | 6 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 23 | |
▷ Static methods | 14 | 60.87% |
▷ Public methods | 9 | 39.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 60.87% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin