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: ▼0.01MB] [CPU: ▼9.52ms] Passed 4 tests
Analyzing server-side resources used by Clever Mega Menu for Visual Composer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.36 ▼2.41 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.69 ▼16.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.71 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.98 ▼14.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.34 ▼1.01 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Clever Mega Menu for Visual Composer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.11 | 1.59 ▼0.09 | 41.05 ▼0.45 |
Dashboard /wp-admin | 2,206 ▲21 | 5.84 ▲0.03 | 97.76 ▼4.70 | 39.42 ▼2.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 35.45 ▼6.36 | 33.26 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.26 ▲0.15 | 627.80 ▼18.39 | 54.54 ▼4.63 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▲0.09 | 93.30 ▼11.72 | 42.54 ▼5.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clever-mega-menu/clever-mega-menu.php:526
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/clever-mega-menu/includes/class-clever-mega-menu-walker.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: visual composer, mega menu, navigation menu, flyout menu, wordpress mega menu
clever-mega-menu/clever-mega-menu.php 92% from 13 tests
The principal PHP file in "Clever Mega Menu for Visual Composer" v. 1.0.1 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 229 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
Everything looks great! No dangerous files found in this plugin11,292 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,020 | 1,056 | 7,926 |
CSS | 10 | 207 | 6 | 1,503 |
JavaScript | 14 | 252 | 190 | 1,098 |
Sass | 4 | 2 | 0 | 765 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 74.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 9 | 60.00% |
Methods | 299 | |
▷ Static methods | 4 | 1.34% |
▷ Public methods | 84 | 28.09% |
▷ Protected methods | 184 | 61.54% |
▷ Private methods | 31 | 10.37% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/images/clever-mega-menu-icon-16x16.png | 1.78KB | 0.82KB | ▼ 53.71% |