78% woo-products-slider-pro

Code Review | Free Woocommerce Products Slider/Carousel Pro

WordPress plugin Free Woocommerce Products Slider/Carousel Pro scored78%from 54 tests.

About plugin

  • Plugin page: woo-products-slid...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 24
  • Update frequency: every 69.8 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /28,810 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.36ms] Passed 4 tests

This is a short check of server-side resources used by Free Woocommerce Products Slider/Carousel Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.12 ▼5.55
Dashboard /wp-admin3.31 ▼0.0452.22 ▼18.00
Posts /wp-admin/edit.php3.36 ▲0.0051.30 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.42 ▼24.52
Media Library /wp-admin/upload.php3.23 ▲0.0038.26 ▼1.36

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

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

Browser metrics Passed 4 tests

Free Woocommerce Products Slider/Carousel Pro: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.75 ▲0.381.84 ▲0.1945.43 ▲5.40
Dashboard /wp-admin2,224 ▲244.87 ▼0.02107.59 ▲6.2644.07 ▼0.18
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0635.18 ▼4.7735.49 ▼4.13
Add New Post /wp-admin/post-new.php1,556 ▲3023.16 ▲5.62667.83 ▲29.2054.09 ▼4.65
Media Library /wp-admin/upload.php1,394 ▼64.27 ▲0.0695.92 ▼6.0144.52 ▼3.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-products-slider-pro/admin/templates/footer.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-products-slider-pro/admin/templates/recently-viewed.php on line 3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/woo-products-slider-pro/admin/templates/recently-viewed.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-products-slider-pro/admin/templates/shortcode-column.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-products-slider-pro/admin/templates/shortcode-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-products-slider-pro/includes/shortcodes.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-products-slider-pro/admin/templates/recently-viewed.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-products-slider-pro/includes/helper-functions.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-products-slider-pro/admin/templates/header.php:2
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/woo-products-slider-pro/admin/templates/shortcode-column.php on line 3

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 36 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-products-slider-pro/woo-products-slider-pro.php Passed 13 tests

The principal PHP file in "Free Woocommerce Products Slider/Carousel Pro" v. 1.1.1 is loaded by WordPress automatically on each request
139 characters long description:
Display Woocommerce Products in a Carousel. Show Top Rated, Best Selling, ON Sale, Featured, Recently Viewed Products With Category Filter.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,104 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP8215151781
JavaScript63616203
CSS52211120

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions24
▷ Named functions2291.67%
▷ Anonymous functions28.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/arrow-right.png2.91KB0.18KB▼ 93.93%
assets/css/arrow-left.png2.94KB0.17KB▼ 94.18%