89% off-canvas-sidebars

Code Review | Off-Canvas Sidebars & Menus (Slidebars)

WordPress plugin Off-Canvas Sidebars & Menus (Slidebars) scored89%from 54 tests.

About plugin

  • Plugin page: off-canvas-sidebars
  • Plugin version: 0.5.8.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2016
  • Latest release: Sep 28, 2023
  • Number of updates: 55
  • Update frequency: every 51.2 days
  • Top authors: keraweb (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

1,000+ active /23,544 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.14ms] Passed 4 tests

Server-side resources used by Off-Canvas Sidebars & Menus (Slidebars)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.38 ▲2.24
Dashboard /wp-admin3.49 ▲0.1450.36 ▼10.05
Posts /wp-admin/edit.php3.54 ▲0.1849.50 ▼7.42
Add New Post /wp-admin/post-new.php6.08 ▲0.1994.79 ▼15.47
Media Library /wp-admin/upload.php3.41 ▲0.1834.24 ▲0.40
Off-Canvas Sidebars /wp-admin/themes.php?page=off-canvas-sidebars-settings3.6734.54

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
off_canvas_sidebars_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_off-canvas-control

Browser metrics Passed 4 tests

Checking browser requirements for Off-Canvas Sidebars & Menus (Slidebars)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.46 ▼0.9111.25 ▲9.5843.68 ▲1.50
Dashboard /wp-admin2,202 ▲255.56 ▲0.02107.05 ▲24.3053.53 ▲9.63
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0038.33 ▼2.2235.88 ▲1.20
Add New Post /wp-admin/post-new.php1,541 ▲1318.49 ▼4.64606.42 ▲4.7467.27 ▲10.87
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.0593.85 ▼5.7140.60 ▼2.43
Off-Canvas Sidebars /wp-admin/themes.php?page=off-canvas-sidebars-settings1,4222.5160.0261.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_off-canvas-control
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

off-canvas-sidebars/off-canvas-sidebars.php 92% from 13 tests

Analyzing the main PHP file in "Off-Canvas Sidebars & Menus (Slidebars)" version 0.5.8.1
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,590 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP207562,2673,980
JavaScript155321,0812,227
CSS69198383

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.35
Average class complexity28.75
▷ Minimum class complexity8.00
▷ Maximum class complexity68.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes318.75%
▷ Concrete classes1381.25%
▷ Final classes13100.00%
Methods198
▷ Static methods4623.23%
▷ Public methods17889.90%
▷ Protected methods105.05%
▷ Private methods105.05%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin