WC_Payments_Express_Checkout_Button_Helper D

Total Complexity 242
Dependencies 25
Dependents 5
Total lines 1,237
Lines of code 686
Logical lines of code 382
Comment lines 383
Methods 39
Properties 2

Methods 39

Method Rating Maintainability Complexity Lines of code
should_show_express_checkout_button()
C
40 32 51
build_display_items()
B
37 15 74
normalize_state()
B
47 17 31
is_product_supported()
A
49 17 27
get_product_price()
A
44 16 40
get_product_data()
A
38 14 67
has_allowed_items_in_cart()
A
51 14 22
get_shipping_options()
A
43 11 49
get_normalized_state_from_ece_states()
A
55 9 18
calculate_shipping()
A
45 7 43
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
is_pay_for_order_supported()
S
56 5 19
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_booking_id_from_cart()
S
66 3 8
get_button_height()
S
65 3 10
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
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
get_common_button_settings()
S
65 1 9
sanitize_string()
S
79 1 3
get_total_label()
S
74 1 4
__construct()
S
77 1 4