WC_Stripe_Payment_Request D

Total Complexity 212
Dependencies 13
Dependents 0
Total lines 1,310
Lines of code 735
Logical lines of code 408
Comment lines 321
Methods 38
Properties 7

Methods 38

Method Rating Maintainability Complexity Lines of code
normalize_state()
B
49 19 26
ajax_get_selected_product_data()
B
37 15 67
build_display_items()
A
37 14 71
scripts()
A
38 12 61
get_shipping_options()
A
43 11 49
should_show_payment_button_on_product_page()
A
50 12 26
__construct()
A
49 12 25
calculate_shipping()
A
44 10 45
display_payment_request_button_html()
A
49 10 30
get_product_data()
A
43 8 51
allowed_items_in_cart()
A
57 10 15
display_payment_request_button_separator_html()
A
56 9 18
filter_gateway_title()
A
58 9 15
ajax_add_to_cart()
A
50 8 26
postal_code_validation()
S
59 6 14
add_order_meta()
S
59 4 15
build_shipping_methods()
S
59 3 15
set_session()
S
70 4 6
ajax_update_shipping_method()
S
57 3 15
ajax_create_order()
S
63 3 11
ajax_get_shipping_options()
S
56 2 18
ajax_get_cart_details()
S
57 2 17
should_show_payment_button_on_cart()
S
65 3 10
update_shipping_method()
S
65 3 9
init()
S
53 1 22
supported_product_types()
S
59 1 17
get_button_theme()
S
78 2 3
get_button_label()
S
78 2 3
get_button_height()
S
77 2 3
custom_button_selector()
S
79 2 3
get_button_type()
S
78 2 3
get_button_branded_type()
S
78 2 3
ajax_log_errors()
S
70 1 6
is_branded_button()
S
80 1 3
instance()
S
80 1 3
get_stripe_supported_countries()
S
73 1 3
is_custom_button()
S
80 1 3
ajax_clear_cart()
S
74 1 5