Cost of Goods Manager for WooCommerce Security & Risk Analysis

wordpress.org/plugins/cost-of-goods-manager-for-woocommerce

Add cost of goods management functionality to products for your store to quickly and easily track cost, profit, profit margin and markup.

20 active installs v1.0.9 PHP 5.6+ WP 3.0+ Updated Aug 4, 2021
cost-of-goodscost-of-goods-managercostofgoodswoocommercewoocommerce-cost-of-goods
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Cost of Goods Manager for WooCommerce Safe to Use in 2026?

Generally Safe

Score 85/100

Cost of Goods Manager for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4yr ago
Risk Assessment

The "cost-of-goods-manager-for-woocommerce" v1.0.9 plugin exhibits a concerning security posture primarily due to a lack of authentication on its sole AJAX handler. This significant oversight exposes a direct entry point for potential attacks, as any unauthenticated user could theoretically trigger this functionality. While the static analysis did not reveal any dangerous functions, external requests, or file operations, the absence of proper authorization for the AJAX endpoint is a critical flaw that greatly increases the attack surface. Furthermore, all SQL queries are executed without prepared statements, indicating a high risk of SQL injection vulnerabilities. The low percentage of properly escaped output further exacerbates the risk of cross-site scripting (XSS) attacks. The plugin's vulnerability history is clean, with no recorded CVEs. This might suggest a low profile or recent development, but it does not negate the immediate and evident risks identified in the static analysis. In conclusion, while the plugin has a clean history and avoids some common pitfalls like bundled libraries or dangerous functions, the unprotected AJAX handler and widespread lack of SQL prepared statements and output escaping present serious security weaknesses that require urgent attention.

Key Concerns

  • AJAX handler without auth checks
  • SQL queries without prepared statements
  • Low percentage of properly escaped output
  • No nonce checks on AJAX
  • No capability checks
Vulnerabilities
None known

Cost of Goods Manager for WooCommerce Security Vulnerabilities

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

Cost of Goods Manager for WooCommerce Code Analysis

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

SQL Query Safety

0% prepared3 total queries

Output Escaping

20% escaped30 total outputs
Attack Surface
1 unprotected

Cost of Goods Manager for WooCommerce Attack Surface

Entry Points1
Unprotected1

AJAX Handlers 1

authwp_ajax_zcostofgoods_wc_notice_dismissedhelper\class-zcostofgoods-core-admin.php:19
WordPress Hooks 28
actionwoocommerce_checkout_update_order_metacost-of-goods-functions.php:5
actionwoocommerce_payment_completecost-of-goods-functions.php:6
actioninitcost-of-goods.php:27
actionplugins_loadedhelper\class-zcostofgoods-core-admin.php:7
actionadmin_inithelper\class-zcostofgoods-core-admin.php:12
actionadmin_enqueue_scriptshelper\class-zcostofgoods-core-admin.php:14
actionwp_enqueue_scriptshelper\class-zcostofgoods-core-admin.php:16
actionwoocommerce_product_options_general_product_datahelper\class-zcostofgoods-core-admin.php:22
actionwoocommerce_process_product_metahelper\class-zcostofgoods-core-admin.php:26
actionwoocommerce_variation_options_pricinghelper\class-zcostofgoods-core-admin.php:29
actionwoocommerce_save_product_variationhelper\class-zcostofgoods-core-admin.php:33
filterwoocommerce_available_variationhelper\class-zcostofgoods-core-admin.php:35
filtermanage_edit-product_columnshelper\class-zcostofgoods-core-admin.php:38
actionmanage_posts_custom_columnhelper\class-zcostofgoods-core-admin.php:40
actionwoocommerce_admin_order_item_headershelper\class-zcostofgoods-core-admin.php:43
actionwoocommerce_admin_order_item_valueshelper\class-zcostofgoods-core-admin.php:44
actionwoocommerce_admin_order_totals_after_totalhelper\class-zcostofgoods-core-admin.php:45
actionwoocommerce_get_sections_productshelper\class-zcostofgoods-core-admin.php:49
actionwoocommerce_get_settings_productshelper\class-zcostofgoods-core-admin.php:51
actionwoocommerce_admin_field_cogbuttonhelper\class-zcostofgoods-core-admin.php:53
actionwoocommerce_admin_field_cogloadinghelper\class-zcostofgoods-core-admin.php:55
actionwoocommerce_save_product_variationhelper\class-zcostofgoods-core-admin.php:57
actionwoocommerce_update_producthelper\class-zcostofgoods-core-admin.php:59
actionadmin_post_zcostofgoods_recalculate_orders_coghelper\class-zcostofgoods-core-admin.php:65
actionadmin_post_zcostofgoods_calc_orders_coghelper\class-zcostofgoods-core-admin.php:67
actionadd_meta_boxeshelper\class-zcostofgoods-core-admin.php:70
actionadmin_noticeshelper\class-zcostofgoods-core.php:17
actionadmin_noticeshelper\class-zcostofgoods-core.php:29
Maintenance & Trust

Cost of Goods Manager for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested5.8.0
Last updatedAug 4, 2021
PHP min version5.6
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs20
Developer Profile

Cost of Goods Manager for WooCommerce Developer Profile

bizswoop

7 plugins · 3K total installs

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

How We Detect Cost of Goods Manager 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/cost-of-goods-manager-for-woocommerce/assets/css/admin.css/wp-content/plugins/cost-of-goods-manager-for-woocommerce/assets/js/admin.js

HTML / DOM Fingerprints

CSS Classes
cost-of-goods-box
Data Attributes
data-zcostofgoods
JS Globals
zcostofgoods_admin_params
FAQ

Frequently Asked Questions about Cost of Goods Manager for WooCommerce