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

Does "Cost of Goods: Product Cost & Profit Calculator for WooCommerce" work with WordPress 6.9.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.62 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.9.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 9,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=52383d51cc
Aspect after-activation
HTTP status 200
Load time 0.508 s
Memory usage 3.73 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.252 s
Memory usage 4.11 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.485 s0.378 s-0.107 s3.78 MiB3.78 MiB+ 944 bytes
/wp-admin/edit.php0.397 s0.319 s-0.078 s3.78 MiB3.78 MiB+ 944 bytes
/wp-admin/post-new.php0.798 s0.773 s-0.025 s6.31 MiB6.31 MiB+ 5.35 KiB
/wp-admin/upload.php0.497 s0.666 s+0.169 s3.74 MiB3.72 MiB- 16.48 KiB
/wp-admin/options-writing.php0.373 s0.379 s+0.006 s3.71 MiB3.7 MiB- 12.49 KiB
/wp-admin/media-new.php0.442 s0.336 s-0.106 s3.7 MiB3.7 MiB- 4.3 KiB
/wp-admin/edit-tags.php?taxonomy=category0.336 s0.323 s-0.013 s3.72 MiB3.72 MiB+ 6.38 KiB
/wp-admin/post-new.php?post_type=page0.741 s0.776 s+0.035 s6.3 MiB6.3 MiB+ 896 bytes
/wp-admin/options-discussion.php0.349 s0.400 s+0.051 s3.71 MiB3.7 MiB- 15.94 KiB
/wp-admin/edit-comments.php0.365 s0.358 s-0.007 s3.74 MiB3.72 MiB- 16.44 KiB
/0.306 s0.208 s-0.098 s4.11 MiB4.11 MiB+ 360 bytes
Average 0.463 s0.447 s-0.016 s4.24 MiB4.23 MiB- 4.62 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
JavaScript
Language % Lines of code Comment lines Files
PHP53.2%9,2464,63444
PO File36.6%6,3674,4884
JavaScript9.8%1,69928912
CSS0.2%3261
JSON0.1%2502
Markdown0.1%901
XML0.0%501
Sass0.0%011
Total 17,383 9,418 66

PHP Code Analysis | More results »

Lines of code 9,266
Total complexity 1,397
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 41
Methods 393
Functions 25

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