79% responsive-woocommerce-product-scroll-slider

Code Review | Responsive Woocommerce Product Scroll Slider

WordPress plugin Responsive Woocommerce Product Scroll Slider scored79%from 54 tests.

About plugin

  • Plugin page: responsive-woocom...
  • Plugin version: V4.0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 29, 2014
  • Latest release: Oct 15, 2018
  • Number of updates: 28
  • Update frequency: every 58.2 days
  • Top authors: rajuranjan (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /15,505 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.25MB] [CPU: ▼42.60ms] Passed 4 tests

Analyzing server-side resources used by Responsive Woocommerce Product Scroll Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7314.62 ▼23.49
Dashboard /wp-admin2.77 ▼0.5714.80 ▼41.68
Posts /wp-admin/edit.php2.77 ▼0.5819.09 ▼28.55
Add New Post /wp-admin/post-new.php2.77 ▼3.1116.25 ▼76.66
Media Library /wp-admin/upload.php2.77 ▼0.4615.26 ▼16.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
wooproductscroller_title
wooproductscroller_orderBy
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
wooproductscroller_order
widget_theysaidso_widget
db_upgraded
wooproductscroller_prodcat
...

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Woocommerce Product Scroll Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲6113.27 ▼1.163.50 ▲1.6042.86 ▲0.16
Dashboard /wp-admin2,222 ▲315.79 ▼0.0995.47 ▼3.8635.16 ▼5.91
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0641.51 ▲6.2234.32 ▼2.61
Add New Post /wp-admin/post-new.php1,555 ▲2218.32 ▼5.02597.71 ▼87.7564.28 ▼18.27
Media Library /wp-admin/upload.php1,404 ▲164.20 ▼0.0593.38 ▼2.3241.89 ▼3.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: woocommerce scroll slider. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
  • This plugin does not fully uninstall, leaving 11 options in the database
    • wooproductscroller_title
    • wooproductscroller_orderBy
    • widget_theysaidso_widget
    • db_upgraded
    • wooproductscroller_prodcat
    • widget_recent-posts
    • wooproductscroller_no_of_products
    • can_compress_scripts
    • wooproductscroller_order
    • theysaidso_admin_options
    • ...

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Responsive Woocommerce Product Scroll Slider), #2 (Responsive Woocommerce Product Scroll Slider admin settings)
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
Please take inspiration from this readme.txt

responsive-woocommerce-product-scroll-slider/woocommerce-product-scroller.php 77% from 13 tests

The entry point to "Responsive Woocommerce Product Scroll Slider" version V4.0... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-woocommerce-product-scroll-slider.php" instead of "woocommerce-product-scroller.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "V4.0...")
  • Description: The description should be shorter than 140 characters (currently 188 characters long)

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
Good job! No executable or dangerous file extensions detected1,611 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1207171,288
PHP22125205
CSS21418118

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.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin