10% responsive-select-menu

Code Review | Responsive Select Menu

WordPress plugin Responsive Select Menu scored10%from 54 tests.

About plugin

  • Plugin page: responsive-select...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.1
  • WordPress version: 6.3.1
  • First release: May 10, 2012
  • Latest release: Jan 11, 2016
  • Number of updates: 33
  • Update frequency: every 40.6 days
  • Top authors: sevenspark (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

5,000+ active /215,781 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.69MB] [CPU: ▼58.79ms] Passed 4 tests

Analyzing server-side resources used by Responsive Select Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.166.14 ▼43.26
Dashboard /wp-admin2.32 ▼0.998.30 ▼45.97
Posts /wp-admin/edit.php2.32 ▼1.049.15 ▼45.58
Add New Post /wp-admin/post-new.php2.32 ▼3.577.52 ▼100.34
Media Library /wp-admin/upload.php2.32 ▼0.919.86 ▼28.23
Responsive Select /wp-admin/themes.php?page=responsive-select2.337.67

Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Select Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲12513.43 ▼0.939.01 ▲6.8043.76 ▼1.10
Dashboard /wp-admin2,199 ▲255.65 ▼0.0397.25 ▲5.8843.42 ▼5.15
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0135.49 ▼6.1933.61 ▼4.64
Add New Post /wp-admin/post-new.php1,529 ▲323.39 ▼0.18691.11 ▲14.1052.19 ▼10.73
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.0099.66 ▼11.9045.99 ▲0.78
Responsive Select /wp-admin/themes.php?page=responsive-select1,3432.0347.3983.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=responsive-select
    • > Warning in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php+778
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php on line 778
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php on line 778
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/responsive-select-menu/sparkoptions/SparkOptions.class.php:43

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/themes.php?page=responsive-select
    • > Network (severe)
    https://0.s3.envato.com/files/56692616/FlatSkinPack_CodeCanyonPackaging.png - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Responsive select menu on the iPhone/iPod Touch), #2 (Responsive select menu Control Panel)
Please take inspiration from this readme.txt

responsive-select-menu/responsive-select-menu.php Passed 13 tests

The main file in "Responsive Select Menu" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Turn your menu into a select box at small viewport sizes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,716 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2450100998
CSS110917580
JavaScript1261780
Markdown148058

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity54.67
▷ Minimum class complexity23.00
▷ Maximum class complexity85.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sparkoptions/images/sslogo.png0.87KB1.45KB0.00%
sparkoptions/images/toolbox.png1.04KB0.13KB▼ 87.08%
sparkoptions/images/social_media_icons/facebook.png1.08KB0.21KB▼ 80.62%
sparkoptions/images/social_media_icons/dribbble.png1.34KB0.50KB▼ 62.54%
screenshot-2.png174.36KB47.32KB▼ 72.86%