Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-easy-menu/wp-easy-menu.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; EasyMenu has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼50.31ms] Passed 4 tests
An overview of server-side resources used by WP-Easy Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.99 ▼33.09 |
Dashboard /wp-admin | 2.12 ▼1.19 | 5.73 ▼43.25 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.69 ▼36.84 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.05 ▼88.05 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 4.81 ▼27.83 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Easy Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▼0.18 | 1.90 ▲0.26 | 45.89 ▲8.68 |
Dashboard /wp-admin | 2,210 ▲30 | 5.64 ▲0.08 | 81.13 ▼6.73 | 38.87 ▼4.31 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 1.96 ▼0.06 | 35.99 ▲1.73 | 32.76 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.28 ▲0.30 | 673.36 ▲58.28 | 64.17 ▲15.49 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.17 ▼0.09 | 92.97 ▼1.68 | 40.98 ▼1.09 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-easy-menu/wp-easy-menu.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; EasyMenu has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-easy-menu/html/wp-admin-sidebar.php
- > /wp-content/plugins/wp-easy-menu/html/wp-admin.php
- > /wp-content/plugins/wp-easy-menu/html/wp-admin-form.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/wp-easy-menu/wp-easy-menu.php:20
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-menu/wp-easy-menu.php on line 18
- > PHP Warning
constant(): Couldn't find constant WEMENU_URL in wp-content/plugins/wp-easy-menu/html/wp-admin.php on line 8
- > PHP Notice
Undefined variable: sidebar_init in wp-content/plugins/wp-easy-menu/html/wp-admin-sidebar.php on line 5
- > PHP Warning
constant(): Couldn't find constant WEMENU_URL in wp-content/plugins/wp-easy-menu/html/wp-admin-form.php on line 7
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Adding Home), #2 (Adding Category), #3 (Adding Page), #4 (Adding Custom), #5 (Result), #6 (WP-Easy Menu on Website)
wp-easy-menu/wp-easy-menu.php Passed 13 tests
"WP-Easy Menu" version 0.41's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
107 characters long description:
Automatically generates menu from taxonomies, custom post types, categories, pages, posts and custom links.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,462 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 248 | 67 | 1,304 |
CSS | 1 | 1 | 0 | 158 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 41 | 87.23% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
7 PNG files occupy 0.48MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 86.15KB | 31.08KB | ▼ 63.92% |
screenshot-1.png | 64.97KB | 23.72KB | ▼ 63.48% |
screenshot-2.png | 59.04KB | 21.12KB | ▼ 64.22% |
screenshot-4.png | 53.61KB | 19.25KB | ▼ 64.09% |
screenshot-7.png | 29.90KB | 10.47KB | ▼ 64.99% |