WPC Variation Swatches for WooCommerce Security & Risk Analysis

wordpress.org/plugins/wpc-variation-swatches

WPC Variation Swatches is a beautiful color, image, radio and buttons variation swatches for WooCommerce product attributes.

7K active installs v4.3.4 PHP + WP 4.0+ Updated Dec 10, 2025
swatchesvariationvariationswoocommercewpc
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WPC Variation Swatches for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

WPC Variation Swatches for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3mo ago
Risk Assessment

The wpc-variation-swatches plugin v4.3.5 exhibits a generally strong security posture based on the static analysis. A notable strength is the complete absence of unpatched CVEs and historical vulnerability data, suggesting a commitment to security maintenance. The code also demonstrates good practices by utilizing prepared statements for all SQL queries and a high percentage of properly escaped output, minimizing common risks like SQL injection and XSS. Furthermore, all identified entry points (AJAX handlers, shortcodes) appear to have proper authentication and capability checks, and there are no obvious signs of file operations or bundled outdated libraries.

However, there are a few areas that warrant attention. The presence of the `unserialize` function is a potential risk. While the provided analysis doesn't explicitly show unsanitized data being passed to it in a critical or high-severity taint flow, `unserialize` can be a vector for object injection vulnerabilities if not handled with extreme care and proper input validation. Additionally, the two identified flows with unsanitized paths, even without a critical or high severity rating, indicate a potential for unexpected behavior or information leakage that should be investigated. The plugin also makes external HTTP requests, which, while not inherently a vulnerability, represent an external dependency that could be a target or a conduit for malicious activity if not implemented securely.

In conclusion, wpc-variation-swatches v4.3.5 appears to be a relatively secure plugin, with a solid foundation of good coding practices and a clean vulnerability history. The main areas for improvement involve scrutinizing the usage of `unserialize` and ensuring the two identified unsanitized paths are indeed benign and properly handled. The low number of identified concerns, coupled with the absence of known vulnerabilities, positions this plugin favorably, but ongoing vigilance regarding the identified code signals is recommended.

Key Concerns

  • Dangerous function unserialize used
  • Flows with unsanitized paths found
  • External HTTP requests made
Vulnerabilities
None known

WPC Variation Swatches for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

WPC Variation Swatches for WooCommerce Code Analysis

Dangerous Functions
3
Raw SQL Queries
0
0 prepared
Unescaped Output
37
348 escaped
Nonce Checks
8
Capability Checks
2
File Operations
0
External Requests
3
Bundled Libraries
0

Dangerous Functions Found

unserialize$plugins = unserialize( $response['body'] );includes\dashboard\wpc-dashboard.php:101
unserialize$plugins = unserialize( $response['body'] );includes\dashboard\wpc-dashboard.php:179
unserialize$plugins = unserialize( $response['body'] );includes\kit\wpc-kit.php:98

Output Escaping

90% escaped385 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

7 flows2 with unsanitized paths
add_attribute_fields (wpc-variation-swatches.php:947)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WPC Variation Swatches for WooCommerce Attack Surface

Entry Points6
Unprotected0

AJAX Handlers 5

authwp_ajax_wpc_get_pluginsincludes\dashboard\wpc-dashboard.php:9
authwp_ajax_wpc_get_suggestionincludes\dashboard\wpc-dashboard.php:10
authwp_ajax_wpc_exportincludes\dashboard\wpc-dashboard.php:11
authwp_ajax_wpc_importincludes\dashboard\wpc-dashboard.php:12
authwp_ajax_wpc_get_essential_kitincludes\kit\wpc-kit.php:22

Shortcodes 1

