79% responsive-sliding-menu

Code Review | Responsive Sliding Menu

WordPress plugin Responsive Sliding Menu scored79%from 54 tests.

About plugin

  • Plugin page: responsive-slidin...
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Feb 3, 2022
  • Number of updates: 28
  • Update frequency: every 20.7 days
  • Top authors: lekciewp (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /5,010 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.08MB] [CPU: ▼14.81ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Sliding Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.15 ▼1.27
Dashboard /wp-admin3.29 ▼0.0545.83 ▼20.74
Posts /wp-admin/edit.php3.36 ▲0.0040.26 ▼12.29
Add New Post /wp-admin/post-new.php5.54 ▼0.3584.21 ▼24.93
Media Library /wp-admin/upload.php3.30 ▲0.0734.91 ▲1.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
rsm_activated_date
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Sliding Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.57 ▼0.599.55 ▲8.0542.10 ▲0.79
Dashboard /wp-admin2,234 ▲575.74 ▲0.0788.59 ▼4.0840.93 ▲0.06
Posts /wp-admin/edit.php2,144 ▲442.30 ▲0.3139.40 ▼0.2734.97 ▼3.74
Add New Post /wp-admin/post-new.php1,560 ▲2923.18 ▲0.20659.17 ▲30.7235.04 ▼24.67
Media Library /wp-admin/upload.php1,445 ▲514.51 ▲0.3396.67 ▼4.9542.64 ▼5.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • rsm_activated_date
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-sliding-menu/public/partials/responsive-sliding-menu-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/responsive-sliding-menu/admin/partials/elementor/class-elementor-widgets-integration.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/responsive-sliding-menu/admin/partials/responsive-sliding-menu-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
9 plugin tags: elementor menu, elementor widget, menu, elementor, mobile menu...

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

The entry point to "Responsive Sliding Menu" version 1.4.4 is a PHP file that has certain tags in its header comment area
58 characters long description:
Creates an opening sideways menu. Guaranteed "Wow" effect!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,439 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP142057661,234
CSS3829859
JavaScript22526190
PO File15873156

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods48
▷ Static methods36.25%
▷ Public methods4185.42%
▷ Protected methods24.17%
▷ Private methods510.42%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
responsive-sliding-menu.png24.81KB8.44KB▼ 65.97%