OMAPI_RestApi D

Total Complexity 151
Dependencies 9
Dependents 1
Total lines 1,456
Lines of code 804
Logical lines of code 347
Comment lines 429
Methods 36
Properties 4

Methods 36

Method Rating Maintainability Complexity Lines of code
get_wp_resources()
B
35 18 84
update_settings()
A
44 11 48
register_rest_routes()
A
31 1 184
handle_plugin_action()
A
49 8 29
create_event_notification()
A
49 7 31
woocommerce_get_key()
S
46 6 36
get_campaign_data()
S
49 6 33
update_campaign_data()
S
50 6 27
fallback_set_allow_headers()
S
58 6 15
verify_request_nonce()
S
59 6 14
woocommerce_save()
S
53 5 23
exception_to_response()
S
54 5 22
woocommerce_autogenerate()
S
54 5 21
can_store_api_key()
S
54 5 21
check_dev_server_request()
S
62 5 11
init_api_key_connection()
S
58 4 16
can_delete_api_key()
S
59 4 15
logged_in_or_has_api_key()
S
63 5 10
sanitize()
S
64 4 11
woocommerce_disconnect()
S
60 3 14
can_update_settings()
S
62 3 12
get_settings()
S
62 3 11
dismiss_notification()
S
58 2 16
maybe_allow()
S
70 3 6
sync_campaign()
S
60 2 14
has_valid_api_key()
S
61 2 13
get_am_plugins_list()
S
62 2 11
disconnect()
S
63 2 11
is_dev_server_request()
S
76 2 3
get_notifications()
S
66 2 8
refresh_campaigns()
S
65 2 9
support_info()
S
66 2 8
set_allow_headers()
S
70 1 6
validate_api_key()
S
76 1 4
output_info()
S
79 1 3
__construct()
S
77 1 4