Code Analysis: SMTP2GO - Email Made Easy 1.2.4

Function Rating Maintainability Complexity Lines of code
SMTP2GO\WpmailCompat::processHeaders()
B
35 22 82
SMTP2GO\WordpressPluginAdmin::sendTestEmail()
B
37 20 68
SMTP2GO\ApiMessage::buildCustomHeaders()
A
46 14 40
SMTP2GO\Api\ApiMessage::buildCustomHeaders()
A
46 14 40
SMTP2GO\MimetypeHelper::getMimeType()
A
33 3 111
SMTP2GO\WordpressPluginAdmin::outputTextFieldHtml()
S
50 7 29
SMTP2GO\WordpressPluginAdmin::outputCheckboxHtml()
S
53 6 24
SMTP2GO\SMTP2GOMailer::mailSend()
S
49 5 31
SMTP2GO\WordpressPluginAdmin::registerSettings()
S
39 1 86
SMTP2GO\ApiMessage::buildRequestPayload()
S
51 5 26
SMTP2GO\Api\ApiMessage::buildRequestPayload()
S
51 5 26
SMTP2GO\Senders\WordpressHttpRemotePostSender::send()
S
53 5 22
SMTP2GO\ApiRequest::sendViaHttpApi()
S
53 5 22
get_option()
S
59 5 16
SMTP2GO\ApiMessage::buildCC()
S
60 5 14
SMTP2GO\Api\ApiMessage::buildCC()
S
60 5 14
SMTP2GO\Api\ApiMessage::buildBCC()
S
60 5 14
SMTP2GO\ApiMessage::buildBCC()
S
60 5 14
SMTP2GO\WordpressPluginAdmin::validateApiKey()
S
59 5 13
SMTP2GO\WordpressPluginAdmin::cleanCustomHeaderOptions()
S
61 5 12
SMTP2GO\WordpressPluginAdmin::outputCustomHeadersHtml()
S
46 3 41
SMTP2GO\Api\ApiMessage::buildAttachments()
S
52 4 26
SMTP2GOClassLoader()
S
54 4 20
SMTP2GO\SMTP2GOMailer::processCustomHeaders()
S
63 5 10
SMTP2GO\ApiMessage::buildRecipients()
S
61 4 13
SMTP2GO\WordpressPlugin::initMailer()
S
61 4 13
SMTP2GO\Api\ApiMessage::buildRecipients()
S
61 4 13
SMTP2GO\Senders\CurlSender::send()
S
54 3 21
SMTP2GO\ApiMessage::buildAttachments()
S
56 3 19
apply_filters()
S
64 3 11
SMTP2GO\Api\ApiRequest::send()
S
61 3 11
SMTP2GO\WordpressPluginAdmin::outputApiKeyHtml()
S
52 2 26
Tests\Feature\SMTP2GOMailerTest::setupMailer()
S
50 1 32
SMTP2GO_tab_active()
S
66 3 8
SMTP2GO\WordpressPluginAdmin::validateSenderName()
S
67 3 7
SMTP2GO\WordpressPluginAdmin::spamRating()
S
63 3 10
SMTP2GO\WordpressPluginAdmin::bounceRating()
S
63 3 10
SMTP2GO\WordpressPluginLoader::run()
S
66 3 8
SMTP2GO\ApiMessage::setRecipients()
S
65 3 10
SMTP2GO\SMTP2GOMailer::processReplyTos()
S
63 3 10
SMTP2GO\Api\ApiMessage::setRecipients()
S
65 3 10
SMTP2GO\ApiRequest::send()
S
67 3 7
SMTP2GO\WordpressPlugin::__construct()
S
62 2 12
SMTP2GO\Api\ApiMessage::buildInlines()
S
61 2 12
SMTP2GO\ApiMessage::buildInlines()
S
61 2 12
SMTP2GO\ApiRequest::__construct()
S
70 2 7
SMTP2GO\WordpressPluginAdmin::addSettingsLink()
S
67 2 7
SMTP2GO\WordpressPluginDeactivator::uninstall()
S
66 2 9
SMTP2GO\ApiMessage::rfc822()
S
71 2 6
SMTP2GO\WpmailCompat::processAttachments()
S
70 2 6
SMTP2GO\ApiMessage::addRecipient()
S
66 2 8
SMTP2GO\Api\ApiMessage::rfc822()
S
71 2 6
SMTP2GO\Api\ApiMessage::setCustomHeaders()
S
71 2 6
SMTP2GO\Api\ApiMessage::setSender()
S
64 2 9
smtp2go_delete_options()
S
66 2 9
get_bloginfo()
S
70 2 7
SMTP2GO_dd()
S
66 2 8
SMTP2GO\Api\ApiMessage::addRecipient()
S
66 2 8
SMTP2GO\ApiMessage::setContentType()
S
68 2 7
SMTP2GO\Api\ApiMessage::setContentType()
S
68 2 7
SMTP2GO\Api\ApiRequest::__construct()
S
70 2 7
SMTP2GO\ApiMessage::setSender()
S
64 2 9
SMTP2GO\WordpressPluginAdmin::renderStatsPage()
S
63 2 9
Tests\Unit\ApiMessageTest::testbuildRequestPayloadWithHTMLMessage()
S
61 1 12
Tests\Unit\ApiMessageTest::testbuildRequestPayloadWithTextMessage()
S
62 1 11
Tests\Feature\SMTP2GOMailerTest::testSendWithWpMail()
S
69 1 6
SMTP2GO\WordpressPluginAdmin::sectionDivider()
S
82 1 3
wp_remote_post()
S
66 1 8
SMTP2GO\Api\ApiSummary::buildRequestPayload()
S
82 1 3
Tests\Feature\ApiSendTest::testSendPlainTextEmailThroughApiWithValidPayloadReturnsTrue()
S
65 1 8
SMTP2GO\ApiMessage::getSender()
S
82 1 3
do_action()
S
85 1 3
SMTP2GO\Senders\MockSender::send()
S
82 1 3
SMTP2GO\Senders\MockSender::getFailures()
S
82 1 3
SMTP2GO\ApiMessage::setEndpoint()
S
77 1 4
SMTP2GO\ApiMessage::getAttachments()
S
82 1 3
SMTP2GO\WordpressPlugin::getLoader()
S
82 1 3
SMTP2GO\WordpressPlugin::getVersion()
S
82 1 3
SMTP2GO\ApiMessage::setAttachments()
S
77 1 4
SMTP2GO\ApiMessage::setCustomHeaders()
S
77 1 4
SMTP2GO\ApiMessage::getInlines()
S
82 1 3
SMTP2GO\ApiMessage::setInlines()
S
77 1 4
Tests\Unit\ApiMessageTest::testBuildCustomHeaders()
S
70 1 6
SMTP2GO\WordpressPluginAdmin::generalSection()
S
83 1 3
SMTP2GO\ApiMessage::getContentType()
S
82 1 3
SMTP2GO\WordpressPluginAdmin::customHeadersSection()
S
74 1 5
SMTP2GO\ApiMessage::initFromOptions()
S
75 1 4
SMTP2GO\WordpressPluginLoader::addFilter()
S
77 1 3
SMTP2GO\ApiMessage::__construct()
S
73 1 5
SMTP2GO\WordpressPluginAdmin::addMenuPage()
S
66 1 10
Tests\Feature\SMTP2GOMailerTest::testCreateInstance()
S
73 1 5
SMTP2GO\WordpressPluginAdmin::renderValidationPage()
S
67 1 7
SMTP2GO\WordpressPluginAdmin::renderManagementPage()
S
79 1 3
SMTP2GO\WordpressPluginAdmin::enqueueStyles()
S
77 1 3
SMTP2GO\ApiMessage::getSubject()
S
82 1 3
SMTP2GO\ApiMessage::setSubject()
S
77 1 4
Tests\Unit\SMTP2GOMailerTest::testMultipleAddressesAreAddedWhenSetAsCommaDelimitedString()
S
69 1 6
SMTP2GO\ApiMessage::processWpHeaders()
S
76 1 4
Tests\Unit\ApiMessageTest::__construct()
S
81 1 3
SMTP2GO\ApiRequest::logError()
S
76 1 4
Tests\Unit\ApiMessageTest::createTestInstance()
S
67 1 7
SMTP2GO\WordpressPluginDeactivator::deactivate()
S
89 1 2
SMTP2GO\ApiRequest::getLastResponse()
S
82 1 3
SMTP2GO\WordpressPluginLoader::__construct()
S
77 1 4
SMTP2GO\WordpressPluginLoader::addAction()
S
77 1 3
SMTP2GO\ApiRequest::getFailures()
S
82 1 3
SMTP2GO\ApiMessage::setMessage()
S
77 1 4
SMTP2GO\ApiSummary::getEndpoint()
S
82 1 3
SMTP2GO\WordpressPlugini18n::loadPluginTextdomain()
S
69 1 7
SMTP2GO\ApiSummary::buildRequestPayload()
S
82 1 3
Tests\Unit\SMTP2GOMailerTest::testMultipleAddressesAreAddedWhenSetAsArray()
S
69 1 6
SMTP2GO\Api\ApiDomain::getEndpoint()
S
82 1 3
SMTP2GO\Api\ApiDomain::buildRequestPayload()
S
72 1 6
SMTP2GO\Api\ApiDomain::setEndpoint()
S
81 1 3
SMTP2GO\Api\ApiDomain::setRequestPayload()
S
81 1 3
SMTP2GO\Api\ApiDomain::addSenderDomain()
S
67 1 8
SMTP2GO\Api\ApiDomain::removeSenderDomain()
S
69 1 7
SMTP2GO\Api\ApiDomain::view()
S
74 1 5
SMTP2GO\Api\ApiDomain::verify()
S
73 1 5
SMTP2GO\Api\ApiMessage::__construct()
S
73 1 5
SMTP2GO\Api\ApiMessage::processWpHeaders()
S
76 1 4
SMTP2GO\Api\ApiMessage::processWpAttachments()
S
76 1 4
SMTP2GO\Api\ApiMessage::initFromOptions()
S
75 1 4
SMTP2GO\WordpressPlugin::loadDependencies()
S
80 1 3
SMTP2GO\ApiMessage::setBcc()
S
77 1 4
SMTP2GO\WordpressPlugin::setLocale()
S
75 1 4
Tests\Unit\SMTP2GOMailerTest::__construct()
S
81 1 3
SMTP2GO\WordpressPlugin::defineAdminHooks()
S
64 1 9
SMTP2GO\ApiMessage::getCc()
S
82 1 3
SMTP2GO\WordpressPlugin::definePublicHooks()
S
79 1 3
Tests\Unit\SMTP2GOMailerTest::setUp()
S
80 1 3
SMTP2GO\Api\ApiMessage::getEndpoint()
S
82 1 3
SMTP2GO\Api\ApiMessage::setEndpoint()
S
77 1 4
SMTP2GO\Api\ApiMessage::getCustomHeaders()
S
82 1 3
SMTP2GO\WordpressPlugin::run()
S
82 1 3
SMTP2GO\Api\ApiMessage::getSender()
S
82 1 3
SMTP2GO\WordpressPlugin::getPluginName()
S
82 1 3
SMTP2GO\Api\ApiMessage::getSubject()
S
82 1 3
SMTP2GO\Api\ApiMessage::setSubject()
S
77 1 4
SMTP2GO\Api\ApiMessage::getMessage()
S
82 1 3
SMTP2GO\ApiMessage::setAltMessage()
S
77 1 4
SMTP2GO\Api\ApiMessage::setMessage()
S
77 1 4
SMTP2GO\ApiMessage::getAltMessage()
S
82 1 3
Tests\Feature\ApiSendTest::testSendHtmlEmailThroughApiWithValidPayloadReturnsTrue()
S
65 1 8
SMTP2GO\Api\ApiSummary::getEndpoint()
S
82 1 3
SMTP2GO\Api\ApiRequest::logError()
S
76 1 4
Tests\Unit\ApiMessageTest::testAddInline()
S
67 1 7
SMTP2GO\Senders\CurlSender::getFailures()
S
82 1 3
SMTP2GO\Api\ApiMessage::setAttachments()
S
77 1 4
SMTP2GO\Senders\MockSender::getLastResponse()
S
71 1 6
SMTP2GO\Api\ApiMessage::setCc()
S
77 1 4
Tests\Feature\SMTP2GOMailerTest::testSendWithCurlSender()
S
70 1 6
SMTP2GO\Api\ApiMessage::setInlines()
S
77 1 4
SMTP2GO\WordpressPluginAdmin::__construct()
S
77 1 4
SMTP2GO\ApiMessage::getEndpoint()
S
82 1 3
SMTP2GO\Api\ApiMessage::getParsedHeaders()
S
82 1 3
SMTP2GO\Senders\WordpressHttpRemotePostSender::setTimeout()
S
77 1 4
SMTP2GO\Api\ApiMessage::getRecipients()
S
82 1 3
SMTP2GO\ApiMessage::processWpAttachments()
S
76 1 4
SMTP2GO\WordpressPluginLoader::add()
S
64 1 10
SMTP2GO\SMTP2GOMailer::getLastRequest()
S
82 1 3
Tests\Feature\SMTP2GOMailerTest::testSendWithFakeWpRemotePostFunctionWhichActuallyJustUsesCurlSender()
S
70 1 6
Tests\Unit\ApiMessageTest::testSenderIsSetByConstructor()
S
75 1 4
SMTP2GO\Api\ApiRequest::setApiKey()
S
77 1 4
SMTP2GO\Senders\WordpressHttpRemotePostSender::getLastResponse()
S
82 1 3
SMTP2GO\WordpressPluginActivator::activate()
S
89 1 2
SMTP2GO\Api\ApiRequest::getFailures()
S
82 1 3
SMTP2GO\Api\ApiMessage::getBcc()
S
82 1 3
SMTP2GO\WordpressPluginAdmin::enqueueScripts()
S
77 1 3
Tests\Feature\ApiSendTest::testSendEmailThroughApiWithInvalidPayloadReturnsFalse()
S
70 1 6
SMTP2GO\Senders\CurlSender::logError()
S
76 1 4
SMTP2GO\ApiMessage::getParsedHeaders()
S
82 1 3
SMTP2GO\Senders\CurlSender::getLastResponse()
S
82 1 3
SMTP2GO\Api\ApiMessage::setMailerAttachments()
S
81 1 3
activate_SMTP2GO_wordpress_plugin()
S
83 1 3
Tests\Unit\ApiMessageTest::testAddAttachment()
S
67 1 7
deactivate_SMTP2GO_wordpress_plugin()
S
83 1 3
SMTP2GO\Api\ApiMessage::setBcc()
S
77 1 4
run_SMTP2GO_wordpress_plugin()
S
76 1 4
SMTP2GO\Api\ApiMessage::getAttachments()
S
82 1 3
network_home_url()
S
83 1 3
SMTP2GO\Api\ApiMessage::getContentType()
S
82 1 3
is_wp_error()
S
83 1 3
Tests\Feature\ApiSendTest::createTestMessageInstance()
S
72 1 5
wp_parse_url()
S
80 1 3
SMTP2GO\ApiMessage::getCustomHeaders()
S
82 1 3
SMTP2GO\ApiRequest::setApiKey()
S
77 1 4
SMTP2GO\Senders\WordpressHttpRemotePostSender::logError()
S
76 1 4
SMTP2GO\Senders\WordpressHttpRemotePostSender::getTimeout()
S
82 1 3
SMTP2GO\Api\ApiMessage::getAltMessage()
S
82 1 3
SMTP2GO\ApiMessage::getBcc()
S
82 1 3
SMTP2GO\Api\ApiMessage::setAltMessage()
S
77 1 4
SMTP2GO\ApiMessage::getMessage()
S
82 1 3
SMTP2GO\Senders\WordpressHttpRemotePostSender::getFailures()
S
82 1 3
SMTP2GO\ApiMessage::getRecipients()
S
82 1 3
SMTP2GO\ApiMessage::setCc()
S
77 1 4
SMTP2GO\Api\ApiMessage::getInlines()
S
82 1 3
Tests\Unit\ApiMessageTest::testMessageBodyIsSet()
S
71 1 6
Tests\Feature\SMTP2GOMailerTest::setUp()
S
80 1 3
Tests\Unit\ApiMessageTest::testSubjectIsSetByConstructor()
S
75 1 4
Tests\Feature\ApiSendTest::__construct()
S
81 1 3
do_action_ref_array()
S
85 1 3
SMTP2GO\Api\ApiMessage::getCc()
S
82 1 3
SMTP2GO\Api\ApiRequest::getLastResponse()
S
82 1 3