Newspack_Newsletters_Subscription D

Total Complexity 163
Dependencies 11
Dependents 5
Total lines 1,223
Lines of code 730
Logical lines of code 385
Comment lines 377
Methods 39
Properties 0

Methods 39

Method Rating Maintainability Complexity Lines of code
endpoint_content()
A
39 8 78
add_contact()
A
43 10 46
process_subscription_intents()
A
44 10 45
process_email_verification_request()
A
40 9 60
get_lists()
A
46 10 40
add_contact_to_provider()
A
46 10 38
process_subscription_update()
A
52 9 22
process_email_verification()
A
52 8 23
sanitize_lists()
S
57 7 15
is_email_verified()
S
54 6 21
newspack_registered_reader()
S
53 5 23
delete_user_subscription()
S
56 5 17
delete_user()
S
59 5 14
get_contact_data()
S
60 5 13
update_contact_lists()
S
54 4 19
get_lists_config()
S
58 4 15
set_email_verified()
S
59 4 14
handle_async_subscribe()
S
59 4 13
register_api_endpoints()
S
45 1 52
get_subscription_intent()
S
57 3 17
has_subscription_management()
S
64 4 10
update_lists()
S
62 3 11
add_subscription_intent()
S
57 2 18
register_subscription_intents()
S
64 3 8
remove_subscription_intent()
S
67 3 7
init()
S
54 1 20
get_contact_lists()
S
69 2 6
api_update_lists()
S
68 2 7
set_current_user_email_verified()
S
71 2 6
get_email_verification_transient_key()
S
67 2 7
flush_rewrite_rules()
S
69 2 7
add_menu_item()
S
65 2 8
set_user_email_verified()
S
70 2 6
get_user_subscription_intent_error()
S
78 1 3
api_get_lists()
S
79 1 3
api_get_lists_config()
S
79 1 3
enqueue_scripts()
S
67 1 8
add_query_var()
S
76 1 4
api_permission_callback()
S
80 1 3