Conditional Discounts for WooCommerce - A simple yet complete woocommerce dynamic pricing plugin 2.32.3

Does "Conditional Discounts for WooCommerce - A simple yet complete woocommerce dynamic pricing plugin" work with WordPress 6.8 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
No JavaScript exceptions
1Page failed to load
  • 1 403 Forbidden
No resource errors
Performance

Memory usage: 87.2 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
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/woo-advanced-discounts/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/edit.php?post_type=o-discount&page=wad-pro-features
Requested URL /wp-admin/plugins.php?action=activate&plugin=woo-advanced-discounts%2Fwad.php&plugin_status=all&paged=1&s&_wpnonce=2f20b03809
Aspect after-activation
HTTP status 403
Load time 0.129 s
Memory usage N/A
JS errors None
Resource errors None

Discounts

Page screenshot: Discounts
URL /wp-admin/edit.php?post_type=o-discount
Aspect menu-item
HTTP status 200
Load time 0.191 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Discounts → New discount

Page screenshot: Discounts → New discount
URL /wp-admin/post-new.php?post_type=o-discount
Aspect menu-item
HTTP status 200
Load time 0.308 s
Memory usage 3.65 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.154 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.348 s0.256 s-0.092 s3.51 MiB3.6 MiB+ 96.55 KiB
/wp-admin/edit.php0.172 s0.172 s+0.000 s3.57 MiB3.66 MiB+ 93.81 KiB
/wp-admin/post-new.php0.693 s0.603 s-0.090 s6.06 MiB6.15 MiB+ 93.55 KiB
/wp-admin/upload.php0.545 s0.510 s-0.035 s3.52 MiB3.6 MiB+ 76.75 KiB
/wp-admin/options-writing.php0.198 s0.218 s+0.020 s3.5 MiB3.58 MiB+ 80.43 KiB
/wp-admin/media-new.php0.253 s0.192 s-0.061 s3.49 MiB3.58 MiB+ 88.63 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.182 s-0.011 s3.5 MiB3.6 MiB+ 99.27 KiB
/wp-admin/post-new.php?post_type=page0.553 s0.542 s-0.011 s6.05 MiB6.14 MiB+ 89.07 KiB
/wp-admin/options-discussion.php0.241 s0.461 s+0.220 s3.5 MiB3.58 MiB+ 77.55 KiB
/wp-admin/edit-comments.php0.354 s0.375 s+0.021 s3.52 MiB3.6 MiB+ 76.43 KiB
/0.281 s0.166 s-0.115 s3.43 MiB
Average 0.348 s0.334 s-0.014 s3.97 MiB4.11 MiB+ 87.2 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.

JavaScript
CSS
PHP
Language % Lines of code Comment lines Files
JavaScript47.9%7,4935519
CSS23.8%3,7181787
PHP23.0%3,6021,05114
PO File5.1%8033242
SVG0.2%2411
Total 15,640 2,105 33

PHP Code Analysis | More results »

Lines of code 3,606
Total complexity 641
Median class complexity 12.0
Median method complexity 2.0
Most complex class WAD_Discount
Most complex function O_Utils::admin_fields()
Classes 10
Methods 121
Functions 19

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.

Custom Post Types 2

ID Name
o-listList
o-discountDiscount

Meta Boxes

{
    "o-list": {
        "o-list-settings-box": {
            "title": "List settings",
            "context": "advanced"
        }
    },
    "o-discount": {
        "o-discount-settings-box": {
            "title": "Discount settings",
            "context": "advanced"
        }
    }
}

PHP Error Log 26 lines

[16-Apr-2025 11:05:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1365
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(565): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3789): do_action_ref_array()
#4 /wp-includes/query.php(1005): WP_Query->the_post()
#5 /wp-content/themes/twentyseventeen/index.php(39): the_post()
#6 /wp-includes/template-loader.php(106): include('...')
#7 /wp-blog-header.php(19): require_once('...')
#8 /index.php(17): require('...')
#9 {main}
  thrown in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1365
[16-Apr-2025 11:05:23 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1365
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(565): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3789): do_action_ref_array()
#4 /wp-includes/query.php(1005): WP_Query->the_post()
#5 /wp-content/themes/twentyseventeen/index.php(39): the_post()
#6 /wp-includes/template-loader.php(106): include('...')
#7 /wp-blog-header.php(19): require_once('...')
#8 /index.php(17): require('...')
#9 {main}
  thrown in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1365
See also: All tests for this plugin