WC_Payments_Express_Checkout_Button_Helper D

Total Complexity 167
Dependencies 17
Dependents 5
Total lines 823
Lines of code 462
Logical lines of code 238
Comment lines 251
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
should_show_express_checkout_button()
C
40 32 51
build_display_items()
B
37 15 74
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
add_order_payment_method_title()
S
53 6 21
get_button_context()
S
61 5 15
is_pay_for_order_supported()
S
58 4 16
get_product()
S
61 4 13
product_needs_shipping()
S
70 4 6
get_current_order()
S
64 3 11
is_available_at()
S
68 3 7
get_taxes_like_cart()
S
66 3 8
get_button_height()
S
65 3 10
get_booking_id_from_cart()
S
66 3 8
is_product_subscription()
S
73 3 5
get_quantity()
S
66 3 9
supported_product_types()
S
59 1 17
is_pay_for_order_page()
S
78 2 3
is_product()
S
79 2 3
is_cart()
S
79 2 3
cart_prices_include_tax()
S
78 2 3
is_checkout()
S
79 2 3
get_common_button_settings()
S
65 1 9
get_total_label()
S
74 1 4
sanitize_string()
S
79 1 3
__construct()
S
77 1 4