[wpcvs_archive] wpc-variation-swatches.php:182
WordPress Hooks 33
actionadmin_enqueue_scriptsincludes\dashboard\wpc-dashboard.php:7
actionadmin_menuincludes\dashboard\wpc-dashboard.php:8
actionbefore_woocommerce_initincludes\hpos.php:7
actionadmin_enqueue_scriptsincludes\kit\wpc-kit.php:20
actionadmin_menuincludes\kit\wpc-kit.php:21
actionadmin_initincludes\log\wpc-log.php:6
actionplugins_loadedwpc-variation-swatches.php:38
actionadmin_noticeswpc-variation-swatches.php:42
actioninitwpc-variation-swatches.php:65
actionwp_enqueue_scriptswpc-variation-swatches.php:66
actionadmin_enqueue_scriptswpc-variation-swatches.php:67
filterproduct_attributes_type_selectorwpc-variation-swatches.php:70
actionwoocommerce_after_add_attribute_fieldswpc-variation-swatches.php:73
actionwoocommerce_after_edit_attribute_fieldswpc-variation-swatches.php:74
actionwoocommerce_attribute_addedwpc-variation-swatches.php:75
actionwoocommerce_attribute_updatedwpc-variation-swatches.php:76
filterwoocommerce_post_classwpc-variation-swatches.php:101
filterwoocommerce_dropdown_variation_attribute_options_htmlwpc-variation-swatches.php:102
filterwoocommerce_product_get_default_attributeswpc-variation-swatches.php:106
actionwoocommerce_before_add_to_cart_formwpc-variation-swatches.php:113
actionadmin_initwpc-variation-swatches.php:117
filterpre_update_optionwpc-variation-swatches.php:118
actionadmin_menuwpc-variation-swatches.php:119
filterplugin_action_linkswpc-variation-swatches.php:122
filterplugin_row_metawpc-variation-swatches.php:123
actionwoocommerce_after_shop_loop_itemwpc-variation-swatches.php:128
actionwoocommerce_after_shop_loop_itemwpc-variation-swatches.php:130
filterwc_get_templatewpc-variation-swatches.php:136
actionwc_ajax_wpcvs_add_to_cartwpc-variation-swatches.php:140
actionwoocommerce_product_after_variable_attributeswpc-variation-swatches.php:143
actionwoocommerce_save_product_variationwpc-variation-swatches.php:144
filterwoocommerce_available_variationwpc-variation-swatches.php:145
filterwpcsm_locationswpc-variation-swatches.php:148
Maintenance & Trust

WPC Variation Swatches for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 10, 2025
PHP min version
Downloads105K

Community Trust

Rating86/100
Number of ratings10
Active installs7K
Developer Profile

WPC Variation Swatches for WooCommerce Developer Profile

WPClever

71 plugins · 441K total installs

87
trust score
Avg Security Score
99/100
Avg Patch Time
68 days
View full developer profile
Detection Fingerprints

How We Detect WPC Variation Swatches for WooCommerce

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/wpc-variation-swatches/assets/css/frontend.css/wp-content/plugins/wpc-variation-swatches/assets/js/frontend.js/wp-content/plugins/wpc-variation-swatches/assets/css/admin.css/wp-content/plugins/wpc-variation-swatches/assets/js/admin.js
Script Paths
/wp-content/plugins/wpc-variation-swatches/assets/js/frontend.js/wp-content/plugins/wpc-variation-swatches/assets/js/admin.js
Version Parameters
wpc-variation-swatches/assets/css/frontend.css?ver=wpc-variation-swatches/assets/js/frontend.js?ver=wpc-variation-swatches/assets/css/admin.css?ver=wpc-variation-swatches/assets/js/admin.js?ver=

HTML / DOM Fingerprints

CSS Classes
wpcvs-swatcheswpcvs-swatch-wrapwpcvs-swatch-attributewpcvs-tooltipwpcvs-variation-gallerywpcvs-product-image-wrapperwpcvs-single-swatch
Data Attributes
data-attribute_namedata-attribute_valuedata-wpcvs-optionsdata-tooltip-text
JS Globals
wpcvs_frontend_paramswpcvs_paramsWPCleverWpcvs
FAQ

Frequently Asked Questions about WPC Variation Swatches for WooCommerce