WC_Stripe_Express_Checkout_Helper D

Total Complexity 263
Dependencies 17
Dependents 3
Total lines 1,364
Lines of code 757
Logical lines of code 416
Comment lines 413
Methods 47
Properties 3

Methods 47

Method Rating Maintainability Complexity Lines of code
should_show_express_checkout_button()
B
43 23 44
build_display_items()
B
37 14 77
normalize_state()
A
48 17 30
get_product_data()
A
38 14 67
is_invalid_subscription_product()
A
49 15 28
get_product_price()
A
50 14 26
get_shipping_options()
A
41 12 54
fix_address_fields_mapping()
A
54 13 20
is_product_supported()
A
52 11 23
get_normalized_state_from_pr_states()
A
55 9 18
calculate_shipping()
A
45 7 43
allowed_items_in_cart()
A
53 8 22
validate_state()
A
53 8 22
maybe_restore_recurring_chosen_shipping_methods()
A
56 8 17
has_subscription_product()
S
55 7 19
is_authentication_required()
S
65 5 9
get_product()
S
60 4 13
get_normalized_state_from_wc_states()
S
62 4 11
get_login_confirmation_settings()
S
57 3 17
get_normalized_state()
S
64 4 10
build_shipping_methods()
S
59 3 15
__construct()
S
67 4 6
get_button_radius()
S
64 4 10
product_needs_shipping()
S
70 4 6
get_button_height()
S
64 4 10
get_normalized_postal_code()
S
65 3 9
get_taxes_like_cart()
S
66 3 8
is_account_creation_possible()
S
68 3 7
get_button_locations()
S
66 3 9
get_booking_id_from_cart()
S
66 3 8
is_page_supported()
S
73 3 5
update_shipping_method()
S
65 3 9
supported_product_types()
S
60 1 16
is_product()
S
79 2 3
is_express_checkout_enabled()
S
78 2 3
cart_prices_include_tax()
S
78 2 3
is_pay_for_order_page()
S
78 2 3
is_checkout()
S
79 2 3
get_button_theme()
S
78 2 3
get_button_type()
S
78 2 3
is_normalized_state()
S
68 2 7
should_show_ece_on_cart_page()
S
69 1 7
sanitize_string()
S
79 1 3
get_button_settings()
S
63 1 10
should_show_ece_on_checkout_page()
S
66 1 9
get_total_label()
S
82 1 3
should_show_ece_on_product_pages()
S
66 1 9