Enhanced AJAX Add to Cart for WooCommerce

Add variable & other products to cart using a lightweight, smart, and flexible Add to Cart button inline with any content, on any page you desire.

v2.4.0The Rite SitesUpdated Added 700 installs100% rating
46
Score
90
Errors
78
Warnings
+0
Change

Category Scores

Security20
Repo94
Performance100
Maintainability56

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

168 findings

Maintainability

69

11 issue groups

I18n

67

7 issue groups

Security

31

4 issue groups

Repo Compliance

1

1 issue group

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

Sample message

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

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().20
Category
I18n
Occurrences
20
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: EAA2C_NAME20
Category
I18n
Occurrences
20
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: EAA2C_NAME

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $buttonText12
Category
I18n
Occurrences
12
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $buttonText

ERRORI18nText Domain MismatchMismatched text domain. Expected 'enhanced-ajax-add-to-cart-for-woocommerce' but got 'a2cp'.12
Category
I18n
Occurrences
12
Severity
error

Sample message

Mismatched text domain. Expected 'enhanced-ajax-add-to-cart-for-woocommerce' but got 'a2cp'.

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

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DOING_AJAX".7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DOING_AJAX".

Show 13 more
WARNINGSecurityRequest data is not unslashed7
Category
Security
Occurrences
7
Severity
warning

Sample message

$_POST['product'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed class6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed function5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

WARNINGSecurityInput is not sanitized4
Category
Security
Occurrences
4
Severity
warning

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Function "get_block_wrapper_attributes()" requires WordPress 5.6.0, but your plugin minimum supported version is WordPress 4.8.1.

ERRORMaintainabilityBacktick operator found2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Use of the backtick operator is forbidden

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.

WARNINGMaintainabilityDiscouraged PHP function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The use of function ini_set() is discouraged

ERRORI18nMissing Translators Comment1
Category
I18n
Occurrences
1
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.

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

Sample message

Tested up to: 6.5 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

WARNINGI18ntextdomain mismatch1
Category
I18n
Occurrences
1
Severity
warning

Sample message

The "Text Domain" header in the plugin file does not match the slug. Found "enhanced-ajax-add-to-cart-wc", expected "enhanced-ajax-add-to-cart-for-woocommerce".

ERRORMaintainabilitytrunk stable tag1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Incorrect Stable Tag. It's recommended not to use "Stable Tag: trunk". Your Stable Tag is meant to be the stable version of your plugin and it needs to be exactly the same with the Version in your main plugin file's header. Any mismatch can prevent users from downloading the correct plugin files from WordPress.org.

WARNINGMaintainabilityupgrade notice limit1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The upgrade notice for "2.0.0" exceeds the limit of 300 characters.

External Connections

Potential connections found in static code analysis.

7 domains

Outbound calls

20

External assets

0

Incoming endpoints

6

Notable Domains

redux.js.org4 · outbound
theritesites.com3 · outbound
fb.me2 · outbound
schemas.wp.org1 · outbound

Platform / Reference Domains

github.com8 · platform/reference
gnu.org1 · platform/reference
w3.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_eaa2c_add_to_cartpublic

wp_ajax

wp_ajax_nopriv_simple_add_to_cartpublic

wp_ajax

wp_ajax_nopriv_variable_add_to_cartpublic

wp_ajax

Admin AJAX endpoints3
wp_ajax_eaa2c_add_to_cartauthenticated

wp_ajax

wp_ajax_simple_add_to_cartauthenticated

wp_ajax

wp_ajax_variable_add_to_cartauthenticated

wp_ajax

Score History

First score snapshot

v2.4.0

46

Latest

Findings
168
Errors
90
Warnings
78
Check
2.0.0

Relationship Map

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

33 nodes

Related Plugins