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

Does "Cost of Goods: Product Cost & Profit Calculator for WooCommerce" work with WordPress 7.0 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.8 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 version7.0
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=bb138808f0
Aspect after-activation
HTTP status 200
Load time 0.761 s
Memory usage 3.88 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.279 s
Memory usage 4.23 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.756 s0.759 s+0.003 s3.92 MiB3.93 MiB+ 1.21 KiB
/wp-admin/edit.php0.969 s0.595 s-0.374 s3.98 MiB3.98 MiB+ 1.2 KiB
/wp-admin/post-new.php1.965 s2.078 s+0.113 s6.56 MiB6.56 MiB+ 5.63 KiB
/wp-admin/upload.php1.123 s0.755 s-0.368 s3.89 MiB3.87 MiB- 16.2 KiB
/wp-admin/options-writing.php0.606 s0.596 s-0.010 s3.86 MiB3.85 MiB- 12.21 KiB
/wp-admin/media-new.php0.676 s1.146 s+0.470 s3.85 MiB3.85 MiB- 4.02 KiB
/wp-admin/edit-tags.php?taxonomy=category0.759 s0.568 s-0.191 s3.86 MiB3.87 MiB+ 1.16 KiB
/wp-admin/post-new.php?post_type=page1.883 s1.721 s-0.162 s6.55 MiB6.55 MiB+ 1.16 KiB
/wp-admin/options-discussion.php0.712 s0.741 s+0.029 s3.86 MiB3.85 MiB- 15.71 KiB
/wp-admin/edit-comments.php0.604 s0.636 s+0.032 s3.88 MiB3.87 MiB- 16.21 KiB
/0.343 s0.231 s-0.112 s4.23 MiB4.23 MiB+ 1.19 KiB
Average 0.945 s0.893 s-0.052 s4.4 MiB4.4 MiB- 4.8 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.3%9,3154,64744
PO File36.6%6,4064,5284
JavaScript9.7%1,69928912
CSS0.2%3261
JSON0.1%2502
Markdown0.1%901
XML0.0%501
Sass0.0%011
Total 17,491 9,471 66

PHP Code Analysis | More results »

Lines of code 9,335
Total complexity 1,401
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 394
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