Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.22ms] Passed 4 tests
Server-side resources used by HT Menu - WordPress Mega Menu Builder for Elementor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.15 ▲0.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.28 ▼1.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.83 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.29 ▲2.67 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.37 ▲1.93 |
Server storage [IO: ▲1.47MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
htmegamenu_do_activation_redirect |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
HT Menu - WordPress Mega Menu Builder for Elementor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.26 ▼0.09 | 1.71 ▼0.17 | 42.95 ▲0.94 |
Dashboard /wp-admin | 2,203 ▲26 | 5.64 ▲0.02 | 92.86 ▲2.61 | 42.89 ▲4.43 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.11 ▲0.12 | 35.45 ▼1.67 | 33.31 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.54 ▲0.10 | 678.01 ▼15.23 | 65.48 ▲5.09 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.24 ▼0.11 | 96.39 ▼9.50 | 46.81 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- htmegamenu_do_activation_redirect
- widget_theysaidso_widget
- widget_recent-comments
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
Even though no errors were found, this is by no means 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ht-menu-lite/index.php:3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/ht-menu-lite/include/menu/htmenu_walker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ht-menu-lite/include/menu/menu_term.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ht-menu-lite/include/admin/include/templates_list.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ht-menu-lite/include/menu/htmenu_menu.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% 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: menu, elementor, mega menu, widget, megamenu
ht-menu-lite/ht-mega-menu.php 77% from 13 tests
The primary PHP file in "HT Menu - WordPress Mega Menu Builder for Elementor" version 1.2.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ht-menu-lite.php" instead of "ht-mega-menu.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,554 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 657 | 404 | 3,226 |
CSS | 6 | 76 | 25 | 1,191 |
JavaScript | 7 | 350 | 157 | 955 |
JSON | 1 | 4 | 0 | 129 |
YAML | 2 | 2 | 0 | 34 |
SVG | 1 | 0 | 0 | 19 |
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.33 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 6 | 5.45% |
▷ Public methods | 102 | 92.73% |
▷ Protected methods | 6 | 5.45% |
▷ Private methods | 2 | 1.82% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
60 PNG files occupy 0.91MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/admin/assets/images/portfolio-icon.png | 3.59KB | 3.89KB | 0.00% |
.wordpress-org/screenshot-4.png | 459.56KB | 129.13KB | ▼ 71.90% |
include/admin/assets/images/insert-headers-and-footers-script.png | 6.03KB | 2.71KB | ▼ 55.09% |
include/admin/assets/images/hashbar-icon.png | 1.95KB | 2.06KB | 0.00% |
include/admin/assets/images/instagram-icon.png | 5.13KB | 2.77KB | ▼ 45.95% |