72% side-slide-responsive-menu

Code Review | Side Slide Responsive Menu

WordPress plugin Side Slide Responsive Menu scored72%from 54 tests.

About plugin

  • Plugin page: side-slide-respon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: May 18, 2014
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: dejocar (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /8,701 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.01MB] [CPU: ▼0.12ms] Passed 4 tests

An overview of server-side resources used by Side Slide Responsive Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.78 ▲1.35
Dashboard /wp-admin3.31 ▲0.0145.85 ▼1.84
Posts /wp-admin/edit.php3.36 ▲0.0151.09 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.48 ▲9.78
Media Library /wp-admin/upload.php3.24 ▲0.0136.60 ▼2.70
Side Slide Menu /wp-admin/options-general.php?page=side-slide-menu5.4550.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options
ssmenu_menu_admin_webfonts_date
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
ssmenu_settings
widget_recent-posts
ssmenu_menu_admin_webfonts

Browser metrics Passed 4 tests

Side Slide Responsive Menu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8913.23 ▼1.152.83 ▲0.8842.85 ▲1.45
Dashboard /wp-admin2,210 ▲225.85 ▼0.21105.73 ▼5.0243.18 ▲3.90
Posts /wp-admin/edit.php2,093 ▲72.14 ▲0.1041.87 ▲1.5438.39 ▲3.38
Add New Post /wp-admin/post-new.php1,536 ▲1723.21 ▼0.09627.68 ▼6.5146.17 ▼13.20
Media Library /wp-admin/upload.php1,392 ▲104.22 ▼0.0197.28 ▼0.2940.51 ▼2.41
Side Slide Menu /wp-admin/options-general.php?page=side-slide-menu3,6242.0523.8530.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • ssmenu_settings
    • widget_recent-posts
    • can_compress_scripts
    • ssmenu_menu_admin_webfonts_date
    • theysaidso_admin_options
    • ssmenu_menu_admin_webfonts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/side-slide-responsive-menu/sideslide_html.php
    • > /wp-content/plugins/side-slide-responsive-menu/sideslide_css.php
  • 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_html.php on line 55
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_admin.php on line 10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 13
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 33
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 47
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 30
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/side-slide-responsive-menu/sideslide_css.php on line 50
    • > PHP Notice
      Undefined variable: menuitems in wp-content/plugins/side-slide-responsive-menu/sideslide_html.php on line 12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=side-slide-menu
    • > Network (severe)
    wp-content/plugins/sideslidemenu/js/sideslideadmin.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=side-slide-menu
    • > Network (severe)
    wp-content/plugins/sideslidemenu/jscolor/jscolor.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: push menu, responsive menu, flyout menu, kick menu, side menu...

side-slide-responsive-menu/sideslidemenu.php 92% from 13 tests

"Side Slide Responsive Menu" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("side-slide-responsive-menu.php" instead of "sideslidemenu.php")

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
There were no executable files found in this plugin1,490 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript516862947
PHP57066355
CSS14510188

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jscolor/hs.png2.62KB7.54KB0.00%
jscolor/hv.png2.80KB7.32KB0.00%