Code Analysis: Gmail SMTP 1.2.3.8

Function Rating Maintainability Complexity Lines of code
gmail_smtp_pre_wp_mail()
D
15
65 258
GMAIL_SMTP::general_settings()
D
27
26 171
PHPMailerOAuth::smtpConnect()
C
33 28 86
Google_Service_Resource::call()
C
32 21 116
Google_Utils_UriTemplate::combine()
B
38 21 66
is_gmail_smtp_configured()
A
50 17 29
Google_Service_Resource::createRequestUri()
A
46 14 35
Google_Model::__get()
A
48 14 33
GMAIL_SMTP::options_page()
A
38 11 77
Google_Task_Runner::__construct()
A
45 12 49
Google_Utils_UriTemplate::replace()
A
44 12 46
GMAIL_SMTP::server_info_settings()
A
43 11 48
Google_AccessToken_Verify::verifyIdToken()
A
46 11 38
Google_Http_MediaFileUpload::process()
A
45 10 38
Google_Client::setAuthConfig()
A
48 10 31
Google_Model::mapTypes()
A
50 10 29
GMAIL_SMTP::test_email_settings()
A
45 8 50
Google_Client::authorize()
A
50 9 29
Google_Http_Batch::parseResponse()
A
44 8 43
GMAIL_SMTP::plugin_init()
A
52 8 26
Google_Client::createAuthUrl()
A
48 7 34
Google_Http_MediaFileUpload::fetchResumeUri()
A
47 7 33
Google_Client::isAccessTokenExpired()
S
54 7 19
GMAIL_SMTP::can_grant_permission()
S
59 7 14
GMAIL_SMTP::advanced_settings()
S
48 5 39
Google_Client::fetchAccessTokenWithRefreshToken()
S
53 6 23
Google_Task_Runner::run()
S
55 6 21
Google_Http_Batch::execute()
S
44 4 51
Google_AccessToken_Verify::getFederatedSignOnCerts()
S
54 5 22
Google_Http_REST::doExecute()
S
54 5 21
Google_Model::toSimpleObject()
S
55 5 20
Google_Http_Batch::parseHttpResponse()
S
55 5 19
Google_Client::setAccessToken()
S
57 5 18
Google_Model::getSimpleValue()
S
58 5 16
Google_Http_Batch::parseRawHeaders()
S
57 5 16
Google_Service_Resource::convertToArrayAndStripNulls()
S
62 5 11
Google_Client::fetchAccessTokenWithAssertion()
S
53 4 23
Google_Client::createApplicationDefaultCredentials()
S
53 4 23
Google_AccessToken_Verify::retrieveCertsFromLocation()
S
54 4 22
GMAIL_SMTP::revoke_access_settings()
S
49 3 32
GmailXOAuth2::resetCredentials()
S
56 4 17
Google_Http_MediaFileUpload::makePutRequest()
S
57 4 17
Google_Client::addScope()
S
64 5 9
Google_Http_REST::isAltMedia()
S
64 5 9
Google_Client::fetchAccessTokenWithAuthCode()
S
58 4 15
Google_Model::isAssociativeArray()
S
62 4 12
Google_Task_Runner::allowedRetries()
S
62 4 12
Google_AccessToken_Verify::__construct()
S
63 4 11
gmail_smtp_display_addons()
S
49 2 38
Google_AccessToken_Revoke::revokeToken()
S
54 3 22
Google_Client::verifyIdToken()
S
56 3 20
Google_Utils_UriTemplate::combineList()
S
57 3 19
GmailXOAuth2::authenticate()
S
56 3 18
GmailXOAuth2::getOauth64()
S
56 3 18
Google_Client::createDefaultHttpClient()
S
57 3 17
gmail_smtp_admin_notice()
S
60 3 16
Google_Http_REST::determineExpectedClass()
S
66 4 9
Google_AccessToken_Verify::setPhpsecConstants()
S
65 4 10
Google_Http_Batch::__construct()
S
68 4 6
Google_Http_MediaFileUpload::getUploadType()
S
67 4 9
GMAIL_SMTP::loader_operations()
S
59 3 14
Google_Http_REST::decodeHttpResponse()
S
60 3 13
Google_Utils_UriTemplate::resolveNextSection()
S
62 3 12
Google_AuthHandler_AuthHandlerFactory::build()
S
62 3 11
Google_Utils_UriTemplate::replaceVars()
S
55 2 24
Google_AuthHandler_Guzzle6AuthHandler::attachCredentials()
S
55 2 22
Google_Http_MediaFileUpload::nextChunk()
S
55 2 19
Google_AuthHandler_Guzzle5AuthHandler::attachCredentials()
S
57 2 19
Google_Client::__construct()
S
51 1 30
Google_Model::__construct()
S
68 3 7
Google_AccessToken_Verify::getJwtService()
S
64 3 10
Google_AccessToken_Verify::getOpenSslConstant()
S
66 3 9
Google_Model::assertIsArray()
S
69 3 7
Google_Service_Resource::__construct()
S
63 3 10
Google_Task_Runner::attempt()
S
65 3 10
Google_Utils_UriTemplate::getDataType()
S
65 3 10
Google_Collection::rewind()
S
71 3 6
Google_Collection::key()
S
71 3 6
Google_Collection::coerceType()
S
66 3 8
gmail_smtp_update_option()
S
61 2 13
Google_Http_REST::execute()
S
61 2 12
PHPMailerOAuth::getOAUTHInstance()
S
64 2 11
GmailXOAuth2::request_offline_token()
S
55 1 19
Google_AuthHandler_Guzzle6AuthHandler::attachToken()
S
58 1 17
Google_Http_MediaFileUpload::getResumeUri()
S
71 2 6
Google_Http_REST::decodeBody()
S
71 2 6
Google_Http_REST::getResponseErrors()
S
68 2 7
Google_Client::revokeToken()
S
71 2 6
Google_Collection::count()
S
71 2 6
Google_Collection::offsetUnset()
S
70 2 6
GMAIL_SMTP::plugin_url()
S
72 2 5
Google_AccessToken_Verify::getRsaClass()
S
72 2 6
Google_Client::prepareScopes()
S
71 2 6
Google_Model::getMappedName()
S
71 2 6
Google_Service_Exception::__construct()
S
66 2 8
Google_Model::offsetExists()
S
78 2 3
Google_Client::createDefaultLogger()
S
64 2 10
Google_Model::offsetGet()
S
74 2 5
Google_Client::getRefreshToken()
S
73 2 5
Google_Collection::offsetSet()
S
70 2 6
Google_Client::getHttpClient()
S
71 2 6
Google_Http_Batch::add()
S
71 2 6
Google_Model::offsetSet()
S
67 2 8
Google_Client::createOAuth2Service()
S
59 1 15
Google_Client::isAppEngine()
S
74 2 4
Google_Collection::current()
S
71 2 6
Google_AccessToken_Verify::getBigIntClass()
S
72 2 6
Google_Client::getConfig()
S
78 2 3
Google_Model::nullPlaceholderCheck()
S
72 2 6
Google_Client::getOAuth2Service()
S
71 2 6
Google_Utils_UriTemplate::getValue()
S
69 2 7
Google_Client::getCache()
S
72 2 6
GMAIL_SMTP::enqueue_admin_scripts()
S
69 2 7
Google_Http_MediaFileUpload::transformToUploadUrl()
S
64 2 9
Google_Client::getLogger()
S
71 2 6
GMAIL_SMTP::plugin_path()
S
73 2 5
Google_Collection::valid()
S
75 2 4
Google_Collection::offsetExists()
S
70 2 6
Google_Collection::offsetGet()
S
68 2 7
Google_Task_Runner::getDelay()
S
70 2 5
Google_Client::setRequestVisibleActions()
S
70 2 6
GMAIL_SMTP::add_plugin_action_links()
S
69 2 6
Google_AuthHandler_Guzzle5AuthHandler::attachToken()
S
61 1 14
Google_Http_MediaFileUpload::resume()
S
61 1 13
gmail_smtp_get_empty_options_array()
S
62 1 13
GmailXOAuth2::getClient()
S
60 1 13
Google_AuthHandler_Guzzle5AuthHandler::createAuthHttp()
S
63 1 12
Google_Utils_UriTemplate::parse()
S
79 1 3
Google_Model::gapiInit()
S
83 1 3
GMAIL_SMTP::plugins_loaded_handler()
S
78 1 3
Google_Http_MediaFileUpload::getRequest()
S
82 1 3
Google_Client::setClientId()
S
80 1 3
Google_Task_Runner::backOff()
S
76 1 4
Google_Client::setAccessType()
S
80 1 3
Google_Client::setSubject()
S
80 1 3
Google_Client::setDefer()
S
81 1 3
Google_Client::createUserRefreshCredentials()
S
64 1 10
Google_Client::setConfig()
S
80 1 3
Google_Service::getClient()
S
82 1 3
Google_Client::getScopes()
S
82 1 3
Google_AuthHandler_Guzzle5AuthHandler::attachKey()
S
69 1 6
Google_Model::dataType()
S
80 1 3
Google_Client::setDeveloperKey()
S
80 1 3
GmailXOAuth2::__construct()
S
71 1 6
Google_Client::setTokenCallback()
S
80 1 3
Google_Http_MediaFileUpload::getHttpResultCode()
S
82 1 3
Google_AccessToken_Verify::getCache()
S
82 1 3
Google_AuthHandler_Guzzle6AuthHandler::attachKey()
S
64 1 9
Google_Client::setOpenidRealm()
S
80 1 3
Google_Client::getClientSecret()
S
80 1 3
Google_Client::setIncludeGrantedScopes()
S
80 1 3
Google_Client::setCacheConfig()
S
80 1 3
Google_Client::setUseBatch()
S
81 1 3
gmail_smtp_get_option()
S
77 1 4
Google_Client::getAccessToken()
S
82 1 3
Google_Client::refreshTokenWithAssertion()
S
81 1 3
Google_Client::setApprovalPrompt()
S
80 1 3
Google_Client::setPrompt()
S
80 1 3
Google_Client::shouldDefer()
S
82 1 3
Google_Client::setHostedDomain()
S
80 1 3
Google_Client::getClientId()
S
80 1 3
Google_Task_Runner::setRetryMap()
S
81 1 3
Google_Client::createDefaultCache()
S
82 1 3
Google_Client::isUsingApplicationDefaultCredentials()
S
80 1 3
Google_AuthHandler_Guzzle6AuthHandler::__construct()
S
77 1 4
Google_Client::setScopes()
S
77 1 4
Google_Model::camelCase()
S
69 1 6
Google_Http_MediaFileUpload::getProgress()
S
82 1 3
Google_Service::createBatch()
S
69 1 8
Google_Client::setState()
S
80 1 3
Google_Model::createObjectFromName()
S
76 1 4
Google_Client::setRedirectUri()
S
80 1 3
Google_Model::__unset()
S
80 1 3
Google_AuthHandler_Guzzle6AuthHandler::createAuthHttp()
S
65 1 10
Google_Model::keyType()
S
80 1 3
Google_Client::setLogger()
S
81 1 3
GMAIL_SMTP::options_menu()
S
77 1 3
Google_Http_MediaFileUpload::setFileSize()
S
81 1 3
Google_Client::setApplicationName()
S
80 1 3
Google_AuthHandler_Guzzle5AuthHandler::__construct()
S
77 1 4
Google_Service::__construct()
S
81 1 3
Google_Client::setClientSecret()
S
80 1 3
Google_Client::getAuth()
S
76 1 5
Google_Client::refreshToken()
S
80 1 3
Google_Client::setHttpClient()
S
81 1 3
Google_Client::useApplicationDefaultCredentials()
S
80 1 3
Google_Task_Runner::getJitter()
S
78 1 3
GMAIL_SMTP::__construct()
S
70 1 9
Google_Client::setAuth()
S
76 1 5
Google_Client::getRedirectUri()
S
80 1 3
Google_Model::offsetUnset()
S
80 1 3
Google_Collection::next()
S
80 1 3
Google_Http_MediaFileUpload::setChunkSize()
S
81 1 3
Google_Http_MediaFileUpload::__construct()
S
64 1 10
Google_Client::authenticate()
S
80 1 3
Google_Client::setAuthConfigFile()
S
81 1 3
Google_Model::__isset()
S
79 1 3
Google_Client::getLibraryVersion()
S
81 1 3
Google_Service_Exception::getErrors()
S
82 1 3
Google_Client::execute()
S
64 1 10
Google_AccessToken_Revoke::__construct()
S
81 1 3
Google_Task_Runner::canAttempt()
S
80 1 3
Google_Client::setLoginHint()
S
80 1 3
Google_Client::getAuthHandler()
S
72 1 6
Google_Client::setCache()
S
81 1 3
GMAIL_SMTP::plugin_includes()
S
100 1 2