Smart Variation Swatches and Attribute Filters for WooCommerce

Awesome Color, Image, and Buttons Variation Swatches For WooCommerce Product Attributes. Variation Price Update And product filter by Swatches .

v1.4.0aThemeArtUpdated Added 3k+ installs64% rating
39
Score
39
Errors
50
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability79

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

89 findings

Security

50

8 issue groups

Maintainability

36

8 issue groups

Repo Compliance

2

2 issue groups

I18n

1

1 issue group

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$dropdown_args'.28
Category
Security
Occurrences
28
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$dropdown_args'.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "ATA_WCVS".10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "ATA_WCVS".

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "ATA_WC_Variation_Swatches".9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "ATA_WC_Variation_Swatches".

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.9
Category
Security
Occurrences
9
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wsa_form_bottom_' . $form['id']".6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wsa_form_bottom_' . $form['id']".

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['_swatch_type_options']4
Category
Security
Occurrences
4
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['_swatch_type_options']

WARNINGSecurityRequest data is not unslashed$_REQUEST['slug_terms'] not unslashed before sanitization. Use wp_unslash() or similar2
Category
Security
Occurrences
2
Severity
warning

Sample message

$_REQUEST['slug_terms'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityDeprecated parameter: get_terms parameter 2The parameter "apply_filters( 'woocommerce_product_attribute_terms', array( 'orderby' => 'name', 'hide_empty' => false ) )" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The parameter "apply_filters( 'woocommerce_product_attribute_terms', array( 'orderby' => 'name', 'hide_empty' => false ) )" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

Show 9 more
ERRORMaintainabilityForbidden PHP function found1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The use of function create_function() is forbidden

ERRORSecurityDatabase parameter is not escaped1
Category
Security
Occurrences
1
Severity
error

Sample message

Unescaped parameter $attr used in $wpdb->get_row()\n$attr assigned unsafely at line 147.

WARNINGMaintainabilityDirect Query1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

WARNINGSecurityInterpolated SQL is not prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $attr at "woocommerce_attribute_taxonomies WHERE attribute_name = '$attr'"

WARNINGSecurityInput is not validated1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_REQUEST['taxonomy']. Check that the array index exists before using it.

ERRORI18nText Domain Mismatch1
Category
I18n
Occurrences
1
Severity
error

Sample message

Mismatched text domain. Expected 'variation-swatches-style' but got 'woocommerce'.

ERRORRepo Compliancelicense mismatch1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has a different license declared in the readme file and plugin header. Please update your readme with a valid GPL license identifier.

ERRORRepo Compliancenonexistent tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 7.6. The "Tested up to" value in your plugin is not valid. This version of WordPress does not exist (yet).

External Connections

Not analyzed yet.

Score History

First score snapshot

v1.4.0

39

Latest

Findings
89
Errors
39
Warnings
50
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

29 nodes

Related Plugins