90% woocommerce-multi-item-slider

Code Review | WooCommerce product Slider

WordPress plugin WooCommerce product Slider scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-multi...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Mar 2, 2015
  • Latest release: May 28, 2018
  • Number of updates: 25
  • Update frequency: every 47.4 days
  • Top authors: aumsrini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by WooCommerce product Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.78 ▼4.96
Dashboard /wp-admin3.31 ▲0.0153.16 ▲3.84
Posts /wp-admin/edit.php3.36 ▲0.0150.05 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.41 ▲1.27
Media Library /wp-admin/upload.php3.23 ▲0.0133.78 ▼0.99

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce product Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20713.68 ▼0.6813.12 ▲11.2546.62 ▲0.37
Dashboard /wp-admin2,214 ▲405.57 ▼0.0890.02 ▼2.4940.90 ▲1.84
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0739.52 ▲1.6835.14 ▼0.86
Add New Post /wp-admin/post-new.php1,548 ▲1718.26 ▼4.96604.61 ▼27.3265.90 ▲3.70
Media Library /wp-admin/upload.php1,416 ▲164.17 ▼0.0297.87 ▼3.9341.90 ▼0.60

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: photos slider, woocommerce product slider, product slider, product photos, images slider...

woocommerce-multi-item-slider/wc-item-slider.php 92% from 13 tests

"WooCommerce product Slider" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-multi-item-slider.php" instead of "wc-item-slider.php")

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
Success! There were no dangerous files found in this plugin1,174 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2312524715
CSS1679297
PHP11837162

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin