84% woo-shop-slider-lite

Code Review | Woo Shop Slider Lite

WordPress plugin Woo Shop Slider Lite scored84%from 54 tests.

About plugin

  • Plugin page: woo-shop-slider-lite
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Aug 14, 2018
  • Number of updates: 31
  • Update frequency: every 29.0 days
  • Top authors: ShindiriStudio (67.74%)siemens82 (35.48%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /15,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.90ms] Passed 4 tests

Server-side resources used by Woo Shop Slider Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.88 ▼2.39
Dashboard /wp-admin3.49 ▲0.1850.10 ▼0.87
Posts /wp-admin/edit.php3.60 ▲0.2449.42 ▼1.22
Add New Post /wp-admin/post-new.php6.07 ▲0.1890.58 ▲0.87
Media Library /wp-admin/upload.php3.41 ▲0.1836.36 ▲0.90

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

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

Browser metrics Passed 4 tests

Woo Shop Slider Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.34 ▼0.011.64 ▼0.0942.08 ▼3.42
Dashboard /wp-admin2,222 ▲485.60 ▲0.0286.20 ▼17.2639.68 ▼2.97
Posts /wp-admin/edit.php2,125 ▲251.98 ▲0.0034.78 ▼1.9734.29 ▼3.60
Add New Post /wp-admin/post-new.php1,557 ▲2018.12 ▼0.12645.45 ▲20.7569.73 ▲1.95
Media Library /wp-admin/upload.php1,421 ▲184.22 ▲0.0299.84 ▼5.9845.55 ▼2.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Shindiri_Woo_Slider_Abstract_Product' not found in wp-content/plugins/woo-shop-slider-lite/includes/shindiri-woo-slider-product/shindiri-woo-slider-wc-product.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Shindiri_Woo_Slider_Shortcode_Version_Basic' not found in wp-content/plugins/woo-shop-slider-lite/public/shortcodes/versions/seven/class-shindiri-woo-slider-version-seven.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Shindiri_Woo_Slider_Abstract_Product' not found in wp-content/plugins/woo-shop-slider-lite/includes/shindiri-woo-slider-product/shindiri-woo-slider-wc-product-deprecated.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: woocommerce slider, category slider, product slider, woo slider, woo shop...

woo-shop-slider-lite/shindiri-woo-slider.php 92% from 13 tests

Analyzing the main PHP file in "Woo Shop Slider Lite" version 1.2.3
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-shop-slider-lite.php" instead of "shindiri-woo-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,907 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
CSS101031513,642
PHP321,0052,7522,902
LESS6341671,718
SVG200773
JavaScript18114188505
PO File1174256367

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.90
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes00.00%
Methods199
▷ Static methods3015.08%
▷ Public methods17889.45%
▷ Protected methods42.01%
▷ Private methods178.54%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/vc-icon.png1.08KB0.75KB▼ 30.51%
admin/images/arrowDown.png0.69KB0.68KB0.28%
admin/images/slider_info_img.png151.49KB48.96KB▼ 67.68%