84% variation-shop-product-sliders

Code Review | Variation Shop Product Sliders

WordPress plugin Variation Shop Product Sliders scored84%from 54 tests.

About plugin

  • Plugin page: variation-shop-pr...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Jul 14, 2023
  • Number of updates: 18
  • Update frequency: every 110.2 days
  • Top authors: run-man (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,090 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.00MB] [CPU: ▼12.76ms] Passed 4 tests

An overview of server-side resources used by Variation Shop Product Sliders
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.02 ▲4.21
Dashboard /wp-admin3.32 ▼0.0347.50 ▼17.26
Posts /wp-admin/edit.php3.37 ▲0.0145.57 ▼4.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.26 ▼26.18
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▼2.62

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Variation Shop Product Sliders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.64 ▼0.974.97 ▲2.9343.90 ▲1.85
Dashboard /wp-admin2,221 ▲184.87 ▼1.00105.06 ▼1.3141.69 ▼9.44
Posts /wp-admin/edit.php2,082 ▲32.02 ▼0.0434.05 ▼1.4934.92 ▼0.28
Add New Post /wp-admin/post-new.php1,545 ▲1923.31 ▲5.81671.12 ▼25.5673.30 ▲11.53
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.01103.41 ▼17.7344.02 ▼4.25

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/variation-shop-product-sliders/variation-shop-product-sliders.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Preview the variation shop product slider) image required
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === variation-shop-product-sliders === )
The official readme.txt might help

variation-shop-product-sliders/variation-shop-product-sliders.php Passed 13 tests

This is the main PHP file of "Variation Shop Product Sliders" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
125 characters long description:
With the "variation shop product sliders" plugin you could display your products variation as mini sliders on your shop page.

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
There were no executable files found in this plugin106 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1113356
JavaScript15228
CSS16522

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin