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

Does "Cost of Goods: Product Cost & Profit Calculator for WooCommerce" work with WordPress 6.8.2 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: -10.01 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.2
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=9b4dd9c5c7
Aspect after-activation
HTTP status 200
Load time 0.268 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.192 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.354 s0.334 s-0.020 s3.51 MiB3.51 MiB+ 1.6 KiB
/wp-admin/edit.php0.198 s0.210 s+0.012 s3.57 MiB3.57 MiB+ 1.6 KiB
/wp-admin/post-new.php0.768 s0.598 s-0.170 s6.06 MiB6.07 MiB+ 6.02 KiB
/wp-admin/upload.php0.570 s0.845 s+0.275 s3.52 MiB3.51 MiB- 15.8 KiB
/wp-admin/options-writing.php0.217 s0.223 s+0.006 s3.5 MiB3.49 MiB- 11.81 KiB
/wp-admin/media-new.php0.260 s0.300 s+0.040 s3.49 MiB3.49 MiB- 3.62 KiB
/wp-admin/edit-tags.php?taxonomy=category0.233 s0.287 s+0.054 s3.5 MiB3.51 MiB+ 7.05 KiB
/wp-admin/post-new.php?post_type=page0.597 s0.861 s+0.264 s6.05 MiB6.05 MiB+ 1.55 KiB
/wp-admin/options-discussion.php0.426 s0.294 s-0.132 s3.5 MiB3.49 MiB- 15.31 KiB
/wp-admin/edit-comments.php0.247 s0.198 s-0.049 s3.52 MiB3.51 MiB- 15.81 KiB
/0.308 s0.193 s-0.115 s3.5 MiB3.44 MiB- 65.62 KiB
Average 0.380 s0.395 s+0.015 s3.98 MiB3.97 MiB- 10.01 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
PHP52.6%8,6654,41443
PO File37.7%6,2084,3364
JavaScript9.2%1,51627912
CSS0.2%3261
JSON0.2%2502
Markdown0.1%901
XML0.0%501
Sass0.0%011
Total 16,460 9,036 65

PHP Code Analysis | More results »

Lines of code 8,682
Total complexity 1,314
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 376
Functions 24

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