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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.29ms] Passed 4 tests
A check of server-side resources used by WordPress Mega Menu Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.33 ▲1.05 |
Dashboard /wp-admin | 3.32 ▼0.02 | 43.20 ▼15.41 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.43 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.42 ▼3.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.88 ▲1.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Mega Menu Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲111 | 13.34 ▼0.94 | 9.58 ▲7.69 | 48.30 ▲4.29 |
Dashboard /wp-admin | 2,192 ▲18 | 5.61 ▲0.01 | 92.59 ▼12.26 | 42.16 ▼1.63 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.03 | 39.90 ▲3.85 | 35.74 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6,194 ▲4,668 | 18.99 ▼4.59 | 904.43 ▲255.18 | 58.12 ▼10.63 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.08 | 98.66 ▼0.49 | 42.18 ▼3.26 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/MegaMenuItem.php:7
- > PHP Fatal error
Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/MegaMenu.php:7
- > PHP Fatal error
Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/PlainMenu.php:7
- > PHP Fatal error
Uncaught Error: Class 'GetwidMegaMenu\\AbstractBlock' not found in wp-content/plugins/getwid-megamenu/includes/blocks/PlainMenuItem.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in getwid-megamenu/assets to your readme.txt
getwid-megamenu/getwid-megamenu.php Passed 13 tests
The main PHP file in "WordPress Mega Menu Block" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Build better navigation menus with the WordPress mega menu blocks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin514 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 134 | 25 | 435 |
CSS | 2 | 19 | 0 | 77 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 35.00% |
▷ Protected methods | 20 | 50.00% |
▷ Private methods | 6 | 15.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin