90% woo-product-slider-block

Code Review | Product Slider Block for WooCommerce

WordPress plugin Product Slider Block for WooCommerce scored90%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: 6.3.1
  • 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 /13,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.88ms] Passed 4 tests

An overview 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.49 ▲0.0338.21 ▼0.53
Dashboard /wp-admin3.32 ▲0.0246.41 ▼3.86
Posts /wp-admin/edit.php3.37 ▲0.0247.26 ▼7.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.66 ▼15.53
Media Library /wp-admin/upload.php3.24 ▲0.0234.05 ▼0.65

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

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

Browser metrics Passed 4 tests

This is an overview of 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 /2,880 ▲11914.11 ▼0.5130.16 ▲28.3241.58 ▲0.39
Dashboard /wp-admin2,192 ▲245.51 ▼0.0888.57 ▼5.7139.60 ▼4.69
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0137.58 ▼0.3134.93 ▼3.56
Add New Post /wp-admin/post-new.php6,200 ▲4,67226.53 ▲3.45921.87 ▲218.2336.83 ▼19.87
Media Library /wp-admin/upload.php1,394 ▼64.24 ▼0.13100.56 ▼9.0145.87 ▼0.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: woocommerce, woo slider, woo, woocommerce slider, product slider...

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

The main PHP script in "Product Slider Block for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • 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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! 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

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected