Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.08ms] Passed 4 tests
This is a short check of server-side resources used by WP Mega Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 44.04 ▲6.27 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.06 ▲4.33 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 42.30 ▼2.78 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.17 ▼2.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.18 ▲5.03 |
Themes /wp-admin/admin.php?page=wp_megamenu_themes | 3.40 | 36.89 |
WP Mega Menu /wp-admin/admin.php?page=wp_megamenu | 3.39 | 33.30 |
Go Premium /wp-admin/admin.php?page=wpmm-go-premium | 3.20 | 20.90 |
Server storage [IO: ▲3.60MB] [DB: ▲0.10MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 98 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wpmm_options |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_wpmm_grid_posts_widget |
WPMM_VER |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_wpmm_featuresbox_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Mega Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲289 | 14.44 ▼0.24 | 8.19 ▲6.36 | 41.63 ▲2.12 |
Dashboard /wp-admin | 2,309 ▲120 | 5.47 ▲0.53 | 121.83 ▼0.17 | 52.82 ▲11.57 |
Posts /wp-admin/edit.php | 2,196 ▲107 | 2.57 ▲0.56 | 42.81 ▲8.67 | 45.14 ▲10.89 |
Add New Post /wp-admin/post-new.php | 1,602 ▲73 | 23.49 ▲5.48 | 673.01 ▲73.53 | 35.46 ▼22.35 |
Media Library /wp-admin/upload.php | 1,491 ▲103 | 4.90 ▲0.67 | 108.33 ▲11.87 | 53.11 ▲10.61 |
Themes /wp-admin/admin.php?page=wp_megamenu_themes | 1,201 | 3.84 | 42.22 | 44.39 |
WP Mega Menu /wp-admin/admin.php?page=wp_megamenu | 1,125 | 2.48 | 36.04 | 44.19 |
Go Premium /wp-admin/admin.php?page=wpmm-go-premium | 2,113 | 8.98 | 226.55 | 131.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.10MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- widget_wpmm_featuresbox_widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wpmm_options
- widget_wpmm_grid_posts_widget
- db_upgraded
- WPMM_VER
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-megamenu/includes/compability.php:5
- > PHP Warning
Use of undefined constant WPMM_DIR - assumed 'WPMM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-megamenu/views/admin/wp_megamenu_themes.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-widgets.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-export-import.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wp-megamenu/views/admin/themes.php:7
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/wp-megamenu/libs/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
- > PHP Warning
Use of undefined constant WPMM_DIR - assumed 'WPMM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-css.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-megamenu/classes/wp_megamenu_functions.php:1497
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-base.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-megamenu/libs/wpmm-header-cart.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wp-megamenu/wp-megamenu.php 85% from 13 tests
The principal PHP file in "WP Mega Menu" v. 1.4.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin26,531 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 2,025 | 1,845 | 11,531 |
CSS | 9 | 201 | 175 | 6,824 |
JavaScript | 7 | 1,262 | 442 | 5,225 |
SVG | 2 | 0 | 1 | 2,685 |
JSON | 4 | 0 | 0 | 186 |
Markdown | 1 | 21 | 0 | 38 |
YAML | 1 | 0 | 0 | 31 |
Dockerfile | 1 | 2 | 0 | 11 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 292)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 42.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 328.00 |
Average method complexity | 6.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 292.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 11 | 6.25% |
▷ Public methods | 139 | 78.98% |
▷ Protected methods | 34 | 19.32% |
▷ Private methods | 3 | 1.70% |
Functions | 63 | |
▷ Named functions | 55 | 87.30% |
▷ Anonymous functions | 8 | 12.70% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/6-6.png | 1.44KB | 0.41KB | ▼ 71.39% |
assets/images/3-3-3-3-12.png | 2.04KB | 0.75KB | ▼ 63.24% |
assets/images/4-4-4-6-6.png | 2.09KB | 0.70KB | ▼ 66.64% |
assets/images/4-4-4.png | 1.49KB | 0.44KB | ▼ 70.49% |
assets/images/4-4-4-12.png | 1.98KB | 0.65KB | ▼ 67.13% |