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
This plugin's installer ran successfully
Server metrics [RAM: ▲4.83MB] [CPU: ▲41.99ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Mega menu Plugin - Groovy Menu (Free)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.52 ▲7.06 | 194.01 ▲157.23 |
Dashboard /wp-admin | 8.40 ▲5.05 | 97.95 ▲33.39 |
Posts /wp-admin/edit.php | 8.40 ▲5.04 | 106.25 ▲57.18 |
Add New Post /wp-admin/post-new.php | 9.93 ▲4.04 | 126.33 ▲20.34 |
Media Library /wp-admin/upload.php | 8.40 ▲5.17 | 91.80 ▲57.05 |
Integration /wp-admin/admin.php?page=groovy_menu_integration | 9.35 | 318.85 |
Welcome /wp-admin/admin.php?page=groovy_menu_welcome | 8.40 | 83.73 |
Premium /wp-admin/admin.php?page=groovy_menu_premium | 8.40 | 74.92 |
Dashboard /wp-admin/admin.php?page=groovy_menu_settings | 9.98 | 108.39 |
Menus /wp-admin/admin.php?page=groovy_menu_menus | 8.40 | 79.86 |
Server storage [IO: ▲4.77MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 254 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
groovy_menu_settings_fonts |
groovy_menu_default_preset |
groovy_menu_db_version__msg_data |
groovy_menu_db_version |
groovy_menu_added_capabilities |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Mega menu Plugin - Groovy Menu (Free)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 17.08 ▲2.70 | 36.67 ▲34.99 | 44.99 ▲1.49 |
Dashboard /wp-admin | 2,261 ▲73 | 5.93 ▲1.09 | 110.93 ▲4.37 | 42.33 ▼3.96 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.10 ▲0.10 | 41.01 ▲3.79 | 34.90 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,571 ▲57 | 23.21 ▲5.73 | 614.31 ▼88.69 | 56.82 ▼5.01 |
Media Library /wp-admin/upload.php | 1,443 ▲52 | 4.29 ▲0.10 | 96.58 ▼4.52 | 40.21 ▼6.52 |
Integration /wp-admin/admin.php?page=groovy_menu_integration | 4,301 | 3.69 | 60.27 | 114.05 |
Welcome /wp-admin/admin.php?page=groovy_menu_welcome | 1,352 | 1.75 | 22.71 | 58.08 |
Premium /wp-admin/admin.php?page=groovy_menu_premium | 4,323 | 6.49 | 425.69 | 201.73 |
Dashboard /wp-admin/admin.php?page=groovy_menu_settings | 4,357 | 8.35 | 160.50 | 105.04 |
Menus /wp-admin/admin.php?page=groovy_menu_menus | 3,213 | 4.60 | 73.45 | 31.39 |
Uninstaller [IO: ▲1.26MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 11 options in the database
- groovy_menu_added_capabilities
- groovy_menu_db_version
- db_upgraded
- can_compress_scripts
- groovy_menu_default_preset
- theysaidso_admin_options
- groovy_menu_db_version__msg_data
- widget_theysaidso_widget
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 81× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/groovy-menu-free/template/Preview.php
- > /wp-content/plugins/groovy-menu-free/includes/theme_support/avada.php
- > /wp-content/plugins/groovy-menu-free/includes/theme_support/thrivethemes-gm-init.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/virtualpages/inc/VirtualPagesPageInterface.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/core/inc/GroovyMenuPreset.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/fields/inc/FieldIcon.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/fields/inc/FieldExport.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/fields/inc/FieldLogoType.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/core/inc/GroovyMenuStyle.php
- > /wp-content/plugins/groovy-menu-free/includes/modules/fields/inc/FieldInlineEnd.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
groovy-menu-free/groovy-menu.php 85% from 13 tests
The main PHP file in "Wordpress Mega menu Plugin - Groovy Menu (Free)" ver. 1.4.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("groovy-menu-free.php" instead of "groovy-menu.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected63,560 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 4,537 | 3,672 | 40,096 |
CSS | 19 | 4,661 | 585 | 20,274 |
PO File | 1 | 1,086 | 1,515 | 2,593 |
SVG | 16 | 0 | 9 | 418 |
JSON | 8 | 2 | 0 | 105 |
JavaScript | 13 | 3 | 82 | 43 |
JSX | 2 | 12 | 4 | 26 |
XML | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 205)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 40.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 539.00 |
Average method complexity | 5.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 205.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 75 | 100.00% |
▷ Final classes | 1 | 1.33% |
Methods | 713 | |
▷ Static methods | 161 | 22.58% |
▷ Public methods | 610 | 85.55% |
▷ Protected methods | 82 | 11.50% |
▷ Private methods | 21 | 2.95% |
Functions | 76 | |
▷ Named functions | 62 | 81.58% |
▷ Anonymous functions | 14 | 18.42% |
Constants | 70 | |
▷ Global constants | 13 | 18.57% |
▷ Class constants | 57 | 81.43% |
▷ Public constants | 57 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-type-text.png | 2.63KB | 0.82KB | ▼ 68.76% |
assets/images/logo-type-img.png | 2.83KB | 1.19KB | ▼ 57.88% |
(invalid) assets/images/pattern-preview.png | 0.62KB | 0.00KB | ▼ 100.00% |
assets/images/laptop-with-bg.png | 45.12KB | 17.47KB | ▼ 61.28% |
assets/images/preview-color-transparent.png | 0.39KB | 0.40KB | 0.00% |