WC_Stripe_Payment_Request D

Total Complexity 271
Dependencies 14
Dependents 0
Total lines 1,539
Lines of code 855
Logical lines of code 465
Comment lines 442
Methods 50
Properties 6

Methods 50

Method Rating Maintainability Complexity Lines of code
should_show_payment_button_on_product_page()
B
46 21 34
scripts()
B
37 17 67
ajax_get_selected_product_data()
B
37 16 67
build_display_items()
A
37 14 71
__construct()
A
50 15 24
allowed_items_in_cart()
A
54 15 18
get_shipping_options()
A
43 11 49
get_product_data()
A
41 10 57
display_payment_request_button_html()
A
50 9 28
ajax_add_to_cart()
A
50 9 26
filter_gateway_title()
A
55 9 20
get_normalized_state_from_pr_states()
A
55 9 18
calculate_shipping()
A
45 7 43
normalize_state()
A
60 9 12
validate_state()
A
53 8 22
display_payment_request_button_separator_html()
A
57 8 16
add_order_meta()
S
57 5 17
should_show_payment_button_on_cart()
S
61 5 13
get_product()
S
60 4 13
get_normalized_state_from_wc_states()
S
62 4 11
build_shipping_methods()
S
59 3 15
get_normalized_state()
S
64 4 10
ajax_update_shipping_method()
S
57 3 15
set_session()
S
70 4 6
are_keys_set()
S
65 4 9
ajax_create_order()
S
62 3 12
ajax_get_shipping_options()
S
56 2 18
ajax_get_cart_details()
S
57 2 17
is_account_creation_possible()
S
68 3 7
update_shipping_method()
S
65 3 9
get_product_price()
S
68 3 7
get_normalized_postal_code()
S
65 3 9
init()
S
55 1 19
supported_product_types()
S
60 1 16
is_normalized_state()
S
68 2 7
get_button_type()
S
78 2 3
get_button_label()
S
78 2 3
get_button_branded_type()
S
78 2 3
is_authentication_required()
S
70 2 6
is_product()
S
79 2 3
get_button_height()
S
77 2 3
ajax_log_errors()
S
69 2 6
get_button_theme()
S
78 2 3
is_block()
S
79 2 3
custom_button_selector()
S
79 2 3
ajax_clear_cart()
S
74 1 5
sanitize_string()
S
79 1 3
is_branded_button()
S
80 1 3
is_custom_button()
S
80 1 3
instance()
S
80 1 3