89% woocommerce-products-carousel-all-in-one

Code Review | WooCommerce Products Carousel all in one

WordPress plugin WooCommerce Products Carousel all in one scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-produ...
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 6.3.1
  • First release: May 5, 2015
  • Latest release: Apr 26, 2016
  • Number of updates: 40
  • Update frequency: every 9.1 days
  • Top authors: teastudio.pl (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

800+ active /31,649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by WooCommerce Products Carousel all in one
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.48 ▼6.31
Dashboard /wp-admin3.31 ▲0.0150.11 ▼3.53
Posts /wp-admin/edit.php3.36 ▲0.0149.50 ▲1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.01101.45 ▲9.75
Media Library /wp-admin/upload.php3.23 ▲0.0038.13 ▲1.40

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Products Carousel all in one
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.25 ▼0.101.65 ▼0.0545.03 ▼1.76
Dashboard /wp-admin2,204 ▲245.62 ▼0.0492.59 ▼5.9343.95 ▲0.75
Posts /wp-admin/edit.php2,106 ▲61.98 ▲0.0040.06 ▲1.3737.21 ▲0.38
Add New Post /wp-admin/post-new.php1,541 ▲418.07 ▼0.34599.50 ▼21.2361.10 ▼3.47
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0198.08 ▼8.4244.95 ▼2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Widget configuration), #2 (Shortcode generator), #3 (WYSIWYG button), #4 (Settings page), #5 (Example of usage)
The official readme.txt is a good inspiration

woocommerce-products-carousel-all-in-one/woocommerce-products-carousel-all-in-one.php 92% from 13 tests

The entry point to "WooCommerce Products Carousel all in one" version 1.2.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)

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
There were no executable files found in this plugin5,980 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74939281,985
PHP72012281,738
PO File56856701,592
CSS681105665

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity31.00
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1023.81%
▷ Public methods3071.43%
▷ Protected methods00.00%
▷ Private methods1228.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.52MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png279.04KB76.81KB▼ 72.47%
screenshot-1.png99.84KB38.35KB▼ 61.59%
images/placeholder.png3.61KB3.64KB0.00%
images/teastudio-logo.png4.23KB2.93KB▼ 30.76%
images/sliding-arrows.png2.83KB1.49KB▼ 47.61%