WC_Payments_Express_Checkout_Button_Helper D

Total Complexity 227
Dependencies 24
Dependents 6
Total lines 1,159
Lines of code 645
Logical lines of code 356
Comment lines 357
Methods 38
Properties 2

Methods 38

Method Rating Maintainability Complexity Lines of code
should_show_express_checkout_button()
C
41 30 49
build_display_items()
B
37 15 74
get_product_price()
A
44 16 40
get_product_data()
A
38 14 66
is_product_supported()
A
51 16 23
has_allowed_items_in_cart()
A
51 14 22
get_shipping_options()
A
43 11 49
get_normalized_state_from_pr_states()
A
55 9 18
calculate_shipping()
A
45 7 43
normalize_state()
A
59 9 13
validate_state()
S
53 7 22
maybe_restore_recurring_chosen_shipping_methods()
S
57 7 15
add_order_payment_method_title()
S
53 6 21
get_button_context()
S
61 5 15
get_product()
S
61 4 13
get_normalized_state_from_wc_states()
S
62 4 11
product_needs_shipping()
S
70 4 6
get_normalized_state()
S
64 4 10
get_current_order()
S
64 3 11
is_product_subscription()
S
73 3 5
get_button_height()
S
65 3 10
get_booking_id_from_cart()
S
66 3 8
is_available_at()
S
68 3 7
get_normalized_postal_code()
S
65 3 9
get_quantity()
S
66 3 9
update_shipping_method()
S
65 3 9
get_taxes_like_cart()
S
66 3 8
get_common_button_settings()
S
62 2 12
supported_product_types()
S
59 1 17
is_checkout()
S
79 2 3
is_normalized_state()
S
74 2 4
is_cart()
S
79 2 3
is_pay_for_order_page()
S
78 2 3
is_product()
S
79 2 3
cart_prices_include_tax()
S
78 2 3
sanitize_string()
S
79 1 3
get_total_label()
S
74 1 4
__construct()
S
77 1 4