NP Forex Commodity Widget Security & Risk Analysis

wordpress.org/plugins/np-forex-commodity-widget

Adds commodity prices, exchange rates and fuel rates widget.

20 active installs v1.6 PHP + WP 4.5+ Updated Aug 5, 2020
commodityexchangeforexrateswidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is NP Forex Commodity Widget Safe to Use in 2026?

Generally Safe

Score 85/100

NP Forex Commodity Widget has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The static analysis of the "np-forex-commodity-widget" v1.6 plugin reveals a seemingly robust security posture at first glance. There are no identified AJAX handlers, REST API routes, shortcodes, or cron events, resulting in zero entry points and an effectively zero attack surface. Furthermore, the code signals show no dangerous functions, no raw SQL queries (all using prepared statements), no file operations, and no bundled libraries. This indicates a proactive effort to avoid common vulnerability vectors.

However, several areas present significant concerns. The low percentage of properly escaped output (44%) is a major red flag, suggesting a high likelihood of Cross-Site Scripting (XSS) vulnerabilities. While no taint flows were analyzed, the lack of proper output escaping means that any data processed by the plugin and displayed to users could be manipulated to inject malicious scripts. Additionally, the absence of nonce checks and capability checks, even with zero identified entry points, is a concerning oversight. If any entry points were to be discovered or introduced in future updates, these essential security mechanisms would be missing, leaving the plugin vulnerable.

The plugin also has no recorded vulnerability history (CVEs), which is a positive indicator of past code quality. However, this alone is not a guarantee of current security. The absence of taint analysis results might be due to the limited attack surface identified, but it also means that potential critical vulnerabilities could have been missed if the analysis was not comprehensive. In conclusion, while the plugin benefits from a small attack surface and good practices in SQL handling, the severe lack of output escaping and absence of core security checks like nonces and capability checks present a substantial risk.

Key Concerns

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

NP Forex Commodity Widget Security Vulnerabilities

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

NP Forex Commodity Widget Code Analysis

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

Output Escaping

44% escaped71 total outputs
Attack Surface

NP Forex Commodity Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 9
actionwp_enqueue_scriptsinc\class-main.php:26
actionwidgets_initinc\nfcw-commodity-price.php:12
actionwp_enqueue_scriptsinc\nfcw-commodity-price.php:19
actionwp_enqueue_scriptsinc\nfcw-commodity-price.php:20
actionwidgets_initinc\nfcw-ex-rates.php:11
actionwp_enqueue_scriptsinc\nfcw-ex-rates.php:18
actionwidgets_initinc\nfcw-fuel-price.php:12
actionadmin_noticesnfcw-commodity-widget.php:30
actionplugin_loadednfcw-commodity-widget.php:56
Maintenance & Trust

NP Forex Commodity Widget Maintenance & Trust

Maintenance Signals

WordPress version tested5.5.18
Last updatedAug 5, 2020
PHP min version
Downloads3K

Community Trust

Rating0/100
Number of ratings0
Active installs20
Developer Profile

NP Forex Commodity Widget Developer Profile

Mahesh Maharjan

2 plugins · 40 total installs

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

How We Detect NP Forex Commodity Widget

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/np-forex-commodity-widget/css/tabs.css/wp-content/plugins/np-forex-commodity-widget/js/script.js
Script Paths
/wp-content/plugins/np-forex-commodity-widget/js/script.js
Version Parameters
np-forex-commodity-widget/css/tabs.css?ver=np-forex-commodity-widget/js/script.js?ver=

HTML / DOM Fingerprints

CSS Classes
nfcw-commodity-widgetcommodity-widgetwidget-wrapsourcewidgettitle
Data Attributes
data-id="commodity-widget"
JS Globals
nfcw_currencynfcw_datenfcw_commoditynfcw_forexnfcw_fuel
Shortcode Output
<div class="nfcw-commodity-widget widget-wrap"><h4 class="widgettitle"><div class="commodity-widget<p>As of
FAQ

Frequently Asked Questions about NP Forex Commodity Widget