89% woo-product-slider-and-carousel-with-category

Code Review | Product Slider and Carousel with Category for WooCommerce

WordPress plugin Product Slider and Carousel with Category for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-product-slide...
  • Plugin version: 2.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Sep 20, 2023
  • Number of updates: 84
  • Update frequency: every 31.4 days
  • Top authors: anoopranawat (52.38%)wponlinesupport (48.81%)

Code review

54 tests

User reviews

69 reviews

Install metrics

10,000+ active /324,540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.70ms] Passed 4 tests

Server-side resources used by Product Slider and Carousel with Category for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.14 ▲1.64
Dashboard /wp-admin3.31 ▲0.0047.29 ▲2.03
Posts /wp-admin/edit.php3.36 ▲0.0047.87 ▲4.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.39 ▼21.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲2.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
wcpscwc_sf_optin
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Product Slider and Carousel with Category for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.031.71 ▲0.1446.79 ▲8.51
Dashboard /wp-admin2,192 ▲115.56 ▼0.1684.17 ▼15.4638.18 ▼5.81
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0235.04 ▼3.5132.73 ▼0.81
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▼0.20664.11 ▲6.3351.21 ▼7.64
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0395.10 ▲1.1842.29 ▲2.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • wcpscwc_sf_optin

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
The official readme.txt is a good inspiration

woo-product-slider-and-carousel-with-category/woo-product-slider-carousel.php 85% from 13 tests

Analyzing the main PHP file in "Product Slider and Carousel with Category for WooCommerce" version 2.8.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 196 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-product-slider-and-carousel-with-category.php" instead of "woo-product-slider-carousel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,074 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP173134911,610
JavaScript610360334
CSS5115128
JSON2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity6.80
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.57MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow-left.png2.94KB0.17KB▼ 94.18%
wpos-plugins/assets/images/essentialplugin-logo.png7.62KB3.82KB▼ 49.88%
assets/images/popup-icon/woo-centermode.png7.57KB3.86KB▼ 49.03%
assets/images/popup-icon/14-days-money-back-guarantee.png30.03KB8.44KB▼ 71.91%
wpos-plugins/assets/images/essential-plugin-16.png0.46KB0.66KB0.00%