78% responsive-vertical-slider

Code Review | Responsive Vertical Slider

WordPress plugin Responsive Vertical Slider scored78%from 54 tests.

About plugin

  • Plugin page: responsive-vertic...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.6
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Mar 28, 2021
  • Number of updates: 11
  • Update frequency: every 95.2 days
  • Top authors: emazharulislam (90.91%)reachmazharul (18.18%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /931 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.04MB] [CPU: ▼8.57ms] Passed 4 tests

A check of server-side resources used by Responsive Vertical Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.19 ▲1.55
Dashboard /wp-admin3.35 ▲0.0450.38 ▲1.60
Posts /wp-admin/edit.php3.40 ▲0.0443.68 ▼0.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.06 ▼34.07
Media Library /wp-admin/upload.php3.27 ▲0.0435.13 ▼0.87
Add New Slide /wp-admin/post-new.php?post_type=verticalslide3.3042.98
All Slides /wp-admin/edit.php?post_type=verticalslide3.3133.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Responsive Vertical Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲19214.03 ▼0.345.81 ▲4.2136.78 ▼3.39
Dashboard /wp-admin2,236 ▲454.85 ▼0.0599.88 ▼18.9440.32 ▼2.04
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0335.27 ▼1.8232.44 ▼2.85
Add New Post /wp-admin/post-new.php1,558 ▲3023.49 ▲0.36729.90 ▲97.8549.81 ▼11.05
Media Library /wp-admin/upload.php1,418 ▲364.19 ▼0.03118.99 ▲24.2043.83 ▲1.39
Add New Slide /wp-admin/post-new.php?post_type=verticalslide1,4742.5248.6951.85
All Slides /wp-admin/edit.php?post_type=verticalslide1,0881.9429.3728.92

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/responsive-vertical-slider/vertical-slide.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-vertical-slider/inc/verticalslide_shortcode.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: responsive, vertical, slider

responsive-vertical-slider/vertical-slide.php 85% from 13 tests

"Responsive Vertical Slider" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-vertical-slider.php" instead of "vertical-slide.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected246 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS141128
PHP6635184
Markdown13021
JavaScript13013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin