84% woo-product-slider-by-pangolin-lite

Code Review | Woo Product Slider by Pangolin - Lite

WordPress plugin Woo Product Slider by Pangolin - Lite scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-slide...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.2
  • WordPress version: 6.3.1
  • First release: May 18, 2016
  • Latest release: May 27, 2016
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: pangolin.themes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,793 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.13ms] Passed 4 tests

Analyzing server-side resources used by Woo Product Slider by Pangolin - Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.60 ▲4.32
Dashboard /wp-admin3.34 ▲0.0371.67 ▲12.95
Posts /wp-admin/edit.php3.45 ▲0.0955.29 ▼9.65
Add New Post /wp-admin/post-new.php5.92 ▲0.03109.09 ▲3.88
Media Library /wp-admin/upload.php3.26 ▲0.0344.63 ▲0.94

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options
widget_wpspl_woo_product_category
theysaidso_admin_options
widget_recent-posts
widget_wpspl_woo_recent_products
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_wpspl_woo_featured_products

Browser metrics Passed 4 tests

A check of browser resources used by Woo Product Slider by Pangolin - Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11214.75 ▲0.3711.29 ▲9.5058.24 ▲17.11
Dashboard /wp-admin2,188 ▲115.66 ▲0.00135.87 ▲13.0548.62 ▼2.75
Posts /wp-admin/edit.php2,105 ▲22.00 ▲0.0139.03 ▼6.5437.05 ▼6.19
Add New Post /wp-admin/post-new.php1,537 ▲1118.18 ▼2.75704.33 ▼113.4471.27 ▲4.80
Media Library /wp-admin/upload.php1,399 ▲24.18 ▼0.03139.45 ▲0.3568.77 ▲13.98

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_wpspl_woo_featured_products
    • can_compress_scripts
    • db_upgraded
    • widget_wpspl_woo_product_category
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_wpspl_woo_recent_products

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-slider-recent.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-category.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-slider-by-pangolin-lite/inc/widget-woocommerce-slider-featured.php:4

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

woo-product-slider-by-pangolin-lite/woo-product-slider.php 92% from 13 tests

"Woo Product Slider by Pangolin - Lite" version 1.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-slider-by-pangolin-lite.php" instead of "woo-product-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,416 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP721545969
CSS22644791
JavaScript2230143637
SVG10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity11.00
▷ Minimum class complexity6.00
▷ Maximum class complexity14.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/category-image.png3.65KB1.15KB▼ 68.54%