100% woo-product-slider-block

Code Review | Product Slider Block for WooCommerce

WordPress plugin Product Slider Block for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: woo-product-slide...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.1
  • WordPress version: 5.9.2
  • First release: Jun 23, 2019
  • Latest release: May 28, 2020
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: eedee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 6,738 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Product Slider Block for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0355.73 ▲3.47
Dashboard /wp-admin3.44 ▲0.0332.80 ▼0.86
Posts /wp-admin/edit.php3.66 ▲0.0236.28 ▼4.25
Add New Post /wp-admin/post-new.php6.93 ▼0.0794.04 ▼1,194.79
Media Library /wp-admin/upload.php3.31 ▲0.0225.89 ▲1.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Product Slider Block for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲8518.72 ▲3.0331.25 ▲24.972.62 ▼0.42
Dashboard /wp-admin2,895 ▲346.17 ▼0.05114.31 ▼18.98152.96 ▲0.83
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0163.75 ▼13.20142.04 ▼126.54
Add New Post /wp-admin/post-new.php1,718 ▼3423.55 ▲2.56419.68 ▼15.56158.42 ▼3.23
Media Library /wp-admin/upload.php1,701 ▲35.51 ▲0.00146.58 ▲2.47197.28 ▲8.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
The SRP test was a success

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woo, product slider, woocommerce, woocommerce slider, woo slider...

woo-product-slider-block/eedee-woo-product-slider-block.php 92% from 13 tests

The primary PHP file in "Product Slider Block for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-slider-block.php" instead of "eedee-woo-product-slider-block.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin823 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
Sass493153478
JavaScript74952287
PHP2136655
CSS2003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin