Portugal States (Distritos) for WooCommerce Security & Risk Analysis

wordpress.org/plugins/portugal-states-distritos-for-woocommerce

This plugin adds the Portuguese “States”, known as “Distritos”, to WooCommerce and sets the correct address format for Portugal.

5K active installs v4.2 PHP 7.2+ WP 5.8+ Updated Dec 11, 2025
addressdistrictsportugalpostcodestates
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Portugal States (Distritos) for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Portugal States (Distritos) for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3mo ago
Risk Assessment

The plugin 'portugal-states-distritos-for-woocommerce' v4.2 exhibits a mixed security posture. On the positive side, it has a clean vulnerability history with no recorded CVEs and a small attack surface. The code analysis shows no dangerous functions, all SQL queries use prepared statements, and there are no file operations or external HTTP requests, which are good security indicators. However, a significant concern is the presence of one AJAX handler that lacks authentication checks. This represents a direct entry point for potential malicious activity without proper authorization. Additionally, only one out of three outputs is properly escaped, leaving room for cross-site scripting vulnerabilities. The lack of nonce checks on the unprotected AJAX handler further exacerbates this risk.

The vulnerability history being clean is a strong point, suggesting the developers have a good track record or the plugin's functionality hasn't attracted widespread targeting. However, the static analysis reveals potential weaknesses that could be exploited. The unprotected AJAX endpoint, combined with insufficient output escaping, forms a primary concern. While the absence of critical taint flows and dangerous functions is reassuring, the identified gaps in authentication and output sanitization present a notable risk that should be addressed to improve the plugin's overall security. The plugin's strengths lie in its clean history and careful SQL handling, but its weaknesses are concentrated in its handling of user-facing inputs and authorization.

Key Concerns

  • Unprotected AJAX handler
  • Insufficient output escaping
  • Missing nonce check on AJAX
Vulnerabilities
None known

Portugal States (Distritos) for WooCommerce Security Vulnerabilities

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

Portugal States (Distritos) for WooCommerce Code Analysis

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

Output Escaping

33% escaped3 total outputs
Attack Surface
1 unprotected

Portugal States (Distritos) for WooCommerce Attack Surface

Entry Points1
Unprotected1

AJAX Handlers 1

authwp_ajax_dismiss_webdados_portuguese_postcodes_nagwebdados_portuguese_postcodes_nag\webdados_portuguese_postcodes_nag.php:38
WordPress Hooks 7
actionadmin_noticeswebdados_portuguese_postcodes_nag\webdados_portuguese_postcodes_nag.php:6
actionplugins_loadedwoocommerce-portugal-states.php:35
filterwoocommerce_stateswoocommerce-portugal-states.php:65
filterwoocommerce_get_country_localewoocommerce-portugal-states.php:67
filterwoocommerce_localisation_address_formatswoocommerce-portugal-states.php:69
actionbefore_woocommerce_initwoocommerce-portugal-states.php:138
actionadmin_initwoocommerce-portugal-states.php:147
Maintenance & Trust

Portugal States (Distritos) for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 11, 2025
PHP min version7.2
Downloads71K

Community Trust

Rating100/100
Number of ratings9
Active installs5K
Developer Profile

Portugal States (Distritos) for WooCommerce Developer Profile

Marco Almeida | Webdados

21 plugins · 27K total installs

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

How We Detect Portugal States (Distritos) for WooCommerce

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
form-row-firstform-row-last
HTML Comments
WooCommerce CRUD not neededWooCommerce HPOS not needed - https://github.com/woocommerce/woocommerce/wiki/High-Performance-Order-Storage-Upgrade-Recipe-BookWooCommerce block-based Cart and Checkout readyIf you’re reading this you must know what you’re doing ;-) Greetings from sunny Portugal!+2 more
Data Attributes
data-country_codedata-state_code
JS Globals
WC_Webdados_Distritos
FAQ

Frequently Asked Questions about Portugal States (Distritos) for WooCommerce