Newspack_Newsletters_Subscription D

Total Complexity 140
Dependencies 10
Dependents 3
Total lines 1,037
Lines of code 649
Logical lines of code 325
Comment lines 294
Methods 37
Properties 0

Methods 37

Method Rating Maintainability Complexity Lines of code
process_subscription_intents()
A
43 11 49
endpoint_content()
A
39 8 78
process_email_verification_request()
A
40 9 60
get_lists()
A
46 10 40
process_subscription_update()
A
50 10 26
process_email_verification()
A
52 8 23
is_newsletter_subscriber()
S
54 7 23
sanitize_lists()
S
57 7 15
is_email_verified()
S
54 6 21
newspack_registered_reader()
S
53 5 24
get_contact_data()
S
59 5 13
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
add_subscription_intent()
S
49 2 31
has_subscription_management()
S
64 4 10
update_lists()
S
62 3 11
remove_subscription_intent()
S
67 3 7
register_subscription_intents()
S
64 3 8
init()
S
55 1 19
set_current_user_email_verified()
S
71 2 6
add_menu_item()
S
65 2 8
flush_rewrite_rules()
S
69 2 7
api_update_lists()
S
68 2 7
get_email_verification_transient_key()
S
67 2 7
set_user_email_verified()
S
70 2 6
get_contact_lists()
S
69 2 6
update_contact_lists()
S
74 1 4
get_user_subscription_intent_error()
S
78 1 3
api_get_lists()
S
79 1 3
enqueue_scripts()
S
67 1 8
add_query_var()
S
76 1 4
add_contact()
S
74 1 4
api_get_lists_config()
S
79 1 3
delete_user_subscription()
S
75 1 4