Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.72MB] [CPU: ▲7.32ms] Passed 4 tests
An overview of server-side resources used by Max Mega Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.12 ▲1.66 | 46.44 ▲7.75 |
Dashboard /wp-admin | 5.05 ▲1.74 | 58.76 ▲12.22 |
Posts /wp-admin/edit.php | 5.16 ▲1.80 | 52.42 ▲3.45 |
Add New Post /wp-admin/post-new.php | 7.63 ▲1.74 | 89.90 ▲5.86 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 50.19 ▲15.45 |
Menu Locations /wp-admin/admin.php?page=maxmegamenu | 4.94 | 41.79 |
Tools /wp-admin/admin.php?page=maxmegamenu_tools | 4.95 | 42.02 |
Menu Themes /wp-admin/admin.php?page=maxmegamenu_theme_editor | 9.57 | 99.22 |
General Settings /wp-admin/admin.php?page=maxmegamenu_general_settings | 4.95 | 37.63 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 13 new options
New WordPress options |
---|
megamenu_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_maxmegamenu_reusable_block |
widget_recent-comments |
megamenu_install_date |
db_upgraded |
megamenu_multisite_share_themes |
megamenu_version |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Max Mega Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲215 | 13.51 ▼1.04 | 8.89 ▲7.30 | 43.01 ▲0.34 |
Dashboard /wp-admin | 2,253 ▲79 | 5.57 ▼0.01 | 84.85 ▼11.18 | 41.35 ▼1.70 |
Posts /wp-admin/edit.php | 2,162 ▲65 | 2.00 ▲0.01 | 34.62 ▼0.30 | 34.35 ▼1.73 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,860 | 27.88 ▲9.69 | 868.70 ▲214.86 | 71.24 ▲5.43 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.25 ▲0.00 | 96.56 ▲0.78 | 43.27 ▼1.95 |
Menu Locations /wp-admin/admin.php?page=maxmegamenu | 1,199 | 3.32 | 65.43 | 53.77 |
Tools /wp-admin/admin.php?page=maxmegamenu_tools | 1,132 | 3.34 | 69.94 | 35.53 |
Menu Themes /wp-admin/admin.php?page=maxmegamenu_theme_editor | 9,567 | 5.63 | 209.83 | 52.95 |
General Settings /wp-admin/admin.php?page=maxmegamenu_general_settings | 1,150 | 3.24 | 33.29 | 29.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- db_upgraded
- megamenu_multisite_share_themes
- widget_maxmegamenu
- widget_recent-posts
- megamenu_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_maxmegamenu_reusable_block
- megamenu_settings
- megamenu_install_date
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/megamenu/integration/block/location/block.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/megamenu/integration/zerif/functions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: mobile menu, menu, mega menu, responsive menu, navigation
megamenu/megamenu.php Passed 13 tests
The principal PHP file in "Max Mega Menu" v. 3.2.4 is loaded by WordPress automatically on each request
59 characters long description:
An easy to use mega menu plugin. Written the WordPress way.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected40,978 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 3,154 | 2,638 | 12,658 |
JSON | 4 | 0 | 0 | 12,146 |
JavaScript | 13 | 1,074 | 414 | 4,551 |
PO File | 5 | 1,626 | 2,236 | 3,985 |
Sass | 8 | 667 | 26 | 3,919 |
CSS | 6 | 219 | 97 | 3,719 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 85.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 463.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 2 | 9.09% |
Methods | 517 | |
▷ Static methods | 10 | 1.93% |
▷ Public methods | 289 | 55.90% |
▷ Protected methods | 184 | 35.59% |
▷ Private methods | 44 | 8.51% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
12 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/colorbox/images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |
js/colorbox/images/ie6/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |
js/colorbox/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
js/colorbox/images/ie6/borderBottomCenter.png | 0.11KB | 0.10KB | ▼ 8.11% |
js/colorbox/images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |