Allow Only 1 Product in Cart Security & Risk Analysis

wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce

Allows only one product in the cart at a time. Clears previous items when a new product is added. For logged-in users only.

500 active installs v1.2 PHP 5.6+ WP 4.0+ Updated Jul 18, 2025
add-to-cartcustomerone-productproductwoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Allow Only 1 Product in Cart Safe to Use in 2026?

Generally Safe

Score 100/100

Allow Only 1 Product in Cart has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 8mo ago
Risk Assessment

The plugin "allow-only-1-product-in-cart-for-woocommerce" v1.2 exhibits an exceptionally strong security posture based on the provided static analysis and vulnerability history. The absence of any identified dangerous functions, direct SQL queries, file operations, external HTTP requests, or output not properly escaped suggests rigorous adherence to secure coding practices. Furthermore, the complete lack of any recorded CVEs, past or present, further solidifies its reputation for being secure. The analysis indicates a very small attack surface with zero entry points that are unprotected, and a clean taint analysis with no unsanitized flows. This plugin appears to have been developed with a strong emphasis on security, with no apparent vulnerabilities detected. The main concern, if any could be extrapolated, is the complete absence of capability checks and nonce checks. While the current static analysis did not find any exploitable paths due to this, it does represent a potential weakness if new functionalities are added or if the existing code were to interact with user-controllable data in a more complex way in the future. However, given the current state, the plugin is demonstrably secure.

Key Concerns

  • No capability checks detected
  • No nonce checks detected
Vulnerabilities
None known

Allow Only 1 Product in Cart Security Vulnerabilities

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

Allow Only 1 Product in Cart Code Analysis

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

Allow Only 1 Product in Cart Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwoocommerce_before_calculate_totalsallow-only-1-product-cart.php:15
Maintenance & Trust

Allow Only 1 Product in Cart Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJul 18, 2025
PHP min version5.6
Downloads5K

Community Trust

Rating100/100
Number of ratings9
Active installs500
Developer Profile

Allow Only 1 Product in Cart Developer Profile

Yasar Khalifa

5 plugins · 3K total installs

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

How We Detect Allow Only 1 Product in Cart

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/allow-only-1-product-in-cart-for-woocommerce/allow-only-1-product-cart.php

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about Allow Only 1 Product in Cart