XT Variation Swatches for WooCommerce

A Smart Variation Swatches for WooCommerce that transforms variation dropdowns to beautiful color, image or label swatches.

v1.9.8XplodedThemesUpdated Added 600 installs94% rating
23
Score
1,051
Errors
1,834
Warnings
+0
Change

Category Scores

Security0
Repo88
Performance96
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

2,885 findings

Maintainability

1,737

12 issue groups

Security

700

9 issue groups

I18n

422

4 issue groups

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$account_addon_ids".1,311
Category
Maintainability
Occurrences
1,311
Severity
warning

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.570
Category
Security
Occurrences
570
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.

ERRORI18nText Domain MismatchMismatched text domain. Expected 'xt-woo-variation-swatches' but got "xt-framework".385
Category
I18n
Occurrences
385
Severity
error

Sample message

Mismatched text domain. Expected 'xt-woo-variation-swatches' but got "xt-framework".

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;_fs_text&quot;.116
Category
Maintainability
Occurrences
116
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;_fs_text&quot;.

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_API__ADDRESS&quot;.95
Category
Maintainability
Occurrences
95
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_Admin_Menu_Manager&quot;.92
Category
Maintainability
Occurrences
92
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityDynamic hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$core-&gt;plugin_short_prefix(&#039;woocommerce_composite_variable_add_to_cart_template_args&#039;)&quot;.42
Category
Maintainability
Occurrences
42
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$core-&gt;plugin_short_prefix(&#039;woocommerce_composite_variable_add_to_cart_template_args&#039;)&quot;.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;27
Category
Maintainability
Occurrences
27
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.26
Category
Security
Occurrences
26
Severity
warning

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGSecurityRequest data is not unslashed24
Category
Security
Occurrences
24
Severity
warning

Sample message

$_GET[&#039;page&#039;] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed hook name22
Category
Maintainability
Occurrences
22
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;active_plugins&quot;.

ERRORI18nMissing Translators Comment21
Category
I18n
Occurrences
21
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.

WARNINGMaintainabilityNot In Footer13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

ERRORI18nUnordered Placeholders Text11
Category
I18n
Occurrences
11
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in '%s needs %s enabled'.

WARNINGSecuritywp redirect wp redirect9
Category
Security
Occurrences
9
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

WARNINGSecurityInput is not sanitized9
Category
Security
Occurrences
9
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET[&#039;page&#039;]

ERRORSecurityException output is not escaped7
Category
Security
Occurrences
7
Severity
error

Sample message

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

WARNINGMaintainabilityDirect Query6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGSecurityInput is not validated6
Category
Security
Occurrences
6
Severity
warning

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

Function "get_user_locale()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 4.6.0.

ERRORI18nMissing Arg Domain5
Category
I18n
Occurrences
5
Severity
error

Sample message

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

WARNINGMaintainabilityNo Caching4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

ERRORSecurityUnsafe printing function3
Category
Security
Occurrences
3
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

ERRORMaintainabilityDeprecated parameter: get_terms parameter 23
Category
Maintainability
Occurrences
3
Severity
error

Sample message

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

External Connections

Potential connections found in static code analysis.

39 domains

Outbound calls

295

External assets

0

Incoming endpoints

5

Notable Domains

xplodedthemes.com25 · outbound
jquery.org7 · outbound
jquerymobile.com5 · outbound
jsperf.com5 · outbound

Platform / Reference Domains

opensource.org96 · platform/reference
github.com76 · platform/reference
w3.org10 · platform/reference
codex.wordpress.org4 · platform/reference
developer.wordpress.org4 · platform/reference
wordpress.org4 · platform/reference
en-ca.wordpress.org1 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_woocommerce_public

wp_ajax

wp_ajax_nopriv_xtfw_public

wp_ajax

Admin AJAX endpoints3
wp_ajax_woocommerce_authenticated

wp_ajax

wp_ajax_xt_woovs_admin_tab_contentauthenticated

wp_ajax

wp_ajax_xtfw_authenticated

wp_ajax

Score History

First score snapshot

v1.9.8

23

Latest

Findings
2,885
Errors
1,051
Warnings
1,834
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins