Variation Swatches for WooCommerce

Variation Swatches for WooCommerce change beautiful colors, images and buttons variation swatches for WooCommerce product attributes.

v2.3.23RadiusThemeUpdated Added 10k+ installs94% rating
37
Score
92
Errors
103
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability66

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

195 findings

Security

119

6 issue groups

Maintainability

55

12 issue groups

I18n

18

7 issue groups

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

Sample message

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

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "add_to_cart_icon".23
Category
Maintainability
Occurrences
23
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "add_to_cart_icon".

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_GET['rtvs_rated']10
Category
Security
Occurrences
10
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['rtvs_rated']

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

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

WARNINGSecurityRequest data is not unslashed$_GET['rtvs_rated'] not unslashed before sanitization. Use wp_unslash() or similar9
Category
Security
Occurrences
9
Severity
warning

Sample message

$_GET['rtvs_rated'] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

Processing form data without nonce verification.

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.6
Category
I18n
Occurrences
6
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNINGI18nNo Html Wrapped StringsTranslatable string should not be wrapped in HTML. Found: '<div class="notice rtvs-review-notice rtvs-review-notice--extended"> \n <div class="rtvs-review-notice_content">\n <h3>Enjoying Variation Swatches for WooCommerce?</h3>\n <p>Thank you for choosing Variation Swatches for WooCommerce. If you have found our plugin useful and makes you smile, please consider giving us a 5-star rating on WordPress.org. It will help us to grow.</p>\n <div class="rtvs-review-notice_actions">\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta" target="_blank"><span>⭐ Yes, You Deserve It!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>😀 Already Rated!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>🔔 Remind Me Later</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--error rtvs-review-button--outline"><span>😐 No Thanks</span></a>\n </div>\n </div> \n </div>'4
Category
I18n
Occurrences
4
Severity
warning

Sample message

Translatable string should not be wrapped in HTML. Found: '<div class="notice rtvs-review-notice rtvs-review-notice--extended"> \n <div class="rtvs-review-notice_content">\n <h3>Enjoying Variation Swatches for WooCommerce?</h3>\n <p>Thank you for choosing Variation Swatches for WooCommerce. If you have found our plugin useful and makes you smile, please consider giving us a 5-star rating on WordPress.org. It will help us to grow.</p>\n <div class="rtvs-review-notice_actions">\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta" target="_blank"><span>⭐ Yes, You Deserve It!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>😀 Already Rated!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>🔔 Remind Me Later</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--error rtvs-review-button--outline"><span>😐 No Thanks</span></a>\n </div>\n </div> \n </div>'

Show 15 more
WARNINGMaintainabilityNon-prefixed global variable3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$options".

ERRORI18nMissing Arg Domain3
Category
I18n
Occurrences
3
Severity
error

Sample message

Missing $domain parameter in function call to __().

WARNINGMaintainabilityerror log error log2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

ERRORI18nNon Singular String Literal Text2
Category
I18n
Occurrences
2
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: sprintf( 'Choose attribute image size. <a target="_blank" href="%s">Media Settings</a>', esc_url( admin_url( 'options-media.php' ) ) )

ERRORMaintainabilityfive star reviews detected2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Linking directly to 5 stars reviews is not allowed.

ERRORMaintainabilityMissing direct file access protection2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityNon-prefixed class1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;WooProductVariationSwatches&quot;.

WARNINGMaintainabilityNon-prefixed global variable1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$name&quot;.

WARNINGMaintainabilityerror log print r1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

print_r() found. Debug code should not normally be used in production.

WARNINGSecurityInput is not validated1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_SERVER[&#039;REQUEST_URI&#039;]. Check that the array index exists before using it.

ERRORMaintainabilityDeprecated parameter: get_terms parameter 21
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The parameter "apply_filters( 'woocommerce_product_attribute_terms', $args )" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

ERRORI18nText Domain Mismatch1
Category
I18n
Occurrences
1
Severity
error

Sample message

Mismatched text domain. Expected 'woo-product-variation-swatches' but got 'shopbuilder'.

ERRORI18nUnordered Placeholders Text1
Category
I18n
Occurrences
1
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s, %3$s, %4$s", but got "%s, %s, %s, %s" in '<div class="notice rtvs-review-notice rtvs-review-notice--extended"> \n <div class="rtvs-review-notice_content">\n <h3>Enjoying Variation Swatches for WooCommerce?</h3>\n <p>Thank you for choosing Variation Swatches for WooCommerce. If you have found our plugin useful and makes you smile, please consider giving us a 5-star rating on WordPress.org. It will help us to grow.</p>\n <div class="rtvs-review-notice_actions">\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta" target="_blank"><span>⭐ Yes, You Deserve It!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>😀 Already Rated!</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--outline"><span>🔔 Remind Me Later</span></a>\n <a href="%s" class="rtvs-review-button rtvs-review-button--cta rtvs-review-button--error rtvs-review-button--outline"><span>😐 No Thanks</span></a>\n </div>\n </div> \n </div>'.

WARNINGMaintainabilitymissing composer json file1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The &quot;/vendor&quot; directory using composer exists, but &quot;composer.json&quot; file is missing.

Score History

First score snapshot

v2.3.23

37

Latest

Findings
195
Errors
92
Warnings
103
Check
2.0.0

Related Plugins