99% 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 scored 99% from 54 tests.

About plugin

  • Plugin page: woo-product-slide...
  • Plugin version: 2.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.8.1
  • First release: Jun 27, 2016
  • Latest release: Feb 11, 2022
  • Number of updates: 77
  • Update frequency: every 26.8 days
  • Top authors: anoopranawat (57.14%)wponlinesupport (44.16%)

Code review

54 tests

User reviews

58 reviews

Install metrics

10,000+ active / 252,960 total downloads

Benchmarks

Plugin footprint Passed 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: ▼178.96ms] 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 /2.84 ▲0.1236.42 ▲21.44
Dashboard /wp-admin3.06 ▼0.0040.09 ▼6.19
Posts /wp-admin/edit.php3.11 ▲0.0037.82 ▲0.18
Add New Post /wp-admin/post-new.php5.43 ▼0.0279.25 ▼711.55
Media Library /wp-admin/upload.php3.01 ▲0.0026.37 ▲1.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, no new options

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 /3,671 ▲7015.70 ▼0.035.07 ▼0.8179.60 ▲1.26
Dashboard /wp-admin2,933 ▲376.11 ▼0.06121.26 ▼11.59166.91 ▼12.03
Posts /wp-admin/edit.php2,743 ▲33.23 ▼0.0065.20 ▲1.51137.33 ▼2.96
Add New Post /wp-admin/post-new.php3,691 ▲1,61715.16 ▼0.61454.40 ▲52.95166.50 ▲3.22
Media Library /wp-admin/upload.php1,749 ▼35.54 ▲0.02156.98 ▲12.58205.64 ▲20.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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.6.5
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,316 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP173085201,945
JavaScript69341311
CSS53358
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.39
Average class complexity6.60
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods23
▷ Static methods14.35%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wordpress-icon-logo.png9.40KB4.89KB▼ 48.02%
assets/css/arrow-right.png2.91KB0.18KB▼ 93.93%
assets/images/elementor-icon.png5.25KB2.42KB▼ 53.85%
wpos-plugins/assets/images/utility-icon.png0.72KB0.82KB0.00%
assets/images/vc-icon.png5.24KB1.92KB▼ 63.42%