NCS_Cart_Upgrade_Path D

Total Complexity 201
Dependencies 5
Dependents 0
Total lines 1,219
Lines of code 960
Logical lines of code 541
Comment lines 45
Methods 52
Properties 6

Methods 52

Method Rating Maintainability Complexity Lines of code
order_summary()
B
37 15 83
add_summary_item()
A
44 13 46
is_immediate()
A
53 11 20
check_for_upgrade_or_downgrade()
A
43 9 47
maybe_process_upgrade_request()
A
47 9 31
check_filters()
A
51 9 27
show_new_sub_start_date()
A
47 8 35
sc_get_upgrade_path_plans()
A
48 8 33
get_upgrade_subscriptions()
A
49 7 33
show_selected_plan()
S
48 6 35
prepare_upgrade_paths()
S
49 6 27
maybe_apply_credit()
S
51 6 27
add_field_to_product()
S
37 1 99
calculate_subscription_cost()
S
54 6 20
get_current_product_plans()
S
51 5 26
check_upgrade_downgrade()
S
52 5 23
maybe_cancel_previous_sub()
S
58 5 14
calculate_proration_period_in_days()
S
58 4 15
sync_order_detail()
S
65 5 8
maybe_suppress_paid_integrations()
S
60 4 13
sc_set_upgrade_options()
S
61 4 12
add_customer_info_to_post()
S
57 3 15
maybe_change_sub_status()
S
60 3 14
get_checkout_url()
S
62 3 12
get_upgrade_orders()
S
55 2 22
calculate_proration()
S
57 2 16
register_post_type()
S
57 2 16
apply_credit_to_stripe_sub()
S
67 3 7
maybe_trigger_order_paid_integrations()
S
64 3 9
validate_subscription()
S
64 3 10
show_upgrade_path()
S
63 3 10
is_current_plan()
S
70 3 6
add_change_plans_link()
S
64 2 12
confirm_checkout_form_sections()
S
54 1 22
sc_show_pay_method()
S
64 1 21
__construct()
S
53 1 20
status_is_upgradeable()
S
76 2 3
checkout_form_mods()
S
72 2 5
post_type_args()
S
72 2 5
custom_column()
S
67 2 7
display_default_form()
S
75 1 4
switch_immediately()
S
78 1 3
is_upgrade()
S
78 1 3
maybe_link_previous_sub()
S
69 1 6
remove_upsell_path()
S
76 1 4
dump()
S
79 1 3
checkout_validation()
S
71 1 6
remove_shipping()
S
75 1 4
get_filtered_plan()
S
66 1 8
remove_trial_and_fee()
S
75 1 4
add_order_parent()
S
73 1 5
set_custom_edit_columns()
S
75 1 4