Conditional Discounts for WooCommerce by ORION 2.21

Does "Conditional Discounts for WooCommerce by ORION" work with WordPress 5.6.1 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 124.41 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.6.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=9ea312f710
Aspect after-activation
HTTP status 403
Load time 0.210 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.231 s
Memory usage 2.91 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.325 s
Memory usage 3.01 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.188 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.270 s0.133 s-0.137 s2.79 MiB
/wp-admin/edit.php0.178 s0.191 s+0.013 s2.84 MiB2.95 MiB+ 121.05 KiB
/wp-admin/post-new.php0.904 s0.911 s+0.007 s4.93 MiB5.07 MiB+ 134.67 KiB
/wp-admin/upload.php0.511 s0.551 s+0.040 s2.67 MiB2.79 MiB+ 127.69 KiB
/wp-admin/options-writing.php0.262 s0.189 s-0.073 s2.68 MiB2.78 MiB+ 96.55 KiB
/wp-admin/media-new.php0.218 s0.185 s-0.033 s2.65 MiB2.77 MiB+ 127.49 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.200 s+0.001 s2.68 MiB2.81 MiB+ 129.62 KiB
/wp-admin/post-new.php?post_type=page1.200 s0.618 s-0.582 s4.92 MiB5.05 MiB+ 126.26 KiB
/wp-admin/options-discussion.php0.325 s0.381 s+0.056 s2.65 MiB2.77 MiB+ 129.05 KiB
/wp-admin/edit-comments.php0.232 s0.247 s+0.015 s2.75 MiB2.87 MiB+ 127.3 KiB
/0.277 s0.164 s-0.113 s2.67 MiB
Average 0.416 s0.343 s-0.073 s3.11 MiB3.32 MiB+ 124.41 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
JavaScript48.5%7,42950212
CSS23.0%3,5241787
PHP19.8%3,02785114
PO File5.9%8986862
HTML1.7%25901
JSON1.0%14703
SVG0.2%2411
Total 15,308 2,218 40

PHP Code Analysis | More results »

Lines of code 3,036
Total complexity 615
Median class complexity 9.0
Median method complexity 2.0
Most complex class WAD_Discount
Most complex function o_admin_fields()
Classes 9
Methods 96
Functions 32

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.

Meta Boxes

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

PHP Error Log 61 lines

[04-Feb-2021 10:55:26 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:26 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1267
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(551): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3310): do_action_ref_array()
#4 /wp-admin/includes/dashboard.php(970): WP_Query->the_post()
#5 /wp-admin/includes/dashboard.php(904): wp_dashboard_recent_posts()
#6 /wp-admin/includes/template.php(1389): wp_dashboard_site_activity()
#7 /wp-admin/includes/dashboard.php(256): do_meta_boxes()
#8 /wp-admin/index.p in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1267
[04-Feb-2021 10:55:27 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1267
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(551): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3310): do_action_ref_array()
#4 /wp-includes/query.php(975): WP_Query->the_post()
#5 /wp-content/themes/twentyseventeen/index.php(39): the_post()
#6 /wp-includes/template-loader.php(106): include('/opt/bitnami/ap...')
#7 /wp-blog-header.php(19): require_once('/opt/bitnami/ap...')
#8 /index.php(17): require('/o in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1267
[04-Feb-2021 10:55:28 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:28 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:28 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1267
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(551): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3310): do_action_ref_array()
#4 /wp-admin/includes/dashboard.php(970): WP_Query->the_post()
#5 /wp-admin/includes/dashboard.php(904): wp_dashboard_recent_posts()
#6 /wp-admin/includes/template.php(1389): wp_dashboard_site_activity()
#7 /wp-admin/includes/dashboard.php(256): do_meta_boxes()
#8 /wp-admin/index.p in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1267
[04-Feb-2021 10:55:34 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1267
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(551): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3310): do_action_ref_array()
#4 /wp-includes/query.php(975): WP_Query->the_post()
#5 /wp-content/themes/twentyseventeen/index.php(39): the_post()
#6 /wp-includes/template-loader.php(106): include('/opt/bitnami/ap...')
#7 /wp-blog-header.php(19): require_once('/opt/bitnami/ap...')
#8 /index.php(17): require('/o in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1267
[04-Feb-2021 10:55:34 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:34 UTC] PHP Notice:  Trying to get property 'post_content' of non-object in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1259
[04-Feb-2021 10:55:34 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_cart() in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php:1267
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): WAD_Discount->get_loop_data()
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(551): WP_Hook->do_action()
#3 /wp-includes/class-wp-query.php(3310): do_action_ref_array()
#4 /wp-admin/includes/dashboard.php(970): WP_Query->the_post()
#5 /wp-admin/includes/dashboard.php(904): wp_dashboard_recent_posts()
#6 /wp-admin/includes/template.php(1389): wp_dashboard_site_activity()
#7 /wp-admin/includes/dashboard.php(256): do_meta_boxes()
#8 /wp-admin/index.p in /wp-content/plugins/woo-advanced-discounts/includes/class-wad-discount.php on line 1267
See also: All tests for this plugin