Stock Level Pricing Security & Risk Analysis

wordpress.org/plugins/stock-level-pricing

Create pricing based on current Inventory status, give discounts or increase price depending on how many pieces of product left in stock

10 active installs v1.0.3 PHP 7.4+ WP 4.9+ Updated Jun 9, 2024
dynamic-pricinginventory-managementstock-level-pricewoo-stockwoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Stock Level Pricing Safe to Use in 2026?

Generally Safe

Score 92/100

Stock Level Pricing has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1yr ago
Risk Assessment

The stock-level-pricing plugin v1.0.3 demonstrates a generally good security posture with several strengths. The absence of known vulnerabilities (CVEs) and the consistent use of prepared statements for all SQL queries are positive indicators. Furthermore, the vast majority of output is properly escaped, and there are no concerning file operations or external HTTP requests. The presence of nonce and capability checks, though limited in number, suggests some awareness of WordPress security best practices.

However, there are specific areas of concern that warrant attention. The analysis reveals one unprotected AJAX handler, representing a direct entry point without authentication, which is a significant risk. Additionally, two taint flows with unsanitized paths were identified at a high severity. While these may not have materialized into public CVEs, they indicate potential for exploitation if malicious data is passed through these flows. The limited number of capability checks (2) and nonce checks (8) in relation to the total entry points also suggests potential for further hardening. The bundled Freemius library, while not explicitly stated as outdated, is a common vector for vulnerabilities if not kept up-to-date.

In conclusion, the plugin has a solid foundation with its secure SQL handling and output escaping. However, the unprotected AJAX handler and high-severity taint flows are critical weaknesses that need immediate remediation. The plugin's vulnerability history is reassuring, but the identified code signals suggest proactive security measures could be further enhanced to mitigate potential future risks.

Key Concerns

  • Unprotected AJAX handler
  • High severity unsanitized taint flows
  • Bundled Freemius v1.0 library
Vulnerabilities
None known

Stock Level Pricing Security Vulnerabilities

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

Stock Level Pricing Code Analysis

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

Bundled Libraries

Freemius1.0

SQL Query Safety

100% prepared17 total queries

Output Escaping

95% escaped192 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

4 flows2 with unsanitized paths
stocklvl_edit_stock_level_rule_page_callback (admin\edit-global-pricing-rules.php:27)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
1 unprotected

Stock Level Pricing Attack Surface

Entry Points5
Unprotected1

AJAX Handlers 5

authwp_ajax_delete_stock_level_rulesadmin\global-pricing-rules-table.php:19
noprivwp_ajax_get_variation_rules_and_displayfrontend\display-stock-level-table.php:581
authwp_ajax_get_variation_rules_and_displayfrontend\display-stock-level-table.php:582
authwp_ajax_stocklvl_save_stock_level_pricing_rulesincludes\save-variations-rules.php:11
authwp_ajax_remove_ruleincludes\save-variations-rules.php:102
WordPress Hooks 48
actionadmin_headadmin\add-global-pricing-rules.php:25
actionadmin_menuadmin\add-global-pricing-rules.php:30
actionadmin_headadmin\edit-global-pricing-rules.php:18
actionadmin_menuadmin\edit-global-pricing-rules.php:23
actionadmin_post_delete_stock_level_ruleadmin\edit-global-pricing-rules.php:25
actionadmin_menuadmin\global-pricing-rules-table.php:18
actionadmin_enqueue_scriptsadmin\global-pricing-rules-table.php:194
filterplugin_row_metaadmin\links.php:18
actionwoocommerce_product_after_variable_attributesadmin\meta-box.php:296
actionwoocommerce_product_options_inventory_product_dataadmin\meta-box.php:302
filterwoocommerce_get_sections_productsadmin\settings-page.php:8
filterwoocommerce_get_settings_productsadmin\settings-page.php:15
actionwoocommerce_update_options_products_stock_level_pricingadmin\settings-page.php:120
actionadmin_enqueue_scriptsadmin\settings-page.php:145
actionadmin_enqueue_scriptsadmin-scripts.php:12
actionadmin_enqueue_scriptsadmin-scripts.php:68
actionadmin_enqueue_scriptsadmin-scripts.php:72
actionwp_enqueue_scriptsfrontend\display-stock-level-table.php:26
actionwoocommerce_single_product_summaryfrontend\display-stock-level-table.php:353
actionadmin_post_stocklvl_save_stock_level_ruleincludes\db-handler.php:298
filterwoocommerce_product_get_priceincludes\global-price-adjustment-handler.php:85
filterwoocommerce_product_get_priceincludes\global-price-adjustment-handler.php:95
filterwoocommerce_product_get_priceincludes\global-price-adjustment-handler.php:145
filterwoocommerce_product_variation_get_priceincludes\global-price-adjustment-handler.php:163
filterwoocommerce_product_variation_get_priceincludes\global-price-adjustment-handler.php:173
filterwoocommerce_product_variation_get_priceincludes\global-price-adjustment-handler.php:225
filterwoocommerce_product_get_priceincludes\global-price-adjustment-handler.php:236
filterwoocommerce_product_variation_get_priceincludes\global-price-adjustment-handler.php:242
filterwoocommerce_product_get_priceincludes\price-adjustment-handler.php:87
filterwoocommerce_get_price_htmlincludes\price-adjustment-handler.php:164
filterwoocommerce_product_get_priceincludes\price-adjustment-handler.php:165
actionwoocommerce_before_calculate_totalsincludes\price-adjustment-handler.php:169
actionadmin_noticesincludes\save-parent-rules.php:76
actionadd_meta_boxesincludes\save-parent-rules.php:133
actionsave_post_productincludes\save-parent-rules.php:136
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:100
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:107
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:129
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:163
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:183
filterwoocommerce_variable_sale_price_htmlincludes\variations-price-adjustment-handler.php:231
filterwoocommerce_variable_price_htmlincludes\variations-price-adjustment-handler.php:232
filterwoocommerce_product_variation_get_priceincludes\variations-price-adjustment-handler.php:233
filterwoocommerce_addons_cloned_product_with_filtered_priceintegrations\woo-product-addons.php:18
actionstocklvlv_wcaddon_cart_recalculateintegrations\woo-product-addons.php:31
actionadmin_noticesstock-level-pricing.php:30
actionbefore_woocommerce_initstock-level-pricing.php:109
actionbefore_woocommerce_initstock-level-pricing.php:115
Maintenance & Trust

Stock Level Pricing Maintenance & Trust

Maintenance Signals

WordPress version tested6.5.8
Last updatedJun 9, 2024
PHP min version7.4
Downloads2K

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

Stock Level Pricing Developer Profile

Andrew

1 plugin · 10 total installs

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

How We Detect Stock Level Pricing

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/stock-level-pricing/admin/css/stock-level-pricing-admin.css/wp-content/plugins/stock-level-pricing/admin/js/stock-level-pricing-admin.js/wp-content/plugins/stock-level-pricing/frontend/css/stock-level-pricing-frontend.css/wp-content/plugins/stock-level-pricing/frontend/js/stock-level-pricing-frontend.js
Version Parameters
stock-level-pricing/admin/css/stock-level-pricing-admin.css?ver=stock-level-pricing/admin/js/stock-level-pricing-admin.js?ver=stock-level-pricing/frontend/css/stock-level-pricing-frontend.css?ver=stock-level-pricing/frontend/js/stock-level-pricing-frontend.js?ver=

HTML / DOM Fingerprints

CSS Classes
stock-level-pricing-table-containerstock-level-pricing-stock-levelstock-level-pricing-price-adjustmentstock-level-pricing-action-buttonsstocklvl-price-adjustment-wrapper
HTML Comments
<!-- Bulk Actions --><!-- Main Table -->
Data Attributes
data-stock-level-iddata-product-iddata-variation-id
JS Globals
stocklvl_ajax_object
Shortcode Output
[display_stock_level_table]
FAQ

Frequently Asked Questions about Stock Level Pricing