Cost of Goods: Product Cost & Profit Calculator for WooCommerce 3.7.0

Does "Cost of Goods: Product Cost & Profit Calculator for WooCommerce" work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: -4.58 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/cost-of-goods-for-woocommerce/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=cost-of-goods-for-woocommerce%2Fcost-of-goods-for-woocommerce.php&plugin_status=all&paged=1&s&_wpnonce=5d162aa87b
Aspect after-activation
HTTP status 200
Load time 0.262 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.185 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.363 s0.285 s-0.078 s3.51 MiB3.51 MiB+ 944 bytes
/wp-admin/edit.php0.213 s0.227 s+0.014 s3.57 MiB3.57 MiB+ 944 bytes
/wp-admin/post-new.php0.835 s0.643 s-0.192 s6.06 MiB6.07 MiB+ 5.35 KiB
/wp-admin/upload.php0.783 s0.705 s-0.078 s3.52 MiB3.51 MiB- 16.48 KiB
/wp-admin/options-writing.php0.234 s0.288 s+0.054 s3.5 MiB3.49 MiB- 12.49 KiB
/wp-admin/media-new.php0.295 s0.213 s-0.082 s3.49 MiB3.49 MiB- 4.3 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.200 s+0.003 s3.5 MiB3.51 MiB+ 6.38 KiB
/wp-admin/post-new.php?post_type=page0.765 s0.739 s-0.026 s6.05 MiB6.05 MiB+ 896 bytes
/wp-admin/options-discussion.php0.279 s0.250 s-0.029 s3.5 MiB3.49 MiB- 15.99 KiB
/wp-admin/edit-comments.php0.476 s0.234 s-0.242 s3.52 MiB3.51 MiB- 16.49 KiB
/0.319 s0.225 s-0.094 s3.43 MiB3.43 MiB+ 928 bytes
Average 0.433 s0.364 s-0.068 s3.97 MiB3.97 MiB- 4.58 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
PO File
Language % Lines of code Comment lines Files
PHP54.8%8,4544,38043
PO File39.3%6,0724,0364
JavaScript5.4%83811812
CSS0.2%3261
JSON0.2%2502
Markdown0.1%901
XML0.0%501
Sass0.0%011
Total 15,435 8,541 65

PHP Code Analysis | More results »

Lines of code 8,471
Total complexity 1,289
Median class complexity 11.0
Median method complexity 2.0
Most complex class Alg_WC_Cost_of_Goods_Orders
Most complex function Alg_WC_Cost_of_Goods_Orders::update_order_items_costs()
Classes 40
Methods 373
Functions 22

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

No new entries found.

PHP Error Log

The log file is empty.

See also: All tests for this plugin