Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▲7.71ms] Passed 4 tests
Server-side resources used by Responsive Menu - Create Mobile-Friendly Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 48.14 ▲6.01 |
Dashboard /wp-admin | 3.50 ▲0.20 | 63.53 ▲16.24 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 72.25 ▲27.13 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 97.33 ▼2.14 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 46.27 ▲10.72 |
Themes /wp-admin/edit.php?post_type=rmp_menu&page=themes | 3.47 | 47.23 |
Settings /wp-admin/edit.php?post_type=rmp_menu&page=settings | 3.49 | 62.09 |
Menus /wp-admin/edit.php?post_type=rmp_menu | 3.60 | 60.38 |
Server storage [IO: ▲2.61MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 182 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
rm_review_message_trigger |
rmp_global_setting_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Responsive Menu - Create Mobile-Friendly Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.61 ▼0.82 | 6.30 ▲4.49 | 52.87 ▲5.36 |
Dashboard /wp-admin | 2,221 ▲33 | 5.85 ▲0.95 | 136.81 ▲27.44 | 106.72 ▲64.77 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.11 ▲0.09 | 48.49 ▲8.43 | 42.03 ▲8.75 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.26 ▼0.03 | 726.28 ▲133.45 | 53.09 ▲7.74 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.20 ▲0.01 | 108.01 ▲12.70 | 76.88 ▲34.61 |
Themes /wp-admin/edit.php?post_type=rmp_menu&page=themes | 1,202 | 3.95 | 66.59 | 64.02 |
Settings /wp-admin/edit.php?post_type=rmp_menu&page=settings | 1,361 | 3.69 | 79.53 | 84.64 |
Menus /wp-admin/edit.php?post_type=rmp_menu | 1,635 | 3.96 | 70.19 | 81.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- rm_review_message_trigger
- can_compress_scripts
- rmp_global_setting_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responsive-menu/v4.0.0/templates/menu-elements/search.php:4
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Block/DirectiveBlock.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Exception/ParserException.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responsive-menu/v4.0.0/templates/menu-elements/menu.php:3
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Logger/QuietLogger.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-menu/v4.0.0/inc/helpers/custom-functions.php:272
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Formatter/Crunched.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responsive-menu/v4.0.0/templates/menu-elements/additional-content.php:3
- > PHP Fatal error
Uncaught Error: Class 'RMP\\Features\\Inc\\Theme_Manager' not found in wp-content/plugins/responsive-menu/v4.0.0/templates/new-menu-wizard.php:10
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/scssphp/scssphp/src/Block/CallableBlock.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: hamburger, mega menu, responsive, mobile, navigation
responsive-menu/responsive-menu.php Passed 13 tests
"Responsive Menu - Create Mobile-Friendly Menu" version 4.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Highly Customisable Responsive Menu Plugin for WordPress
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/responsive-menu/v4.0.0/libs/scssphp/vendor/bin/pscss.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 5,113 | 7,874 | 21,729 |
JSON | 13 | 0 | 0 | 13,191 |
CSS | 4 | 360 | 39 | 3,231 |
JavaScript | 14 | 515 | 588 | 2,514 |
Sass | 4 | 316 | 14 | 1,664 |
Markdown | 4 | 171 | 0 | 677 |
SVG | 10 | 0 | 0 | 40 |
XML | 1 | 1 | 5 | 6 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,484)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 44.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,484.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 73 | |
▷ Abstract classes | 2 | 2.74% |
▷ Concrete classes | 71 | 97.26% |
▷ Final classes | 3 | 4.23% |
Methods | 756 | |
▷ Static methods | 51 | 6.75% |
▷ Public methods | 365 | 48.28% |
▷ Protected methods | 342 | 45.24% |
▷ Private methods | 49 | 6.48% |
Functions | 54 | |
▷ Named functions | 28 | 51.85% |
▷ Anonymous functions | 26 | 48.15% |
Constants | 88 | |
▷ Global constants | 14 | 15.91% |
▷ Class constants | 74 | 84.09% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
v4.0.0/assets/images/rmp-warning.png | 0.47KB | 0.34KB | ▼ 26.61% |
v4.0.0/themes/full-width-theme/person.png | 11.25KB | 4.84KB | ▼ 56.97% |
v4.0.0/assets/images/default-theme-preview.png | 12.74KB | 4.94KB | ▼ 61.23% |
v4.0.0/themes/simple-red-free/person.png | 11.25KB | 4.84KB | ▼ 56.97% |
v4.0.0/themes/simple-red-free/preview.png | 17.52KB | 5.54KB | ▼ 68.36% |