84% responsive-mobile-select-menu

Code Review | Responsive Mobile Select Menu

WordPress plugin Responsive Mobile Select Menu scored84%from 54 tests.

About plugin

  • Plugin page: responsive-mobile...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 15
  • Update frequency: every 103.5 days
  • Top authors: Jyria (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,446 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.21ms] Passed 4 tests

An overview of server-side resources used by Responsive Mobile Select Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.01 ▼9.21
Dashboard /wp-admin3.33 ▲0.0243.18 ▼4.94
Posts /wp-admin/edit.php3.38 ▲0.0249.19 ▼3.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.86 ▼3.18
Media Library /wp-admin/upload.php3.25 ▲0.0234.06 ▲0.06
Responsive Menu /wp-admin/themes.php?page=responsive-mobile-select3.2230.75

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Mobile Select Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15013.37 ▼0.978.44 ▲6.6137.90 ▼4.79
Dashboard /wp-admin2,202 ▲255.63 ▲0.0491.02 ▼7.0841.80 ▼5.56
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0739.32 ▼2.7735.15 ▼3.63
Add New Post /wp-admin/post-new.php1,529 ▲322.96 ▲0.02601.85 ▼14.0747.87 ▼12.63
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0693.95 ▼3.3640.98 ▼0.32
Responsive Menu /wp-admin/themes.php?page=responsive-mobile-select1,0742.4239.3776.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/responsive-mobile-select-menu/responsive-mobile-select-menu.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/responsive-mobile-select-menu/classes/class-rms-walker.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Responsive mobile select menu on the iPhone/iPod Touch)
The official readme.txt is a good inspiration

responsive-mobile-select-menu/responsive-mobile-select-menu.php 92% from 13 tests

The main file in "Responsive Mobile Select Menu" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,804 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4221133765
CSS14713569
PO File2106110308
JavaScript1211780
Markdown142070
SVG10012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity33.67
▷ Minimum class complexity13.00
▷ Maximum class complexity66.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png107.45KB44.65KB▼ 58.45%
screenshot-1.png92.91KB33.77KB▼ 63.65%
assets/images/social_media_icons/dribbble.png1.34KB0.50KB▼ 62.54%
assets/images/social_media_icons/facebook.png1.08KB0.21KB▼ 80.62%
assets/images/social_media_icons/twitter_2.png1.20KB0.36KB▼ 70.02%