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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.90ms] Passed 4 tests
Server-side resources used by Easy Mega Menu Plugin for WordPress - ThemeHunk
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.50 ▼8.99 |
Dashboard /wp-admin | 3.47 ▲0.13 | 52.62 ▼12.83 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.30 ▼4.97 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.67 ▼12.81 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.39 ▲2.70 |
Server storage [IO: ▲2.09MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Easy Mega Menu Plugin for WordPress - ThemeHunk: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,495 ▲734 | 17.89 ▲3.52 | 5.29 ▲3.67 | 37.60 ▼0.53 |
Dashboard /wp-admin | 2,801 ▲621 | 8.51 ▲2.86 | 147.72 ▲64.61 | 47.82 ▲5.67 |
Posts /wp-admin/edit.php | 2,745 ▲648 | 6.02 ▲4.08 | 82.04 ▲45.83 | 46.19 ▲4.80 |
Add New Post /wp-admin/post-new.php | 1,901 ▲366 | 24.89 ▲6.58 | 721.46 ▲79.32 | 50.58 ▼10.40 |
Media Library /wp-admin/upload.php | 1,875 ▲481 | 6.12 ▲1.90 | 112.27 ▲10.79 | 60.53 ▲19.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant THEMEHUNK_MEGAMENU_URL - assumed 'THEMEHUNK_MEGAMENU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php on line 11
- > PHP Notice
Undefined variable: theme in wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php on line 42
- > PHP Notice
Undefined variable: display in wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php on line 2
- > PHP Notice
Undefined variable: theme in wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php on line 5
- > PHP Warning
Use of undefined constant THEMEHUNK_MEGAMENU_URL - assumed 'THEMEHUNK_MEGAMENU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/themehunk-megamenu-plus/notify/notify-html.php on line 48
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Drag & Drop Modules), #2 (Default menu styling), #3 (Background Styling)
themehunk-megamenu-plus/themehunk-megamenu.php 77% from 13 tests
"Easy Mega Menu Plugin for WordPress - ThemeHunk" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.5" instead of "5.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("themehunk-megamenu-plus.php" instead of "themehunk-megamenu.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin15,710 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 315 | 128 | 5,352 |
PHP | 15 | 852 | 635 | 3,873 |
JavaScript | 10 | 735 | 711 | 3,814 |
SVG | 1 | 0 | 0 | 2,671 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 33.70 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 105 | |
▷ Static methods | 6 | 5.71% |
▷ Public methods | 89 | 84.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 15.24% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
7 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/panel-right.png | 0.38KB | 0.40KB | 0.00% |
assets/images/left-align.png | 0.12KB | 0.13KB | 0.00% |
assets/images/right-align.png | 0.12KB | 0.13KB | 0.00% |
assets/images/center-align.png | 0.12KB | 0.13KB | 0.00% |
assets/images/panel-left.png | 0.32KB | 0.34KB | 0.00% |