ES_Campaign_Controller D

Total Complexity 267
Dependencies 10
Dependents 5
Total lines 1,293
Lines of code 961
Logical lines of code 593
Comment lines 128
Methods 38
Properties 1

Methods 38

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
send_test_email()
B
43 19 42
add_post_notification_data()
B
43 17 44
add_campaign_body_data()
A
38 14 66
save()
A
45 13 40
generateReport()
A
43 11 47
schedule()
A
41 10 58
prepare_campaign_data()
A
50 12 26
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
validate_campaign_data()
S
55 5 19
save_and_schedule()
S
56 5 18
add_campaign_to_queue()
S
49 4 31
save_and_preview()
S
58 5 15
get_spam_score()
S
50 4 28
toggle_status()
S
60 5 12
replace_post_digest_merge_tags_with_sample_posts()
S
57 4 17
maybe_send_mailing_queue()
S
58 4 15
add_tracking_fields_data()
S
64 4 9
get_posts_block_preview()
S
63 4 10
is_using_new_category_format()
S
66 3 8
queue_emails()
S
64 2 10
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