Conditional Add To Cart 0.2.0

Does Conditional Add To Cart work with WordPress 5.9.1 and PHP 7.4.8? 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: 26.97 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 version5.9.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 700+
WordPress.org page https://wordpress.org/plugins/conditional-add-to-cart/
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=conditional-add-to-cart%2Fconditional-add-to-cart.php&plugin_status=all&paged=1&s&_wpnonce=1e755cf67e
Aspect after-activation
HTTP status 200
Load time 0.448 s
Memory usage 3.3 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.223 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.382 s0.344 s-0.038 s3.37 MiB3.4 MiB+ 31.52 KiB
/wp-admin/edit.php0.191 s0.226 s+0.035 s3.4 MiB3.43 MiB+ 32.93 KiB
/wp-admin/post-new.php1.135 s1.298 s+0.163 s6.14 MiB6.17 MiB+ 30.52 KiB
/wp-admin/upload.php0.620 s0.433 s-0.187 s3.25 MiB3.29 MiB+ 38.38 KiB
/wp-admin/options-writing.php0.280 s0.163 s-0.117 s3.24 MiB3.27 MiB+ 23.42 KiB
/wp-admin/media-new.php0.279 s0.232 s-0.047 s3.23 MiB3.26 MiB+ 38.87 KiB
/wp-admin/edit-tags.php?taxonomy=category0.192 s0.205 s+0.013 s3.27 MiB3.3 MiB+ 32.4 KiB
/wp-admin/post-new.php?post_type=page1.028 s1.368 s+0.340 s6.14 MiB6.16 MiB+ 26.1 KiB
/wp-admin/options-discussion.php0.238 s0.356 s+0.118 s3.22 MiB3.26 MiB+ 40.05 KiB
/wp-admin/edit-comments.php0.224 s0.225 s+0.001 s3.27 MiB3.3 MiB+ 30.37 KiB
/0.292 s0.211 s-0.081 s3.4 MiB3.37 MiB- 27.84 KiB
Average 0.442 s0.460 s+0.018 s3.81 MiB3.84 MiB+ 26.97 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
JavaScript
Language % Lines of code Comment lines Files
PHP88.8%1,12129227
JavaScript8.6%108191
CSS2.7%3401
Total 1,263 311 29

PHP Code Analysis | More results »

Lines of code 933
Total complexity 187
Median class complexity 8.0
Median method complexity 1.0
Most complex class ConditionalAddToCart\Admin
Most complex function ConditionalAddToCart\Core\Utility\Hook::replaceCallback()
Classes 21
Methods 97
Functions 0

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