ScrtOrder D

Total Complexity 300
Dependencies 4
Dependents 0
Total lines 1,482
Lines of code 1,193
Logical lines of code 695
Comment lines 26
Methods 48
Properties 13

Methods 48

Method Rating Maintainability Complexity Lines of code
add_bump_items_from_post()
C
29 28 125
get_data()
C
35 28 77
child_of()
B
35 15 88
setup_atts_from_post()
A
39 15 54
apply_plan_coupon_to_items()
A
48 13 29
store()
A
44 12 40
initialize()
A
47 11 34
calculate_final_amounts()
A
44 10 43
divide_money_evenly()
A
46 10 43
add_main_item_from_post()
A
46 9 37
receipt_link()
A
55 9 18
apply_cart_coupon_to_items()
A
48 8 32
add_line_item_from_post()
A
49 8 30
maybe_apply_tax_to_item()
A
50 8 27
invoice_link()
A
55 8 18
set_invoice_number()
S
45 6 42
calculate_tax()
S
55 7 19
check_first_order()
S
60 7 12
get_current_user_orders()
S
47 5 39
load_from_post()
S
50 5 30
load_coupon_from_post()
S
57 6 15
create()
S
53 5 21
get_children()
S
56 5 19
__construct()
S
39 1 78
update()
S
57 5 16
get_upsell()
S
63 6 10
store_items()
S
59 5 14
setup_tax()
S
58 4 15
calculate_tax_amount_from_items()
S
60 4 13
get_downsell()
S
64 4 11
get_by_trans_id()
S
56 2 20
find_user_id()
S
66 3 9
get_subscription()
S
67 3 9
invoice_link_html()
S
64 3 10
receipt_link_html()
S
64 3 10
refund_log()
S
60 2 13
set_date()
S
63 2 12
get_invoice()
S
65 2 9
calculate_pre_tax_amount_from_items()
S
64 2 10
calculate_total_amount_from_items()
S
64 2 10
get_items()
S
69 2 7
output_invoice()
S
79 1 3
log()
S
79 1 3
add_item()
S
76 1 4
trigger_integrations()
S
76 1 4
get_meta_value()
S
78 1 3
get_status()
S
77 1 4
set_date_from_timestamp()
S
75 1 4