Phone Validator with Flags for WooCommerce Security & Risk Analysis

wordpress.org/plugins/phone-validator-with-flags-for-woocommerce

Adds a country flag and phone validation to the checkout phone field.

600 active installs v1.2.0 PHP 7.2+ WP 6.5+ Updated Aug 20, 2025
checkoutcountry-flagsphone-fieldphone-validationwoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Phone Validator with Flags for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Phone Validator with Flags for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 7mo ago
Risk Assessment

The plugin "phone-validator-with-flags-for-woocommerce" version 1.2.0 exhibits a strong security posture in several key areas. The static analysis reveals a complete absence of an attack surface, meaning there are no exposed AJAX handlers, REST API routes, shortcodes, or cron events. This significantly reduces the potential for external actors to inject malicious code or exploit functionalities. Furthermore, the code demonstrates good practices regarding database interactions, with all SQL queries utilizing prepared statements, and no file operations or external HTTP requests were detected, mitigating common attack vectors. The taint analysis also shows no identified vulnerabilities, indicating no unsanitized data flows.

However, a notable concern arises from the output escaping. With only 29% of outputs properly escaped, there is a substantial risk of Cross-Site Scripting (XSS) vulnerabilities. Attackers could potentially inject malicious scripts through user-provided data that is later displayed without adequate sanitization, impacting the integrity and security of the WordPress site. The lack of nonce checks and capability checks, while not directly indicative of immediate vulnerabilities given the zero attack surface, represents a missed opportunity for defense-in-depth and could become a risk if new entry points are introduced in future versions. The vulnerability history is clean, which is positive, but this, combined with the lack of robust authorization checks on potential entry points (even if none exist now), suggests a reliance on the absence of immediate exploitability rather than proactive security measures.

In conclusion, the plugin has a solid foundation with no exposed attack vectors and secure database practices. However, the poor output escaping is a significant and actionable security weakness that requires immediate attention to prevent XSS attacks. The absence of authorization checks, while currently not exploitable, is a potential future risk. The plugin is generally secure for its current version due to its limited attack surface, but the XSS risk is a critical area for improvement.

Key Concerns

  • Low output escaping rate
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Phone Validator with Flags for WooCommerce Security Vulnerabilities

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

Phone Validator with Flags for WooCommerce Code Analysis

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

Output Escaping

29% escaped7 total outputs
Attack Surface

Phone Validator with Flags for WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actionwp_enqueue_scriptsincludes\class-phone-validator-flags.php:8
actionwoocommerce_after_checkout_billing_formincludes\class-phone-validator-flags.php:9
actionadmin_noticesincludes\functions.php:30
actionbefore_woocommerce_initphone-validator-with-flags-for-woocommerce.php:28
actionplugins_loadedphone-validator-with-flags-for-woocommerce.php:52
Maintenance & Trust

Phone Validator with Flags for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedAug 20, 2025
PHP min version7.2
Downloads2K

Community Trust

Rating100/100
Number of ratings6
Active installs600
Developer Profile

Phone Validator with Flags for WooCommerce Developer Profile

Mokhtar Bensaid

4 plugins · 1K total installs

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

How We Detect Phone Validator with Flags 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/phone-validator-with-flags-for-woocommerce/assets/css/intlTelInput.min.css/wp-content/plugins/phone-validator-with-flags-for-woocommerce/assets/css/style.css/wp-content/plugins/phone-validator-with-flags-for-woocommerce/assets/js/intlTelInputWithUtils.min.js/wp-content/plugins/phone-validator-with-flags-for-woocommerce/assets/js/scripts.js
Script Paths
/wp-content/plugins/phone-validator-with-flags-for-woocommerce/assets/js/intlTelInputWithUtils.min.js/wp-content/plugins/phone-validator-with-flags-for-woocommerce/assets/js/scripts.js
Version Parameters
phone-validator-with-flags-for-woocommerce/assets/css/style.css?ver=phone-validator-with-flags-for-woocommerce/assets/js/scripts.js?ver=

HTML / DOM Fingerprints

JS Globals
PVFWC_DATA
Shortcode Output
<div id="pvfwc-phone-wrapper"></div>
FAQ

Frequently Asked Questions about Phone Validator with Flags for WooCommerce