WJECF_Controller D

Total Complexity 204
Dependencies 12
Dependents 1
Total lines 1,199
Lines of code 653
Logical lines of code 384
Comment lines 390
Methods 60
Properties 10

Methods 60

Method Rating Maintainability Complexity Lines of code
validate_shipping_method()
A
48 11 32
coupon_combination_filter()
A
50 11 29
validate_excluded_shipping_method()
A
47 9 37
validate_customer()
A
53 9 23
validate_categories_and()
A
51 8 24
validate_min_max_quantity()
A
53 8 23
validate_products_and()
A
53 8 21
validate_min_max_subtotal()
S
53 7 23
init_plugins()
S
54 7 20
assert_coupon_is_valid()
S
49 6 32
is_request()
S
61 7 12
matches_shipping_instance()
S
55 6 19
add_plugin()
S
55 5 21
log()
S
56 5 18
get_session()
S
58 5 16
get_user_emails()
S
56 4 18
set_session()
S
59 4 15
get_flexible_shipping_instance()
S
60 4 14
get_subtotal_of_matching_products()
S
60 4 12
get_quantity_of_matching_products()
S
62 4 11
get_coupon_multiplier_value()
S
65 4 8
validate_payment_method()
S
61 3 13
get_plugin()
S
63 3 11
get_subtotal()
S
62 3 11
coupon_is_valid_for_product()
S
62 3 11
instance()
S
70 3 6
group_shipping_restrictions()
S
63 3 10
matches_shipping_zone()
S
64 3 10
fetch_billing_email()
S
64 3 10
plugin_file()
S
74 2 4
allow_overwrite_coupon_values()
S
78 2 3
get_original_coupon()
S
66 2 9
filter_woocommerce_coupon_message()
S
71 2 6
get_coupon_excluded_customer_roles()
S
72 2 5
get_coupon_customer_roles()
S
72 2 5
get_coupon_payment_method_ids()
S
72 2 5
get_coupon_excluded_shipping_restrictions()
S
71 2 5
coupon_is_valid()
S
69 2 7
get_coupon_shipping_restrictions()
S
71 2 5
save_options()
S
69 2 7
limit_multiplier()
S
67 2 8
get_coupon_shipping_method_ids()
S
72 2 5
__construct()
S
64 1 11
plugin_version()
S
82 1 3
plugin_url()
S
78 1 3
plugin_basename()
S
80 1 3
matches_shipping_method()
S
78 1 3
start()
S
79 1 3
init()
S
78 1 4
init_hooks()
S
69 1 6
get_plugins()
S
82 1 3
sanitizer()
S
81 1 3
set_option()
S
80 1 3
stop_overwrite_success_message()
S
81 1 3
start_overwrite_success_message()
S
78 1 3
is_pro()
S
80 1 3
get_option()
S
79 1 3
get_options()
S
81 1 3
safe_add_action()
S
75 1 4
get_coupon_customer_ids()
S
72 1 5