Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.70ms] Passed 4 tests
Server-side resources used by Opal Mega Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.17 | 41.91 ▼1.20 |
Dashboard /wp-admin | 3.52 ▲0.18 | 49.44 ▼7.75 |
Posts /wp-admin/edit.php | 3.64 ▲0.24 | 51.14 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.17 | 85.76 ▼5.99 |
Media Library /wp-admin/upload.php | 3.44 ▲0.17 | 42.32 ▲2.91 |
Megamenu Template /wp-admin/admin.php?page=dashboard | 3.41 | 35.11 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Opal Mega Menu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.15 ▼0.44 | 1.69 ▲0.18 | 40.20 ▼2.39 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.02 | 90.20 ▼5.47 | 38.05 ▼2.26 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.04 | 33.58 ▼3.54 | 36.12 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.22 ▼0.01 | 687.65 ▲25.83 | 56.42 ▲3.61 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.13 ▼0.06 | 114.52 ▲7.86 | 47.41 ▲0.56 |
Megamenu Template /wp-admin/admin.php?page=dashboard | 803 | 2.15 | 25.70 | 29.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/opal-megamenu-for-elementor/templates/single-menu.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in opal-megamenu-for-elementor/assets to your readme.txt
opal-megamenu-for-elementor/opalmegamenu.php 85% from 13 tests
The main PHP script in "Opal Mega Menu" version 1.1.16 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("opal-megamenu-for-elementor.php" instead of "opalmegamenu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,075 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 632 | 343 | 4,155 |
CSS | 3 | 279 | 8 | 1,642 |
JavaScript | 4 | 53 | 96 | 1,278 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 4 | 5.71% |
▷ Public methods | 51 | 72.86% |
▷ Protected methods | 10 | 14.29% |
▷ Private methods | 9 | 12.86% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin