Weight Based Pricing for WooCommerce Security & Risk Analysis

wordpress.org/plugins/weight-based-pricing-for-woocommerce

A simple weight based pricing plugin for WooCommerce. Set different prices for different weight ranges easily

600 active installs v1.1.6 PHP 5.6+ WP 4.9.0+ Updated Sep 6, 2024
unitweightweight-based-pricingweight-based-shippingwoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Weight Based Pricing for WooCommerce Safe to Use in 2026?

Generally Safe

Score 92/100

Weight Based Pricing for WooCommerce 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 plugin 'weight-based-pricing-for-woocommerce' v1.1.6 demonstrates a generally good security posture with several positive indicators. The absence of any known vulnerabilities or CVEs, coupled with the fact that all SQL queries utilize prepared statements and a high percentage of output is properly escaped, suggests a commitment to secure coding practices. The total entry points are limited and notably, none of them are unprotected, indicating that authentication and authorization checks are being applied to the exposed functionalities. Taint analysis also reveals no concerning unsanitized flows.

However, the static analysis does highlight a significant concern: the presence of eight instances of the `unserialize` function. This function is notoriously dangerous if used with untrusted input, as it can lead to object injection vulnerabilities. While no specific exploit patterns were identified in the taint analysis, the mere presence of `unserialize` without clear input validation or sanitization on the data being unserialized is a notable risk. Additionally, the absence of capability checks on the AJAX handlers is a weakness, as it relies solely on nonce checks for protection, which might not be sufficient in all scenarios.

Key Concerns

  • Use of unserialize function
  • Missing capability checks on AJAX handlers
Vulnerabilities
None known

Weight Based Pricing for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Weight Based Pricing for WooCommerce Release Timeline

v1.1.6Current
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.0
Code Analysis
Analyzed Mar 16, 2026

Weight Based Pricing for WooCommerce Code Analysis

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

Dangerous Functions Found

unserialize$measure_ranges = isset($product_data['wwbp_pricing_rule'][0]) ? unserialize($product_data['wwbp_priApp\Views\Admin\PricingRule.php:18
unserialize$measure_ranges = isset($product_data['wwbp_pricing_rule'][0]) ? unserialize($product_data['wwbp_priApp\Views\Admin\PricingRule.php:60
unserialize$measure_ranges = unserialize($product_data['wwbp_pricing_rule'][0]);App\Views\Admin\PricingRule.php:111
unserialize$measure_ranges = unserialize($product_data['wwbp_pricing_rule'][0]);App\Views\Admin\PricingRule.php:156
unserialize$pricing_rules = isset($product_data['wwbp_pricing_rule'][0]) && !empty(unserialize($product_data['wApp\Views\Frontend\PricingSection.php:52
unserialize$pricing_rules = isset($product_data['wwbp_pricing_rule'][0]) && !empty(unserialize($product_data['wApp\Views\Frontend\PricingSection.php:52
unserialize$pricing_rules = isset($product_data['wwbp_pricing_rule'][0]) && !empty(unserialize($product_data['wApp\Views\Frontend\PricingSection.php:166
unserialize$pricing_rules = isset($product_data['wwbp_pricing_rule'][0]) && !empty(unserialize($product_data['wApp\Views\Frontend\PricingSection.php:166

Output Escaping

91% escaped46 total outputs
Data Flows · Security
All sanitized

Data Flow Analysis

2 flows
page (App\Controllers\Admin\PluginMenu.php:58)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Weight Based Pricing for WooCommerce Attack Surface

Entry Points4
Unprotected0

AJAX Handlers 4

authwp_ajax_wwbp_ajax_simple_range_addApp\Controllers\Admin\AjaxRequests.php:17
authwp_ajax_wwbp_ajax_simple_range_removeApp\Controllers\Admin\AjaxRequests.php:18
authwp_ajax_wwbp_ajax_variable_range_addApp\Controllers\Admin\AjaxRequests.php:19
authwp_ajax_wwbp_ajax_variable_range_removeApp\Controllers\Admin\AjaxRequests.php:20
WordPress Hooks 32
actionwoocommerce_initApp\Boot.php:39
actioninitApp\Boot.php:44
actionadmin_menuApp\Controllers\Admin\PluginMenu.php:16
filterwoocommerce_screen_idsApp\Controllers\Admin\PluginMenu.php:19
actionwoocommerce_product_options_general_product_dataApp\Controllers\Admin\SimpleProducts.php:19
actionwoocommerce_process_product_metaApp\Controllers\Admin\SimpleProducts.php:20
actionwoocommerce_product_after_variable_attributesApp\Controllers\Admin\VariableProducts.php:19
actionwoocommerce_process_product_meta_variableApp\Controllers\Admin\VariableProducts.php:20
actionwoocommerce_save_product_variationApp\Controllers\Admin\VariableProducts.php:21
actionadmin_enqueue_scriptsApp\Controllers\Assets.php:14
actionwp_enqueue_scriptsApp\Controllers\Assets.php:15
filterwoocommerce_add_to_cart_validationApp\Controllers\Frontend\CartAdjustments.php:17
filterwoocommerce_add_cart_item_dataApp\Controllers\Frontend\CartAdjustments.php:18
filterwoocommerce_get_item_dataApp\Controllers\Frontend\CartAdjustments.php:19
filterwoocommerce_cart_item_priceApp\Controllers\Frontend\CartAdjustments.php:21
actionwoocommerce_before_calculate_totalsApp\Controllers\Frontend\CartAdjustments.php:22
actionwoocommerce_cart_totals_after_order_totalApp\Controllers\Frontend\CartAdjustments.php:26
actionwoocommerce_review_order_after_order_totalApp\Controllers\Frontend\CartAdjustments.php:27
actionwoocommerce_before_add_to_cart_buttonApp\Controllers\Frontend\ProductAdjustments.php:17
actionwoocommerce_single_variationApp\Controllers\Frontend\ProductAdjustments.php:18
filterwoocommerce_get_price_htmlApp\Controllers\Frontend\ProductAdjustments.php:20
filterwoocommerce_get_availabilityApp\Controllers\Frontend\ProductAdjustments.php:21
filterwoocommerce_product_supportsApp\Controllers\Frontend\ShopAdjustments.php:14
filterwoocommerce_product_add_to_cart_urlApp\Controllers\Frontend\ShopAdjustments.php:15
filterwoocommerce_product_add_to_cart_textApp\Controllers\Frontend\ShopAdjustments.php:16
actionwoocommerce_new_order_itemApp\Controllers\OrderAdjustments.php:14
filterwoocommerce_order_item_quantityApp\Controllers\OrderAdjustments.php:16
filterwoocommerce_hidden_order_itemmetaApp\Controllers\OrderAdjustments.php:17
actioninitApp\Controllers\Settings.php:14
filterwoocommerce_stock_amountApp\Controllers\Settings.php:25
actionadmin_noticesApp\Helpers\WooCommerce.php:28
actionbefore_woocommerce_initweight-based-pricing-woocommerce.php:45
Maintenance & Trust

Weight Based Pricing for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.6.5
Last updatedSep 6, 2024
PHP min version5.6
Downloads9K

Community Trust

Rating86/100
Number of ratings7
Active installs600
Developer Profile

Weight Based Pricing for WooCommerce Developer Profile

ThemeParrot

4 plugins · 910 total installs

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

How We Detect Weight Based Pricing 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/weight-based-pricing-for-woocommerce/Assets/CSS/wwbp_admin.css/wp-content/plugins/weight-based-pricing-for-woocommerce/Assets/JS/wwbp_admin.js/wp-content/plugins/weight-based-pricing-for-woocommerce/Assets/CSS/wwbp_frontend.css/wp-content/plugins/weight-based-pricing-for-woocommerce/Assets/JS/wwbp_frontend.js
Script Paths
/wp-content/plugins/weight-based-pricing-for-woocommerce/vendor/autoload.php
Version Parameters
weight-based-pricing-for-woocommerce/Assets/CSS/wwbp_admin.css?ver=weight-based-pricing-for-woocommerce/Assets/JS/wwbp_admin.js?ver=weight-based-pricing-for-woocommerce/Assets/CSS/wwbp_frontend.css?ver=weight-based-pricing-for-woocommerce/Assets/JS/wwbp_frontend.js?ver=

HTML / DOM Fingerprints

CSS Classes
wwbp_pricing_settingswwbp_pricing_rule_add_btnwwbp_pricing_rule_remove_btn
Data Attributes
data-wwbp_nonce
JS Globals
wwbp_admin
FAQ

Frequently Asked Questions about Weight Based Pricing for WooCommerce