89% woocommerce-products-slider

Code Review | Product Slider for WooCommerce by PickPlugins

WordPress plugin Product Slider for WooCommerce by PickPlugins scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 1.13.49
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Oct 18, 2023
  • Number of updates: 248
  • Update frequency: every 13.5 days
  • Top authors: pickplugins (70.16%)paratheme (22.98%)wpkids (7.66%)

Code review

54 tests

User reviews

84 reviews

Install metrics

10,000+ active /712,259 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲2.24MB] [CPU: ▲6.27ms] 75% from 4 tests

Analyzing server-side resources used by Product Slider for WooCommerce by PickPlugins
Please take the time to fix the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,598.38ms on /wp-admin/edit.php?post_type=wcps&page=import_layouts)
PageMemory (MB)CPU Time (ms)
Home /5.68 ▲2.2252.49 ▲7.94
Dashboard /wp-admin5.55 ▲2.2561.28 ▲12.80
Posts /wp-admin/edit.php5.61 ▲2.2564.96 ▲17.39
Add New Post /wp-admin/post-new.php8.14 ▲2.2593.47 ▼9.75
Media Library /wp-admin/upload.php5.46 ▲2.2348.22 ▲14.08
All WCPS layouts /wp-admin/edit.php?post_type=wcps_layout5.5349.40
Settings /wp-admin/edit.php?post_type=wcps&page=settings5.5047.23
All WCPS /wp-admin/edit.php?post_type=wcps5.5350.29
Add New /wp-admin/post-new.php?post_type=wcps5.6064.79
Import layouts /wp-admin/edit.php?post_type=wcps&page=import_layouts5.571,598.38

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Product Slider for WooCommerce by PickPlugins: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲21314.47 ▲0.101.70 ▲0.0442.30 ▼6.79
Dashboard /wp-admin2,374 ▲1946.10 ▲0.43103.05 ▲16.4537.63 ▼6.43
Posts /wp-admin/edit.php2,305 ▲2053.30 ▲1.2845.45 ▲10.1430.82 ▼6.01
Add New Post /wp-admin/post-new.php1,570 ▲3918.11 ▼4.81613.90 ▼79.1044.51 ▼6.28
Media Library /wp-admin/upload.php1,442 ▲484.16 ▼0.0580.85 ▼12.7744.82 ▲0.25
All WCPS layouts /wp-admin/edit.php?post_type=wcps_layout1,2693.3745.4726.08
Settings /wp-admin/edit.php?post_type=wcps&page=settings2,3536.02111.4641.01
All WCPS /wp-admin/edit.php?post_type=wcps1,2773.2941.4630.37
Add New /wp-admin/post-new.php?post_type=wcps6,6886.93186.4944.46
Import layouts /wp-admin/edit.php?post_type=wcps&page=import_layouts1,3483.1738.9559.78

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No plugin tags provided

woocommerce-products-slider/woocommerce-products-slider.php 92% from 13 tests

The main file in "Product Slider for WooCommerce by PickPlugins" v. 1.13.49 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin72,001 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP416,29934414,528
JavaScript73,0192,11714,302
JSON20012,289
XML2163211,447
SVG4009,251
CSS82,270916,809
PO File31,5544,2693,375

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity94.12
▷ Minimum class complexity1.00
▷ Maximum class complexity657.00
Average method complexity13.63
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions235
▷ Named functions235100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/front/images/ribbons/dis-10.png2.22KB1.08KB▼ 51.30%
assets/front/images/ribbons/dis-100.png2.31KB1.12KB▼ 51.71%
assets/front/images/ribbons/free.png2.05KB1.55KB▼ 24.50%
assets/front/images/ribbons/dis-90.png2.31KB1.11KB▼ 52.05%
assets/admin/css/tile.png2.75KB0.10KB▼ 96.31%