84% woo-product-carousel-and-zoom

Code Review | Woo Product Carousel and Zoom

WordPress plugin Woo Product Carousel and Zoom scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-carou...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Mar 31, 2017
  • Number of updates: 57
  • Update frequency: every 0.2 days
  • Top authors: musinho (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /8,376 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Woo Product Carousel and Zoom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0324.27 ▼16.07
Dashboard /wp-admin3.35 ▲0.0149.92 ▼15.99
Posts /wp-admin/edit.php3.40 ▲0.0552.04 ▼1.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.68 ▼30.83
Media Library /wp-admin/upload.php3.27 ▲0.0532.19 ▼6.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
woocz-display-activation-message
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Woo Product Carousel and Zoom: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.57 ▼0.859.67 ▲8.0237.57 ▼2.02
Dashboard /wp-admin2,211 ▲345.62 ▼0.0393.77 ▼0.8142.55 ▲0.29
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0037.20 ▲2.6935.57 ▼2.20
Add New Post /wp-admin/post-new.php1,548 ▲2018.37 ▼4.72616.41 ▼60.6572.98 ▲20.85
Media Library /wp-admin/upload.php1,416 ▲164.18 ▲0.0198.57 ▼13.2845.49 ▼2.18

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Woo_Product_Carousel_Zoom' not found in wp-content/plugins/woo-product-carousel-and-zoom/admin/includes/settings.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'Woo_Product_Carousel_Zoom' not found in wp-content/plugins/woo-product-carousel-and-zoom/admin/views/admin.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (Carousel with navigation and pagination activated. Featured image changes by clicking thumbnails.) image required
You can take inspiration from this readme.txt

woo-product-carousel-and-zoom/woo-product-carousel-and-zoom.php Passed 13 tests

This is the main PHP file of "Woo Product Carousel and Zoom" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Add an easy product carousel and zoom to product page on WooCommerce

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 plugin1,475 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS29036631
PHP9297415575
PO File29294255
JavaScript431114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.33
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods923.08%
▷ Public methods3076.92%
▷ Protected methods00.00%
▷ Private methods923.08%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin