Newspack_Newsletters_Mailchimp D

Total Complexity 323
Dependencies 19
Dependents 3
Total lines 2,111
Lines of code 1,443
Logical lines of code 701
Comment lines 490
Methods 51
Properties 4

Methods 51

Method Rating Maintainability Complexity Lines of code
get_send_lists()
D
31 30 107
retrieve()
B
35 20 81
audience_segments()
B
35 18 90
prepare_merge_fields()
B
33 14 116
get_sync_payload()
B
35 15 92
validate()
A
48 14 33
add_contact()
A
42 12 47
update_contact_lists()
A
44 12 44
extract_campaign_info()
A
48 12 32
get_lists()
A
45 10 42
get_contact_data()
A
46 9 41
send()
A
45 8 46
sync()
A
43 7 49
get_interest_categories()
A
53 8 23
get_status_for_payload()
A
57 8 16
get_contact_lists()
S
50 7 29
trash()
S
51 7 26
get_tag_id()
S
52 6 26
add_tag_to_contact()
S
54 6 20
remove_tag_from_contact()
S
54 6 20
get_contact_local_lists()
S
55 6 20
get_tags()
S
56 6 19
save()
S
58 6 16
get_labels()
S
52 5 23
prepare_lists_to_add_contact()
S
56 5 18
list()
S
49 4 32
update_tag()
S
56 5 17
create_tag()
S
57 5 17
folder()
S
50 4 29
set_api_credentials()
S
55 4 21
test()
S
48 3 36
delete_contact()
S
55 4 19
upsert_contact()
S
60 4 13
validate_sender_email()
S
54 3 23
get_contact_tags_ids()
S
58 3 16
get_verified_domains()
S
55 2 20
fetch_synced_campaign()
S
56 2 20
process_link()
S
65 3 9
get_merge_field_type()
S
67 3 9
get_list_merge_fields()
S
62 2 12
get_tag_by_id()
S
62 2 12
lists_metabox_notice()
S
65 2 11
get_admin_url()
S
66 2 8
get_better_error_message()
S
69 2 6
__construct()
S
62 1 10
get_conditional_tag_support()
S
66 1 9
get_folders()
S
81 1 3
api_key()
S
76 1 4
has_api_credentials()
S
80 1 3
api_credentials()
S
73 1 5
get_usage_report()
S
81 1 3