84% woo-thumbnails-slider

Code Review | WooCommerce Thumbnails Slider

WordPress plugin WooCommerce Thumbnails Slider scored84%from 54 tests.

About plugin

  • Plugin page: woo-thumbnails-sl...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 24, 2018
  • Latest release: Feb 1, 2018
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: wedesignwebuild (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /6,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.18ms] Passed 4 tests

Server-side resources used by WooCommerce Thumbnails Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0950.41 ▲6.86
Dashboard /wp-admin3.39 ▲0.0557.06 ▼10.33
Posts /wp-admin/edit.php3.50 ▲0.1555.07 ▼2.38
Add New Post /wp-admin/post-new.php5.97 ▲0.0899.41 ▼17.65
Media Library /wp-admin/upload.php3.31 ▲0.0837.59 ▼6.35

Server storage [IO: ▲0.04MB] [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: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Thumbnails Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.61 ▲0.221.79 ▼0.4945.06 ▲2.89
Dashboard /wp-admin2,200 ▲235.61 ▲0.0284.62 ▼9.5840.77 ▼3.98
Posts /wp-admin/edit.php2,105 ▲82.01 ▼0.0240.18 ▼0.4837.03 ▼4.07
Add New Post /wp-admin/post-new.php1,540 ▼14018.32 ▼3.67634.09 ▲20.5168.15 ▲24.99
Media Library /wp-admin/upload.php1,408 ▲54.21 ▼0.01101.84 ▼0.8046.92 ▲1.76

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/woo-thumbnails-slider/woo-thumbnails-slider.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/woo-thumbnails-slider/includes/Settings.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

woo-thumbnails-slider/woo-thumbnails-slider.php 92% from 13 tests

The main PHP file in "WooCommerce Thumbnails Slider" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin762 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP10126258510
Sass1130123
CSS200104
JavaScript218624
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.20
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.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