WPML Country Detector Security & Risk Analysis

wordpress.org/plugins/wpml-country-detector

WPML Addon for detecting the user country and show his country flag in the language switcher. Redirect user to his country page

90 active installs v0.2 PHP + WP 3.1+ Updated Sep 8, 2014
country-detectorgeomaxmindtranslationwpml
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WPML Country Detector Safe to Use in 2026?

Generally Safe

Score 85/100

WPML Country Detector has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 11yr ago
Risk Assessment

The "wpml-country-detector" plugin v0.2 exhibits a generally good security posture based on the provided static analysis. The absence of dangerous functions, file operations, external HTTP requests, and the exclusive use of prepared statements for SQL queries are strong indicators of secure coding practices. The presence of a nonce check on the single AJAX handler, while positive, is slightly undermined by the lack of explicit capability checks, meaning any authenticated user could potentially trigger the AJAX action without proper authorization.

The static analysis reveals a concern regarding output escaping, with only 14% of outputs being properly escaped. This presents a significant Cross-Site Scripting (XSS) risk, as untrusted data rendered on the frontend could be manipulated to inject malicious scripts. Despite the lack of reported vulnerabilities in its history, this unaddressed output escaping issue warrants careful consideration. The plugin's attack surface is minimal, with only one AJAX handler, and importantly, it appears to require authentication to be triggered, which mitigates some risks.

In conclusion, while the plugin demonstrates strengths in areas like SQL security and the absence of critical taint flows, the low rate of proper output escaping is a notable weakness that could lead to XSS vulnerabilities. The lack of capability checks on the AJAX handler also represents a potential authorization bypass. The clean vulnerability history is a positive sign, suggesting past development has been secure, but it does not negate the risks identified in the current code.

Key Concerns

  • Low percentage of properly escaped output
  • AJAX handler without capability checks
Vulnerabilities
None known

WPML Country Detector Security Vulnerabilities

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

WPML Country Detector Code Analysis

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

Output Escaping

14% escaped29 total outputs
Attack Surface

WPML Country Detector Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_wcd_store_ajaxwcd-plugin-settings.class.php:15
WordPress Hooks 13
actionwp_print_scriptsinc\country-redirect.php:9
actioninitinc\country-redirect.php:59
actionadmin_initwcd-plugin-settings.class.php:11
actionadmin_enqueue_scriptswpml-country-detector.php:53
actioninitwpml-country-detector.php:54
actionplugins_loadedwpml-country-detector.php:61
filterplugin_row_metawpml-country-detector.php:62
actionadmin_initwpml-country-detector.php:65
actionwp_enqueue_scriptswpml-country-detector.php:68
actionwp_footerwpml-country-detector.php:93
actionwp_headwpml-country-detector.php:94
actionwcdp_lang_switcherwpml-country-detector.php:96
actionwidgets_initwpml-country-detector.php:419
Maintenance & Trust

WPML Country Detector Maintenance & Trust

Maintenance Signals

WordPress version tested4.0.38
Last updatedSep 8, 2014
PHP min version
Downloads7K

Community Trust

Rating100/100
Number of ratings1
Active installs90
Developer Profile

WPML Country Detector Developer Profile

Ayebare Mucunguzi Brooks

8 plugins · 340 total installs

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

How We Detect WPML Country Detector

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wpml-country-detector/js/stgscript.js/wp-content/plugins/wpml-country-detector/inc/country-redirect.php
Script Paths
/wp-content/plugins/wpml-country-detector/js/stgscript.js
Version Parameters
wpml-country-detector/js/stgscript.js?ver=

HTML / DOM Fingerprints

CSS Classes
iclflag
Data Attributes
id="lang_sel"
JS Globals
wcdpWCD_Plugin_Basewcd_on_activate_callbackwcd_on_deactivate_callbackwcdp_lang_switchergeoip_open+93 more
FAQ

Frequently Asked Questions about WPML Country Detector