Benchmarks
Plugin footprint 83% 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.06MB] [CPU: ▼2.34ms] Passed 4 tests
A check of server-side resources used by Ozh' Admin Drop Down Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.73 ▼5.40 |
Dashboard /wp-admin | 3.38 ▲0.08 | 57.30 ▼0.34 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 56.39 ▲4.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 100.40 ▼7.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.65 ▲5.51 |
Admin Menu /wp-admin/options-general.php?page=ozh_admin_menu | 3.33 | 36.97 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Ozh' Admin Drop Down Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲294 | 14.40 ▲0.25 | 2.22 ▲0.18 | 38.00 ▼0.08 |
Dashboard /wp-admin | 2,455 ▲275 | 5.67 ▲0.00 | 94.64 ▼2.15 | 47.41 ▲4.86 |
Posts /wp-admin/edit.php | 2,369 ▲269 | 2.04 ▲0.01 | 39.32 ▲1.35 | 103.06 ▲67.13 |
Add New Post /wp-admin/post-new.php | 1,924 ▲398 | 22.54 ▼1.10 | 602.50 ▼90.21 | 75.37 ▲20.62 |
Media Library /wp-admin/upload.php | 1,660 ▲260 | 4.34 ▲0.07 | 104.80 ▼7.98 | 48.33 ▲2.19 |
Admin Menu /wp-admin/options-general.php?page=ozh_admin_menu | 1,320 | 1.82 | 36.49 | 85.24 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ozh-admin-drop-down-menu/inc/adminmenu.css.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ozh-admin-drop-down-menu/wp_ozh_adminmenu.php:135
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: drop down, ozh, dropdown, productivity, menu...
ozh-admin-drop-down-menu/wp_ozh_adminmenu.php 92% from 13 tests
This is the main PHP file of "Ozh' Admin Drop Down Menu" version 3.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("ozh-admin-drop-down-menu.php" instead of "wp_ozh_adminmenu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,013 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 865 | 1,184 | 2,131 |
PHP | 6 | 182 | 318 | 808 |
JavaScript | 1 | 4 | 17 | 54 |
Markdown | 1 | 10 | 0 | 11 |
HTML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
54 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/image_add.png | 0.64KB | 0.70KB | 0.00% |
inc/images/eye.png | 0.73KB | 0.79KB | 0.00% |
inc/images/plugin_add.png | 0.67KB | 0.70KB | 0.00% |
inc/images/cancel.png | 0.57KB | 0.62KB | 0.00% |
inc/images/layout_edit.png | 0.70KB | 0.72KB | 0.00% |