Automatically add product to cart 1.4

Does "Automatically add product to cart" work with WordPress 6.6.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

No data available.

Environment
WordPress version6.6.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 20+
WordPress.org page https://wordpress.org/plugins/automatically-add-product-to-cart/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 1

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
Requested URL /wp-admin/plugins.php?action=activate&plugin=automatically-add-product-to-cart%2Fautomatically-add-product-to-cart.php&plugin_status=all&paged=1&s&_wpnonce=5d30970e57
Aspect after-activation
HTTP status 500
Load time 0.116 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

No benchmark data available.

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
Language % Lines of code Comment lines Files
PHP100.0%152454
Total 152 45 4

PHP Code Analysis | More results »

Lines of code 140
Total complexity 31
Median class complexity 15.5
Median method complexity 1.0
Most complex class WC_Cmetric_Aptc
Most complex function WP_Class_Cmetric_Aptc_Settings::cmetric_aptc_add_product_to_cart()
Classes 2
Methods 14
Functions 0

Additions

No data available.

PHP Error Log 12 lines

[01-Aug-2024 11:25:25 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function deactivate_plugins() in /wp-content/plugins/automatically-add-product-to-cart/class-woocommerce-automatically-add-product-to-cart.php:83
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): WC_Cmetric_Aptc->WC_load_cmetric_aptc()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-settings.php(555): do_action()
#4 /wp-config.php(191): require_once('...')
#5 /wp-load.php(50): require_once('...')
#6 /wp-admin/admin.php(34): require_once('...')
#7 /wp-admin/plugins.php(10): require_once('...')
#8 {main}
  thrown in /wp-content/plugins/automatically-add-product-to-cart/class-woocommerce-automatically-add-product-to-cart.php on line 83
See also: All tests for this plugin