74% responsive-menu

Code Review | Responsive Menu - Create Mobile-Friendly Menu

WordPress plugin Responsive Menu - Create Mobile-Friendly Menu scored 74% from 54 tests.

About plugin

Code review

54 tests

User reviews

480 reviews

Install metrics

100,000+ active / 3,725,240 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2248.14 ▲6.01
Dashboard /wp-admin3.50 ▲0.2063.53 ▲16.24
Posts /wp-admin/edit.php3.55 ▲0.2072.25 ▲27.13
Add New Post /wp-admin/post-new.php6.09 ▲0.2097.33 ▼2.14
Media Library /wp-admin/upload.php3.42 ▲0.2046.27 ▲10.72
Themes /wp-admin/edit.php?post_type=rmp_menu&page=themes3.4747.23
Settings /wp-admin/edit.php?post_type=rmp_menu&page=settings3.4962.09
Menus /wp-admin/edit.php?post_type=rmp_menu3.6060.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.61 ▼0.826.30 ▲4.4952.87 ▲5.36
Dashboard /wp-admin2,221 ▲335.85 ▲0.95136.81 ▲27.44106.72 ▲64.77
Posts /wp-admin/edit.php2,122 ▲302.11 ▲0.0948.49 ▲8.4342.03 ▲8.75
Add New Post /wp-admin/post-new.php1,549 ▲1623.26 ▼0.03726.28 ▲133.4553.09 ▲7.74
Media Library /wp-admin/upload.php1,415 ▲244.20 ▲0.01108.01 ▲12.7076.88 ▲34.61
Themes /wp-admin/edit.php?post_type=rmp_menu&page=themes1,2023.9566.5964.02
Settings /wp-admin/edit.php?post_type=rmp_menu&page=settings1,3613.6979.5384.64
Menus /wp-admin/edit.php?post_type=rmp_menu1,6353.9670.1981.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

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
43,056 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP995,1137,87421,729
JSON130013,191
CSS4360393,231
JavaScript145155882,514
Sass4316141,664
Markdown41710677
SVG100040
XML1156
DOS Batch1004

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 code0.46
Average class complexity44.92
▷ Minimum class complexity1.00
▷ Maximum class complexity1,484.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity198.00
Code structure
Namespaces18
Interfaces2
Traits1
Classes73
▷ Abstract classes22.74%
▷ Concrete classes7197.26%
▷ Final classes34.23%
Methods756
▷ Static methods516.75%
▷ Public methods36548.28%
▷ Protected methods34245.24%
▷ Private methods496.48%
Functions54
▷ Named functions2851.85%
▷ Anonymous functions2648.15%
Constants88
▷ Global constants1415.91%
▷ Class constants7484.09%
▷ Public constants74100.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
FileSize - originalSize - compressedSavings
v4.0.0/assets/images/rmp-warning.png0.47KB0.34KB▼ 26.61%
v4.0.0/themes/full-width-theme/person.png11.25KB4.84KB▼ 56.97%
v4.0.0/assets/images/default-theme-preview.png12.74KB4.94KB▼ 61.23%
v4.0.0/themes/simple-red-free/person.png11.25KB4.84KB▼ 56.97%
v4.0.0/themes/simple-red-free/preview.png17.52KB5.54KB▼ 68.36%