Force Add To Cart for WooCommerce Security & Risk Analysis

wordpress.org/plugins/force-add-to-cart

A WooCommerce plugin that allows you to force add a product to the shopping cart.

10 active installs v1.0 PHP 5.6+ WP 5.0+ Updated Aug 16, 2024
add-to-cartforce-add-to-cartlinked-productswoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Force Add To Cart for WooCommerce Safe to Use in 2026?

Generally Safe

Score 92/100

Force Add To Cart for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1yr ago
Risk Assessment

The 'force-add-to-cart' plugin v1.0 exhibits a generally strong security posture based on the static analysis. The absence of any known CVEs and the clean vulnerability history suggest a history of security diligence. Furthermore, the code analysis reveals no dangerous functions, no direct SQL queries (all using prepared statements), and a high percentage of properly escaped outputs. The limited attack surface and lack of file operations or external HTTP requests are also positive indicators.

However, a critical concern arises from the taint analysis, which identified one flow with an unsanitized path. While no critical or high severity taint issues were flagged, this single instance represents a potential avenue for attack if user-supplied data is not handled with sufficient sanitization. Additionally, the complete lack of nonce and capability checks across all entry points (even though the attack surface is reported as zero) is a significant omission. If the attack surface truly is zero, this is less of a direct risk, but it highlights a potential gap in defensive programming practices that could become problematic if functionality is added or changed without these checks.

In conclusion, the plugin benefits from a clean past and good coding practices in many areas. The primary areas for improvement are addressing the identified unsanitized taint flow and implementing robust authentication and authorization checks (nonces and capabilities) for any and all entry points, regardless of their current reported number. The absence of these fundamental security controls is a notable weakness.

Key Concerns

  • Unsanitized path in taint flow
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

Force Add To Cart for WooCommerce Security Vulnerabilities

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

Force Add To Cart for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
1
6 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

86% escaped7 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

1 flows1 with unsanitized paths
<class-force-add-to-cart> (classes\class-force-add-to-cart.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Force Add To Cart for WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 12
actionwp_enqueue_scriptsclasses\class-assets.php:39
actionadmin_enqueue_scriptsclasses\class-assets.php:40
actionadmin_enqueue_scriptsclasses\class-assets.php:41
actioninitclasses\class-bootstrap.php:43
actionwoocommerce_process_product_metaclasses\class-force-add-to-cart.php:38
actionwoocommerce_product_options_relatedclasses\class-force-add-to-cart.php:39
actionwoocommerce_add_to_cartclasses\class-force-add-to-cart.php:40
actionwoocommerce_blocks_loadedclasses\class-force-add-to-cart.php:41
filterwoocommerce_cart_item_remove_linkclasses\class-force-add-to-cart.php:42
actionwoocommerce_cart_item_removedclasses\class-force-add-to-cart.php:43
filterwoocommerce_get_item_dataclasses\class-force-add-to-cart.php:44
filterwoocommerce_add_successclasses\class-force-add-to-cart.php:313
Maintenance & Trust

Force Add To Cart for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedAug 16, 2024
PHP min version5.6
Downloads708

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Force Add To Cart for WooCommerce Developer Profile

WP Geeks

2 plugins · 910 total installs

88
trust score
Avg Security Score
92/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Force Add To Cart 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/force-add-to-cart/src/cart.js/wp-content/plugins/force-add-to-cart/src/admin.js/wp-content/plugins/force-add-to-cart/src/admin.css
Script Paths
wp-content/plugins/force-add-to-cart/src/cart.jswp-content/plugins/force-add-to-cart/src/admin.js
Version Parameters
force-add-to-cart/src/cart.js?ver=force-add-to-cart/src/admin.js?ver=force-add-to-cart/src/admin.css?ver=

HTML / DOM Fingerprints

CSS Classes
clear-force-add-to-cart-id
Data Attributes
data-placeholder="Search for a product&hellip;"data-action="woocommerce_json_search_products_and_variations"data-exclude
JS Globals
FORCE_ADD_TO_CART_URLFORCE_ADD_TO_CART_VERSION
REST Endpoints
/wp-json/wc/v3/products
FAQ

Frequently Asked Questions about Force Add To Cart for WooCommerce