ES_Campaign_Controller D

Total Complexity 248
Dependencies 10
Dependents 5
Total lines 1,261
Lines of code 937
Logical lines of code 581
Comment lines 117
Methods 37
Properties 1

Methods 37

Method Rating Maintainability Complexity Lines of code
get_matching_post_ids()
C
32 28 99
get_post_block_matching_post_ids()
C
32 27 94
replace_post_notification_merge_tags_with_sample_post()
B
35 20 80
add_post_notification_data()
B
43 17 44
add_campaign_body_data()
A
38 14 66
save()
A
45 13 39
generateReport()
A
43 11 47
schedule()
A
41 10 58
prepare_campaign_data()
A
50 12 26
send_test_email()
A
44 9 43
get_matching_recipients_count()
A
48 7 35
save_campaign()
S
52 7 24
is_open_tracking_enabled()
S
53 7 23
get_email_headers()
S
52 7 22
add_broadcast_scheduler_data()
S
55 6 18
save_and_schedule()
S
57 5 17
add_campaign_to_queue()
S
49 4 31
save_and_preview()
S
58 5 15
get_spam_score()
S
50 4 28
replace_post_digest_merge_tags_with_sample_posts()
S
57 4 17
maybe_send_mailing_queue()
S
58 4 15
get_posts_block_preview()
S
63 4 10
add_tracking_fields_data()
S
66 3 8
is_using_new_category_format()
S
66 3 8
queue_emails()
S
64 2 10
toggle_status()
S
65 2 9
get_instance()
S
71 2 6
register_hooks()
S
64 2 9
get_post_ids()
S
81 1 3
get_posts_by_post_type()
S
73 1 5
__construct()
S
82 1 3
add_to_new_category_format_campaign_ids()
S
72 1 5
sort_by_date_ascending()
S
79 1 3
sort_by_date_descending()
S
79 1 3
is_post_campaign()
S
78 1 3
init()
S
82 1 3
replace_posts_blocks()
S
66 1 8