Code Analysis: Connect SendGrid for Emails 1.11.10

Function Rating Maintainability Complexity Lines of code
wp_mail()
D
11
88 299
Sendgrid_Settings::show_settings_page()
D
19
53 205
Sendgrid_Settings::save_mc_settings()
D
24
48 159
Sendgrid_Settings::save_general_settings()
C
34 24 95
Sendgrid_Tools::valid_emails_in_headers()
B
39 19 63
SendGrid_NLVX_Widget::process_subscription()
A
45 14 39
SendGrid_NLVX_Widget::widget()
A
44 11 44
Sendgrid_Translator::set_attachments_v3()
A
49 11 30
Sendgrid_Settings::do_post()
A
54 11 21
Sendgrid_NLVX::add_recipient()
A
47 10 35
Sendgrid_OptIn_API_Endpoint::send_confirmation_email()
A
47 10 32
Sendgrid_Translator::get_smtp_filter_settings()
A
50 10 31
Sendgrid_OptIn_API_Endpoint::handle_request()
A
46 9 44
Sendgrid_Statistics::get_ajax_statistics()
A
50 10 27
SendGrid_NLVX_Widget::display_form()
A
40 7 65
Sendgrid_Translator::set_ganalytics_v3()
A
49 9 31
Sendgrid_Tools::check_api_key_scopes()
A
50 9 29
Sendgrid_Tools::check_username_password()
A
49 8 30
SendGrid_NLVX_Widget::form()
A
44 6 47
Sendgrid_Tools::get_multisite_pagination()
S
49 7 30
Sendgrid_Statistics::set_up_menu()
S
58 8 14
Sendgrid_Translator::set_smtpapi_tos_v3()
S
50 7 28
SGVirtualPage::__construct()
S
58 8 13
Sendgrid_Settings::set_up_menu()
S
60 8 11
Sendgrid_Translator::set_subscription_tracking_v3()
S
52 7 25
Sendgrid_SMTP::map_to_swift()
S
51 6 25
Sendgrid_API::send()
S
52 6 24
Sendgrid_Translator::set_tos_v3()
S
52 6 23
Sendgrid_Settings::save_subsite_settings()
S
52 6 23
Sendgrid_Tools::get_form_action()
S
52 6 23
Sendgrid_NLVX::add_recipient_to_list()
S
53 6 22
Sendgrid_Tools::check_api_key()
S
54 6 22
Sendgrid_Settings::send_test_email()
S
48 5 37
Sendgrid_Translator::to_api_v3()
S
48 5 35
Sendgrid_Translator::set_spam_check_v3()
S
54 6 20
Sendgrid_Translator::set_email_footer_v3()
S
54 6 20
Sendgrid_Tools::get_all_unsubscribe_groups()
S
58 6 15
Sendgrid_Tools::check_template()
S
58 6 15
Sendgrid_NLVX::get_all_lists()
S
53 5 23
SendGrid_BuddyPress_Mailer::bp_email()
S
53 5 23
Sendgrid_Translator::set_open_tracking_v3()
S
56 5 17
SendGrid_NLVX_Widget::update()
S
64 6 9
register_shortcode_last_name()
S
60 5 14
register_shortcode_email()
S
60 5 14
register_shortcode_first_name()
S
60 5 14
Sendgrid_Settings::send_contact_upload_test()
S
51 4 29
Sendgrid_Tools::get_mc_signup_confirmation_page_url()
S
60 5 13
SendGridV3\Mail::__construct()
S
62 5 11
Sendgrid_Tools::set_transient_sendgrid()
S
61 5 11
Sendgrid_Tools::get_transient_sendgrid()
S
62 5 11
Sendgrid_WP::smtp_instance()
S
56 4 18
Sendgrid_Tools::set_mc_button_padding()
S
57 4 16
Sendgrid_Tools::set_mc_input_padding()
S
57 4 16
Sendgrid_Tools::get_sendgrid_option()
S
67 5 7
Sendgrid_Tools::update_sendgrid_option()
S
66 5 7
Sendgrid_Tools::delete_sendgrid_option()
S
67 5 7
Sendgrid_Tools::get_mc_button_padding_by_position()
S
59 4 15
Sendgrid_Tools::check_api_key_stats()
S
58 4 15
Sendgrid_Tools::get_mc_input_padding_by_position()
S
60 4 14
Sendgrid_Translator::set_ccs_v3()
S
60 4 13
Sendgrid_Translator::set_bccs_v3()
S
60 4 13
Sendgrid_NLVX::get_auth_header_value()
S
61 4 13
Sendgrid_Translator::set_send_each_at_v3()
S
62 4 12
Sendgrid_Statistics::add_dashboard_widget()
S
62 4 11
Sendgrid_Statistics::add_headers()
S
55 3 18
Sendgrid_Tools::do_request()
S
57 3 16
Sendgrid_Translator::set_substitutions_v3()
S
64 4 10
Sendgrid_Translator::set_custom_args_v3()
S
64 4 10
Sendgrid_Translator::set_bcc_setting_v3()
S
58 3 15
Sendgrid_Translator::set_click_tracking_v3()
S
58 3 15
Sendgrid_Statistics::show_statistics_page()
S
64 4 9
sg_invalidate_token()
S
64 4 10
Sendgrid_Translator::set_bypass_management_v3()
S
59 3 14
Sendgrid_SMTP::send()
S
60 3 13
Sendgrid_WP::get_instance()
S
63 3 12
Sendgrid_Translator::set_asm_group_id_v3()
S
62 3 12
Sendgrid_NLVX::create_and_add_recipient_to_list()
S
63 3 11
Sendgrid_Translator::set_template_id_v3()
S
62 3 11
SGVirtualPage::virtualPage()
S
46 1 38
sg_create_subscribe_general_error_page()
S
63 3 10
sg_create_subscribe_invalid_token_error_page()
S
63 3 10
Sendgrid_Translator::is_valid_string()
S
68 3 7
Sendgrid_Translator::set_from_v3()
S
65 3 8
Sendgrid_Translator::set_subject_v3()
S
73 3 5
Sendgrid_Translator::set_text_content_v3()
S
69 3 6
Sendgrid_Translator::set_html_content_v3()
S
69 3 6
Sendgrid_Statistics::add_statistics_menu()
S
66 3 8
Sendgrid_Tools::get_send_method()
S
66 3 9
Sendgrid_Translator::set_reply_to_v3()
S
71 3 5
Sendgrid_Translator::set_headers_v3()
S
67 3 8
Sendgrid_Translator::set_categories_v3()
S
67 3 8
sg_create_subscribe_missing_token_error_page()
S
63 3 10
Sendgrid_Translator::set_sections_v3()
S
67 3 8
Sendgrid_Statistics::add_network_statistics_menu()
S
65 3 8
Sendgrid_Translator::set_send_at_v3()
S
65 3 10
Sendgrid_Tools::get_categories_array()
S
67 3 7
Sendgrid_Tools::is_valid_email()
S
70 3 6
sg_create_subscribe_success_page()
S
63 3 10
SendGridV3\Mail::jsonSerialize()
S
53 1 23
Sendgrid_Tools::get_api_key()
S
69 2 7
Sendgrid_Tools::get_mc_first_name_label()
S
69 2 7
Sendgrid_Tools::get_mc_api_key()
S
69 2 7
Sendgrid_Tools::get_mc_last_name_label()
S
69 2 7
Sendgrid_Tools::get_mc_subscribe_label()
S
69 2 7
Sendgrid_Tools::get_mc_list_id()
S
69 2 7
Sendgrid_Tools::get_mc_opt_use_transactional()
S
69 2 7
Sendgrid_Tools::get_mc_opt_req_fname_lname()
S
69 2 7
Sendgrid_Tools::get_mc_opt_incl_fname_lname()
S
69 2 7
Sendgrid_Tools::get_mc_signup_email_subject()
S
69 2 7
Sendgrid_Tools::get_mc_signup_email_content()
S
67 2 8
Sendgrid_Tools::get_mc_signup_email_content_text()
S
67 2 8
Sendgrid_Tools::get_mc_signup_confirmation_page()
S
69 2 7
Sendgrid_Tools::get_categories()
S
69 2 7
Sendgrid_Tools::get_request_timeout()
S
70 2 7
Sendgrid_BuddyPress_Integration::register()
S
69 2 6
Sendgrid_API::__construct()
S
65 2 10
Sendgrid_BuddyPress_Integration::buddypress_email_delivery_class()
S
70 2 6
Sendgrid_SMTP::__construct()
S
67 2 8
Sendgrid_Filters::__construct()
S
68 2 7
Sendgrid_SMTP::get_swift_instance()
S
63 2 10
Sendgrid_Tools::get_port()
S
69 2 7
Sendgrid_Tools::get_from_name()
S
69 2 7
Sendgrid_Tools::get_from_email()
S
69 2 7
Sendgrid_OptIn_API_Endpoint::sniff_requests()
S
68 2 8
Sendgrid_Translator::set_ip_pool_v3()
S
71 2 6
Sendgrid_Tools::get_reply_to()
S
69 2 7
Sendgrid_Tools::get_stats_categories()
S
69 2 7
Sendgrid_Tools::get_template()
S
69 2 7
Sendgrid_Tools::get_content_type()
S
69 2 7
Sendgrid_Tools::get_unsubscribe_group()
S
69 2 7
Sendgrid_Settings::add_headers()
S
64 2 9
Sendgrid_Tools::get_mc_email_label()
S
69 2 7
SendGridV3\Personalization::jsonSerialize()
S
60 1 14
SendGridV3\Ganalytics::jsonSerialize()
S
62 1 12
SendGridV3\Attachment::jsonSerialize()
S
63 1 11
SendGridV3\MailSettings::jsonSerialize()
S
63 1 11
SendGridV3\Personalization::getSubstitutions()
S
82 1 3
Sendgrid_Tools::set_content_type()
S
79 1 3
SendGridV3\MailSettings::setFooter()
S
81 1 3
SendGridV3\Personalization::addHeader()
S
80 1 3
SendGridV3\Content::getValue()
S
82 1 3
SendGridV3\Mail::setMailSettings()
S
81 1 3
Sendgrid_Tools::set_mc_list_id()
S
79 1 3
SendGrid_NLVX_Widget::__construct()
S
68 1 9
Sendgrid_Tools::set_mc_opt_use_transactional()
S
79 1 3
Sendgrid_WP::__construct()
S
98 1 1
Sendgrid_Tools::set_mc_opt_req_fname_lname()
S
79 1 3
Sendgrid_Statistics::__construct()
S
79 1 3
Sendgrid_Tools::set_mc_opt_incl_fname_lname()
S
79 1 3
SendGridV3\Mail::setTemplateId()
S
81 1 3
Sendgrid_SMTP::set_port()
S
77 1 4
Sendgrid_Tools::set_mc_signup_email_subject()
S
79 1 3
Sendgrid_Tools::set_mc_signup_email_content()
S
74 1 4
SendGridV3\Mail::setIpPoolName()
S
81 1 3
Sendgrid_Tools::set_mc_signup_email_content_text()
S
74 1 4
SendGridV3\Mail::getIpPoolName()
S
82 1 3
Sendgrid_Tools::set_mc_signup_confirmation_page()
S
79 1 3
SendGridV3\Personalization::getCcs()
S
82 1 3
Sendgrid_Tools::set_mc_auth_valid()
S
79 1 3
SendGridV3\Personalization::addBcc()
S
80 1 3
Sendgrid_Statistics::show_dashboard_widget()
S
79 1 3
SendGridV3\Attachment::getDisposition()
S
82 1 3
SendGridV3\Mail::addCustomArg()
S
80 1 3
SendGridV3\Email::getName()
S
82 1 3
Sendgrid_OptIn_API_Endpoint::__construct()
S
74 1 4
SendGridV3\Mail::getTemplateId()
S
82 1 3
Sendgrid_Tools::set_port()
S
79 1 3
SendGridV3\Personalization::getTos()
S
82 1 3
Sendgrid_Settings::__construct()
S
75 1 4
SendGridV3\Mail::getMailSettings()
S
82 1 3
Sendgrid_Tools::set_from_name()
S
79 1 3
SendGridV3\Content::jsonSerialize()
S
68 1 8
SendGridV3\ASM::setGroupId()
S
81 1 3
SendGridV3\ASM::getGroupId()
S
82 1 3
Sendgrid_Tools::set_from_email()
S
79 1 3
SendGridV3\Content::setType()
S
81 1 3
SendGridV3\Personalization::addTo()
S
80 1 3
SendGridV3\Personalization::getCustomArgs()
S
82 1 3
Sendgrid_Tools::set_reply_to()
S
79 1 3
SendGridV3\Mail::setSendAt()
S
81 1 3
SendGridV3\Mail::getPersonalizations()
S
82 1 3
SendGridV3\Mail::addContent()
S
80 1 3
Sendgrid_Tools::set_categories()
S
79 1 3
SendGridV3\Mail::getCustomArgs()
S
82 1 3
Sendgrid_Settings::add_settings_menu()
S
74 1 4
SendGridV3\ReplyTo::__construct()
S
81 1 3
SendGridV3\ReplyTo::setEmail()
S
81 1 3
SendGridV3\ReplyTo::getEmail()
S
82 1 3
SendGridV3\ReplyTo::jsonSerialize()
S
71 1 7
SendGridV3\ClickTracking::setEnable()
S
81 1 3
SendGridV3\ClickTracking::getEnable()
S
82 1 3
SendGridV3\ClickTracking::setEnableText()
S
81 1 3
SendGridV3\ClickTracking::getEnableText()
S
82 1 3
SendGridV3\ClickTracking::jsonSerialize()
S
68 1 8
SendGridV3\OpenTracking::setEnable()
S
81 1 3
SendGridV3\OpenTracking::getEnable()
S
82 1 3
SendGridV3\OpenTracking::setSubstitutionTag()
S
81 1 3
SendGridV3\OpenTracking::getSubstitutionTag()
S
82 1 3
SendGridV3\OpenTracking::jsonSerialize()
S
68 1 8
SendGridV3\SubscriptionTracking::setEnable()
S
81 1 3
SendGridV3\SubscriptionTracking::getEnable()
S
82 1 3
SendGridV3\SubscriptionTracking::setText()
S
81 1 3
SendGridV3\SubscriptionTracking::getText()
S
82 1 3
SendGridV3\SubscriptionTracking::setHtml()
S
81 1 3
SendGridV3\SubscriptionTracking::getHtml()
S
82 1 3
SendGridV3\SubscriptionTracking::setSubstitutionTag()
S
81 1 3
SendGridV3\SubscriptionTracking::getSubstitutionTag()
S
82 1 3
SendGridV3\SubscriptionTracking::jsonSerialize()
S
65 1 10
SendGridV3\Ganalytics::setEnable()
S
81 1 3
SendGridV3\Ganalytics::getEnable()
S
82 1 3
SendGridV3\Ganalytics::setCampaignSource()
S
81 1 3
SendGridV3\Ganalytics::getCampaignSource()
S
82 1 3
SendGridV3\Ganalytics::setCampaignTerm()
S
81 1 3
Sendgrid_WP::api_instance()
S
79 1 3
SendGridV3\Mail::addAttachment()
S
80 1 3
SendGridV3\Mail::getSections()
S
82 1 3
SendGridV3\MailSettings::getFooter()
S
82 1 3
SendGridV3\Footer::getEnable()
S
82 1 3
SendGridV3\SandBoxMode::setEnable()
S
81 1 3
SendGridV3\Mail::getSubject()
S
82 1 3
SendGridV3\Ganalytics::setCampaignMedium()
S
81 1 3
Sendgrid_Tools::get_mc_auth_valid()
S
80 1 3
SendGridV3\BccSettings::jsonSerialize()
S
68 1 8
Sendgrid_Tools::set_mc_email_label()
S
79 1 3
SendGridV3\Email::__construct()
S
77 1 4
SendGridV3\Mail::getCategories()
S
82 1 3
SendGridV3\Email::getEmail()
S
82 1 3
SendGridV3\BypassListManagement::getEnable()
S
82 1 3
SendGridV3\BypassListManagement::setEnable()
S
81 1 3
SendGridV3\Mail::setReplyTo()
S
81 1 3
SendGridV3\TrackingSettings::setSubscriptionTracking()
S
81 1 3
Sendgrid_Tools::set_mc_first_name_label()
S
79 1 3
SendGridV3\BccSettings::setEnable()
S
81 1 3
SendGridV3\BccSettings::getEnable()
S
82 1 3
SendGridV3\TrackingSettings::setGanalytics()
S
81 1 3
SendGridV3\Personalization::getSendAt()
S
82 1 3
SendGridV3\TrackingSettings::getGanalytics()
S
82 1 3
Sendgrid_Tools::get_mc_input_padding()
S
80 1 3
SendGridV3\SpamCheck::setThreshold()
S
81 1 3
SendGridV3\ASM::jsonSerialize()
S
68 1 8
SendGridV3\SpamCheck::getThreshold()
S
82 1 3
SendGridV3\Mail::addPersonalization()
S
80 1 3
SendGridV3\Mail::setFrom()
S
81 1 3
SendGridV3\SpamCheck::getEnable()
S
82 1 3
SendGridV3\Ganalytics::getCampaignContent()
S
82 1 3
Sendgrid_Tools::set_mc_last_name_label()
S
79 1 3
SendGridV3\Mail::setASM()
S
81 1 3
SendGridV3\Content::__construct()
S
77 1 4
SendGridV3\Email::setEmail()
S
81 1 3
SendGridV3\Personalization::addCustomArg()
S
80 1 3
SendGridV3\Ganalytics::setCampaignName()
S
81 1 3
SendGridV3\TrackingSettings::getSubscriptionTracking()
S
82 1 3
SendGridV3\Ganalytics::setCampaignContent()
S
81 1 3
Sendgrid_Tools::set_mc_api_key()
S
79 1 3
SendGridV3\MailSettings::setBypassListManagement()
S
81 1 3
SendGrid_BuddyPress_Mailer::set_html_content_type()
S
83 1 3
SendGridV3\SandBoxMode::getEnable()
S
82 1 3
Sendgrid_OptIn_API_Endpoint::add_query_vars()
S
74 1 5
SendGridV3\MailSettings::getBccSettings()
S
82 1 3
SendGridV3\Content::getType()
S
82 1 3
SendGridV3\ASM::getGroupsToDisplay()
S
82 1 3
Sendgrid_Tools::get_asm_permission()
S
80 1 3
SendGridV3\TrackingSettings::getClickTracking()
S
82 1 3
SendGridV3\Mail::getTrackingSettings()
S
82 1 3
SendGridV3\Mail::addSection()
S
80 1 3
SendGridV3\SandBoxMode::jsonSerialize()
S
71 1 7
SendGridV3\SpamCheck::setPostToUrl()
S
81 1 3
SendGridV3\Attachment::setDisposition()
S
81 1 3
SendGridV3\Ganalytics::getCampaignMedium()
S
82 1 3
Sendgrid_BuddyPress_Integration::buddypress_email_use_wp_mail()
S
82 1 3
SendGridV3\Footer::setText()
S
81 1 3
SendGridV3\BccSettings::setEmail()
S
81 1 3
SendGridV3\TrackingSettings::setOpenTracking()
S
81 1 3
SendGridV3\Personalization::addCc()
S
80 1 3
SendGridV3\Ganalytics::getCampaignTerm()
S
82 1 3
SendGridV3\Footer::setHtml()
S
81 1 3
SendGridV3\SpamCheck::jsonSerialize()
S
66 1 9
SendGridV3\BccSettings::getEmail()
S
82 1 3
SendGridV3\SpamCheck::setEnable()
S
81 1 3
SendGridV3\Ganalytics::getCampaignName()
S
82 1 3
SendGridV3\TrackingSettings::getOpenTracking()
S
82 1 3
SendGridV3\Email::setName()
S
81 1 3
SendGridV3\Mail::addCategory()
S
80 1 3
SendGridV3\Mail::getHeaders()
S
82 1 3
Sendgrid_OptIn_API_Endpoint::generate_email_token()
S
79 1 3
SendGridV3\Mail::getSendAt()
S
82 1 3
SendGridV3\Personalization::setSubject()
S
81 1 3
SendGridV3\Mail::addHeader()
S
80 1 3
SendGridV3\Attachment::getType()
S
82 1 3
unregister_sendgrid_widgets()
S
82 1 3
Sendgrid_BuddyPress_Integration::__construct()
S
91 1 2
SendGridV3\Mail::getFrom()
S
82 1 3
SendGridV3\TrackingSettings::jsonSerialize()
S
65 1 10
set_html_content_type()
S
83 1 3
SendGridV3\Attachment::getContentID()
S
82 1 3
SendGridV3\Mail::getASM()
S
82 1 3
SendGridV3\TrackingSettings::setClickTracking()
S
81 1 3
SendGridV3\MailSettings::setSandboxMode()
S
81 1 3
SendGridV3\MailSettings::getSandboxMode()
S
82 1 3
Sendgrid_Tools::set_mc_subscribe_label()
S
79 1 3
SendGridV3\Footer::getText()
S
82 1 3
SendGridV3\MailSettings::setBccSettings()
S
81 1 3
Sendgrid_Tools::check_api_key_mc()
S
74 1 4
SendGridV3\Footer::jsonSerialize()
S
66 1 9
SendGridV3\MailSettings::setSpamCheck()
S
81 1 3
SendGridV3\MailSettings::getBypassListManagement()
S
82 1 3
SendGridV3\Attachment::setFilename()
S
81 1 3
SendGridV3\Mail::getReplyTo()
S
82 1 3
SendGridV3\Footer::getHtml()
S
82 1 3
Sendgrid_Tools::remove_all_tag_urls()
S
78 1 3
SendGridV3\Attachment::getFilename()
S
82 1 3
SendGridV3\Personalization::getSubject()
S
82 1 3
SendGridV3\Email::jsonSerialize()
S
68 1 8
SendGridV3\Attachment::setType()
S
81 1 3
SendGridV3\Mail::setSubject()
S
81 1 3
Sendgrid_Tools::set_stats_categories()
S
79 1 3
SendGridV3\SpamCheck::getPostToUrl()
S
82 1 3
SendGridV3\Footer::setEnable()
S
81 1 3
SendGridV3\Mail::getAttachments()
S
82 1 3
Sendgrid_Tools::set_unsubscribe_group()
S
79 1 3
Sendgrid_Tools::set_template()
S
79 1 3
SendGridV3\Mail::setBatchId()
S
81 1 3
SendGridV3\Attachment::getContent()
S
82 1 3
SendGridV3\ASM::setGroupsToDisplay()
S
81 1 3
register_sendgrid_widgets()
S
82 1 3
SendGridV3\Personalization::setSendAt()
S
81 1 3
wp_mail_already_declared_notice()
S
78 1 3
SendGridV3\Mail::setTrackingSettings()
S
81 1 3
php_version_error()
S
78 1 3
SendGridV3\Mail::getBatchId()
S
82 1 3
Sendgrid_Settings::add_settings_link()
S
73 1 5
SendGridV3\Personalization::addSubstitution()
S
80 1 3
sg_register_shortcodes()
S
73 1 5
SendGridV3\Content::setValue()
S
81 1 3
Sendgrid_Tools::set_api_key()
S
79 1 3
Sendgrid_Tools::get_mc_button_padding()
S
80 1 3
Sendgrid_Tools::set_asm_permission()
S
79 1 3
Sendgrid_Tools::set_send_method()
S
79 1 3
SendGridV3\Personalization::getBccs()
S
82 1 3
Sendgrid_Settings::add_network_settings_menu()
S
74 1 4
SendGridV3\Personalization::getHeaders()
S
82 1 3
SendGridV3\MailSettings::getSpamCheck()
S
82 1 3
SendGridV3\BypassListManagement::jsonSerialize()
S
71 1 7
SendGridV3\Mail::getContents()
S
82 1 3
Sendgrid_Settings::show_contextual_help()
S
68 1 7
SendGridV3\Attachment::setContentID()
S
81 1 3
SendGridV3\Attachment::setContent()
S
81 1 3