WAD_Discount D

Total Complexity 243
Dependencies 3
Dependents 2
Total lines 1,477
Lines of code 1,242
Logical lines of code 585
Comment lines 86
Methods 42
Properties 8

Methods 42

Method Rating Maintainability Complexity Lines of code
apply_quantity_based_discount_if_needed()
C
37 31 64
get_sale_price()
C
37 31 64
get_loop_data()
C
41 25 54
is_applicable()
A
50 12 29
get_discount_settings_page()
A
30 3 153
is_rule_valid()
A
44 10 46
get_quantity_pricing_tables()
A
44 10 43
get_total_cart_discount()
A
46 10 35
get_discount_rules_callback()
A
42 6 59
get_columns_values()
S
49 7 30
get_quantity_pricing_table()
S
46 6 44
get_product_subtotal()
S
53 7 23
get_product_tab_data()
S
36 1 101
get_evaluable_condition()
S
52 6 26
__construct()
S
52 6 26
shortcode_products_query()
S
55 6 19
get_steps_quantity_pricing_table()
S
49 5 33
woocommerce_custom_surcharge()
S
55 6 18
get_rule_tpl()
S
42 3 62
get_cart_subtotal()
S
55 5 18
get_cart_item_quantities()
S
59 5 14
prepare_product_template_loop_data()
S
54 4 25
get_value_fields_match()
S
50 3 31
get_discount_amount()
S
59 4 13
save_used_discounts()
S
61 4 11
get_operator_fields_match()
S
49 2 33
shortcode_products_query_results()
S
58 2 17
register_cpt_discount()
S
49 1 31
initialize_used_discounts_array()
S
73 3 5
save_discount()
S
61 2 14
get_variations_prices()
S
61 2 13
get_product_tab_label()
S
63 2 11
get_discount_metabox()
S
63 2 11
get_discounts_actions()
S
55 1 19
wad_update_products_list()
S
72 2 6
get_cart_item_price()
S
66 2 9
get_discounts_conditions()
S
63 1 11
get_cart_items()
S
77 1 4
get_mini_cart_loop_data()
S
77 1 4
get_columns()
S
70 1 6
update_product_lists()
S
77 1 4
calculate_cart_totals()
S
81 1 3