84% woo-advanced-variation

Code Review | Variation Swatches for WooCommerce - Lite

WordPress plugin Variation Swatches for WooCommerce - Lite scored84%from 54 tests.

About plugin

  • Plugin page: woo-advanced-vari...
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Apr 15, 2020
  • Number of updates: 41
  • Update frequency: every 22.4 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Variation Swatches for WooCommerce - Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.82 ▲2.02
Dashboard /wp-admin3.31 ▲0.0043.74 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0044.11 ▼2.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.25 ▼18.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.49 ▲0.42

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Variation Swatches for WooCommerce - Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.60 ▼0.794.54 ▲2.8242.12 ▼1.29
Dashboard /wp-admin2,203 ▲185.88 ▲0.79102.30 ▼11.2639.00 ▼6.47
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0639.60 ▼2.2835.15 ▼0.38
Add New Post /wp-admin/post-new.php1,533 ▼923.38 ▲5.13656.42 ▲52.0750.42 ▼5.10
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0396.77 ▼11.4541.54 ▼4.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-advanced-variation/includes/functions-ajax.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected

woo-advanced-variation/woo-advanced-variation.php Passed 13 tests

The primary PHP file in "Variation Swatches for WooCommerce - Lite" version 3.0.3 is used by WordPress to initiate all plugin functionality
100 characters long description:
Advanced multifunctional product variation swatches for WooCommerce with Colors, Images and Buttons.

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 plugin2,696 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP116295131,941
CSS31409648
JavaScript15021107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity71.75
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods6182.43%
▷ Protected methods00.00%
▷ Private methods1317.57%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin