Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.55MB] [CPU: ▲6.22ms] Passed 4 tests
A check of server-side resources used by Clever Mega Menu for Elementor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 48.55 ▲3.90 |
Dashboard /wp-admin | 4.86 ▲1.55 | 53.38 ▲0.98 |
Posts /wp-admin/edit.php | 4.98 ▲1.62 | 60.02 ▲9.64 |
Add New Post /wp-admin/post-new.php | 7.44 ▲1.55 | 108.26 ▲10.37 |
Media Library /wp-admin/upload.php | 4.78 ▲1.55 | 50.98 ▲14.56 |
Menu Skins /wp-admin/edit.php?post_type=cmm4e_menu_theme | 4.87 | 48.43 |
Mega Menu /wp-admin/admin.php?page=cmm4e-dashboard-page | 4.75 | 39.58 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
cmm4e_plugin_settings |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Clever Mega Menu for Elementor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲208 | 13.57 ▼1.05 | 7.67 ▲6.07 | 40.16 ▼8.50 |
Dashboard /wp-admin | 2,253 ▲50 | 4.88 ▼0.03 | 102.13 ▼6.04 | 77.68 ▲32.95 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 2.21 ▲0.21 | 37.53 ▲1.04 | 35.40 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,720 ▲189 | 22.65 ▼0.59 | 681.80 ▲0.37 | 56.28 ▲3.57 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.34 ▲0.16 | 112.47 ▲10.08 | 75.30 ▲27.86 |
Menu Skins /wp-admin/edit.php?post_type=cmm4e_menu_theme | 1,622 | 2.25 | 35.68 | 33.02 |
Mega Menu /wp-admin/admin.php?page=cmm4e-dashboard-page | 982 | 4.63 | 42.92 | 56.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- cmm4e_plugin_settings
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clever-mega-menu-for-elementor/includes/admin/pages/dashboard.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\add_action() in wp-content/plugins/clever-mega-menu-for-elementor/includes/elementor/controls/document.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\add_action() in wp-content/plugins/clever-mega-menu-for-elementor/includes/post-types/menu-theme.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\add_action() in wp-content/plugins/clever-mega-menu-for-elementor/includes/meta/menu-term.php:45
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/clever-mega-menu-for-elementor/includes/elementor/widgets/cmm4e.php:9
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/clever-mega-menu-for-elementor/includes/mega-menu-walker.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/clever-mega-menu-for-elementor/includes/templates/cmm4e-menu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\add_action() in wp-content/plugins/clever-mega-menu-for-elementor/includes/post-types/cmm4e-menu.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\get_option() in wp-content/plugins/clever-mega-menu-for-elementor/clever-mega-menu-for-elementor.php:463
- > PHP Fatal error
Uncaught Error: Call to undefined function CleverSoft\\WpPlugin\\Cmm4E\\get_post_meta() in wp-content/plugins/clever-mega-menu-for-elementor/includes/meta/menu-theme.php:250
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: mega menu, flyout menu, wordpress mega menu, navigation menu, elementor
clever-mega-menu-for-elementor/clever-mega-menu-for-elementor.php 92% from 13 tests
Analyzing the main PHP file in "Clever Mega Menu for Elementor" version 1.1.2
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 334 characters long)
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 detected10,955 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 962 | 815 | 7,938 |
SVG | 2 | 0 | 0 | 3,005 |
CSS | 7 | 0 | 3 | 7 |
JavaScript | 5 | 0 | 0 | 5 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 84.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 8 | 61.54% |
Methods | 274 | |
▷ Static methods | 7 | 2.55% |
▷ Public methods | 74 | 27.01% |
▷ Protected methods | 178 | 64.96% |
▷ Private methods | 22 | 8.03% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/images/clever-mega-menu-icon.png | 6.34KB | 3.02KB | ▼ 52.33% |
assets/backend/images/clever-mega-menu-icon-16x16.png | 1.63KB | 1.05KB | ▼ 35.33% |