WC_Payments_WooPay_Button_Handler A

Total Complexity 59
Dependencies 13
Dependents 2
Total lines 386
Lines of code 187
Logical lines of code 106
Comment lines 127
Methods 11
Properties 7

Methods 11

Method Rating Maintainability Complexity Lines of code
should_show_woopay_button()
C
42 27 47
is_product_supported()
A
57 8 17
init()
S
52 5 23
has_allowed_items_in_cart()
S
62 5 12
display_woopay_button_html()
S
55 3 21
show_error_notice()
S
56 3 18
scripts()
S
54 2 23
is_woopay_enabled()
S
79 3 3
__construct()
S
71 1 6
add_woopay_config()
S
65 1 9
get_button_settings()
S
67 1 8