WC_Revolut_Settings_API B

Total Complexity 91
Dependencies 5
Dependents 3
Total lines 697
Lines of code 450
Logical lines of code 172
Comment lines 150
Methods 24
Properties 10

Methods 24

Method Rating Maintainability Complexity Lines of code
add_revolut_description()
A
45 7 62
setup_revolut_location()
A
52 8 24
setup_revolut_synchronous_webhook()
A
48 7 32
check_is_shop_needs_webhook_setup()
S
52 7 23
init_form_fields()
S
37 2 93
check_api_key()
S
60 7 12
setup_revolut_webhook()
S
52 6 23
hasValidTokens()
S
54 6 23
show_messages()
S
62 5 12
enqueue_admin_scripts()
S
51 4 26
admin_options()
S
63 5 10
generate_api_connect_html()
S
54 3 28
maybe_register_webhook()
S
62 4 12
remove_old_revolut_webhook_if_exist()
S
61 4 11
maybe_register_synchronous_webhooks()
S
65 3 9
get_revolut_location()
S
74 2 4
get_request_data()
S
77 2 3
instance()
S
71 2 6
updated_option()
S
68 2 8
add_error_message()
S
80 1 3
add_success_message()
S
80 1 3
hooks()
S
63 1 10
check_is_get_data_submitted()
S
79 1 3
__construct()
S
63 1 10