WAD_Discount D

Total Complexity 239
Dependencies 2
Dependents 2
Total lines 1,403
Lines of code 1,154
Logical lines of code 583
Comment lines 89
Methods 41
Properties 8

Methods 41

Method Rating Maintainability Complexity Lines of code
apply_quantity_based_discount_if_needed()
C
37 31 65
get_sale_price()
C
39 29 54
get_loop_data()
B
42 24 49
is_applicable()
A
49 12 30
get_discount_settings_page()
A
30 3 150
get_quantity_pricing_tables()
A
44 10 43
is_rule_valid()
A
47 10 35
get_total_cart_discount()
A
48 10 31
get_discount_rules_callback()
A
43 6 54
get_columns_values()
S
49 7 30
get_product_subtotal()
S
53 7 23
get_quantity_pricing_table()
S
48 6 35
get_product_tab_data()
S
36 1 101
get_evaluable_condition()
S
53 6 25
__construct()
S
52 6 25
shortcode_products_query()
S
55 6 19
get_steps_quantity_pricing_table()
S
50 5 32
woocommerce_custom_surcharge()
S
56 6 16
get_rule_tpl()
S
43 3 58
get_cart_subtotal()
S
55 5 18
get_cart_item_quantities()
S
59 5 14
prepare_product_template_loop_data()
S
54 4 24
get_discount_amount()
S
61 4 11
save_used_discounts()
S
61 4 11
get_value_fields_match()
S
52 3 24
get_operator_fields_match()
S
51 2 27
register_cpt_discount()
S
49 1 31
shortcode_products_query_results()
S
59 2 16
initialize_used_discounts_array()
S
68 3 7
get_variations_prices()
S
61 2 13
get_discounts_actions()
S
55 1 19
get_cart_item_price()
S
66 2 9
get_product_tab_label()
S
64 2 10
save_discount()
S
70 2 6
wad_update_products_list()
S
74 2 5
get_discount_metabox()
S
66 2 8
get_columns()
S
70 1 6
get_discounts_conditions()
S
66 1 8
get_mini_cart_loop_data()
S
77 1 4
get_cart_items()
S
77 1 4
update_product_lists()
S
77 1 4