Variation Swatches for WooCommerce change beautiful colors, images and buttons variation swatches for WooCommerce product attributes.
Prioritized issue groups from the latest Plugin Check scan
Security
119
6 issue groups
Maintainability
54
11 issue groups
I18n
18
7 issue groups
Repo Compliance
1
1 issue group
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$class'.
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "add_to_cart_icon".
Sample message
Processing form data without nonce verification.
Sample message
Detected usage of a non-sanitized input variable: $_GET['rtvs_rated']
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
$_GET['rtvs_rated'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Processing form data without nonce verification.
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.
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 rtrs-review-button-action 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 \n </div>\n </div> \n </div>'
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$options".
Sample message
Missing $domain parameter in function call to __().
Sample message
error_log() found. Debug code should not normally be used in production.
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' ) ) )
Sample message
Linking directly to 5 stars reviews is not allowed.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
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.
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WooProductVariationSwatches".
Sample message
print_r() found. Debug code should not normally be used in production.
Sample message
Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Check that the array index exists before using it.
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.
Sample message
Mismatched text domain. Expected 'woo-product-variation-swatches' but got 'shopbuilder'.
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s, %3$s", but got "%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 rtrs-review-button-action 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 \n </div>\n </div> \n </div>'.
Sample message
The "/vendor" directory using composer exists, but "composer.json" file is missing.
Sample message
Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.
Potential connections found in static code analysis.
Outbound calls
39
External assets
3
Incoming endpoints
7
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
wp_ajax
2 score snapshots
v2.4.0
37
Latest
v2.3.23
37
Score
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 37 | 194 | 92 | 102 | v2.4.0 | 2.0.0 |
| 37 | 195 | 92 | 103 | v2.3.23 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.