Code Analysis: E-mail attachment to dropbox 0.1

Function Rating Maintainability Complexity Lines of code
MDROP_Settings::hidden_form_generator()
D
32 31 101
MDROP_Settings::table()
D
35 32 76
MDROP_Settings::form_field_only()
C
35 27 79
MDROP_Settings::visible_form_generator()
C
36 26 79
MDROP_Settings::get_serarch_form()
B
36 22 78
MDROP_Settings::checkbox_field()
B
42 20 41
MDROP_Settings::radio_field()
B
42 20 41
Dropbox\WebAuth::finish()
B
39 16 66
MDROP_Settings::multiple_select_field()
B
44 18 35
MDROP_Settings::text_field()
B
44 17 38
mdrop_get_query_args()
B
43 16 52
MDROP_Settings::select_field()
B
45 17 35
MDROP_Settings::table_generate()
A
44 16 45
MDROP_Settings::textarea_field()
A
45 16 34
MDROP_Settings::hrm_tinymce()
A
49 14 27
MDROP_Settings::search()
A
45 12 42
Dropbox\Client::_uploadFileChunked()
A
43 10 49
Dropbox\WebAuthBase::_finish()
A
47 10 32
MDROP_Settings::conditional_query_val()
A
45 9 39
Dropbox\AppInfo::loadFromJson()
A
46 9 38
MDROP_Attachment_List::mail_decode_part()
A
51 9 28
MDROP_Settings::hidden_field()
A
52 9 22
Dropbox\Client::chunkedUploadContinue()
A
49 8 28
MDROP_Settings::show_sub_tab_page()
A
52 8 24
Dropbox\RequestUtil::buildUrlForGetOrPut()
A
52 8 22
Dropbox\RequestUtil::buildPostBody()
A
53 8 20
Dropbox\OAuth1Upgrader::createOAuth2AccessToken()
A
54 8 19
MDROP_Settings::search_query()
S
51 7 24
MDROP_Ajax::message_post()
S
49 6 31
MDROP_Attachment_List::mail_get_parts()
S
57 7 15
MDROP_Settings::multiple_field_inside_this_wrap()
S
58 7 13
Dropbox\RequestUtil::unexpectedStatus()
S
60 7 12
Dropbox\AuthInfo::loadFromJson()
S
52 6 26
Dropbox\DropboxMetadataHeaderCatcher::headerFunction()
S
53 6 24
Dropbox\RequestUtil::runWithRetry()
S
53 6 24
MDROP_Ajax::send_drop()
S
53 6 23
MDROP_Settings::descriptive_field()
S
54 6 19
MDROP_Ajax::message_delete()
S
56 6 18
Dropbox\Client::getMetadataWithChildrenIfChanged()
S
55 6 17
MDROP_Settings::data_formating()
S
59 6 13
Dropbox\Client::getThumbnail()
S
51 5 23
Dropbox\RootCertificates::getPaths()
S
53 5 23
MDROP_Attachment_List::move_attachment()
S
53 5 21
Dropbox\SSLTester::test()
S
44 3 51
MDROP_Settings::pagination_select()
S
54 5 21
Dropbox\RootCertificates::createExternalCaFolder()
S
55 5 19
Dropbox\Curl::__construct()
S
55 5 18
Dropbox\Path::findError()
S
56 5 18
Dropbox\Client::chunkedUploadStart()
S
57 5 16
MDROP_Settings::show_tab_page()
S
59 5 14
Dropbox\Security::getRandomBytes()
S
60 5 12
Dropbox\Client::_getMetadata()
S
61 5 11
MDROP_Attachment_List::new_attachment()
S
53 4 24
WP_Mdrop::admin_menu()
S
56 4 16
Dropbox\RootCertificates::copyInto()
S
57 4 16
Dropbox\Client::_chunkedUploadCheckForOffsetCorrection()
S
63 5 9
Dropbox\Security::stringEquals()
S
58 4 14
MDROP_Attachment_List::get_body_text()
S
60 4 13
Dropbox\Path::getName()
S
59 4 13
Dropbox\Client::readFully()
S
60 4 12
mdrop_get_file()
S
55 3 20
Dropbox\Client::getFile()
S
55 3 19
Dropbox\Client::__construct()
S
55 3 19
Dropbox\Client::uploadFile()
S
56 3 18
MDROP_Ajax::check_mail()
S
58 3 16
Dropbox\SSLTester::testMulti()
S
57 3 16
WP_Mdrop::admin_page_handler()
S
58 3 16
Dropbox\Client::getAccessTokenError()
S
69 4 6
Dropbox\Client::getClientIdentifierError()
S
69 4 6
Dropbox\AppInfo::__construct()
S
59 3 15
Dropbox\SSLTester::testDisallowed()
S
58 3 15
Dropbox\AppInfo::getTokenPartError()
S
69 4 6
MDROP_Settings::multiple_field_inside_this_wrap_close()
S
65 4 8
Dropbox\Path::checkArg()
S
67 4 6
Dropbox\Path::checkArgNonRoot()
S
67 4 6
MDROP_Settings::hrm_query()
S
58 3 15
Dropbox\Checker::argStringNonEmptyOrNull()
S
70 4 5
Dropbox\Checker::argNatOrNull()
S
70 4 5
Dropbox\Checker::argIntPositiveOrNull()
S
70 4 5
Dropbox\Client::chunkedUploadFinish()
S
59 3 13
WP_Mdrop::autoload()
S
60 3 13
Dropbox\Client::createShareableLink()
S
60 3 13
Dropbox\Client::createFolder()
S
60 3 13
Dropbox\Client::createTemporaryDirectLink()
S
60 3 12
Dropbox\CurlStreamRelay::writeData()
S
61 3 12
Dropbox\AppInfo::loadFromJsonFileWithRaw()
S
61 3 12
Dropbox\Client::getRevisions()
S
61 3 11
Dropbox\Client::restoreFile()
S
61 3 11
Dropbox\AuthInfo::loadFromJsonFile()
S
62 3 11
MDROP_Dropbox::upload_file_dropbox()
S
53 2 21
MDROP_Settings::get_currency_list()
S
47 1 35
mdrop_get_query_message()
S
55 2 20
MDROP_Attachment_List::is_message_uid_exist()
S
57 2 19
MDROP_Settings::month()
S
55 2 18
mdrop_pagination()
S
56 2 17
MDROP_Settings::pagination()
S
56 2 17
Dropbox\Client::searchFileNames()
S
57 2 16
Dropbox\Checker::argIntPositive()
S
72 3 4
Dropbox\Checker::argNat()
S
72 3 4
autoload()
S
63 3 9
mdrop_page_slug()
S
68 3 7
Dropbox\WriteMode::checkArgOrNull()
S
73 3 4
MDROP_Attachment_List::get_section()
S
66 3 8
Dropbox\Client::_uploadFile()
S
58 2 15
MDROP_Settings::show_page()
S
64 3 9
MDROP_Settings::year()
S
67 3 7
Dropbox\Client::createCopyRef()
S
62 3 10
Dropbox\Client::copyFromCopyRef()
S
59 2 15
Dropbox\DropboxMetadataHeaderCatcher::getMetadata()
S
66 3 9
Dropbox\AppInfo::checkArgOrNull()
S
73 3 4
Dropbox\Host::checkArgOrNull()
S
73 3 4
MDROP_Attachment_List::new_directory_exist()
S
69 3 7
Dropbox\Checker::throwError()
S
64 3 9
Dropbox\Checker::argStringOrNull()
S
74 3 4
Dropbox\RootCertificates::useExternalPaths()
S
68 3 7
Dropbox\Checker::argStringNonEmpty()
S
72 3 4
Dropbox\Client::copy()
S
59 2 14
Dropbox\Client::move()
S
59 2 14
Dropbox\Client::delete()
S
61 2 12
Dropbox\Client::uploadFileChunked()
S
62 2 11
Dropbox\RootCertificates::createExternalCaFile()
S
62 2 11
Dropbox\RequestUtil::doPost()
S
61 2 11
Dropbox\RequestUtil::doPostWithSpecificAuth()
S
61 2 11
MDROP_Settings::pagination_query_arg()
S
62 2 11
Dropbox\WebAuth::start()
S
62 2 11
MDROP_Settings::send()
S
56 1 17
WP_Mdrop::register_post_types()
S
57 1 17
mdrop_admin_page_items()
S
58 1 16
Dropbox\OAuth1AccessToken::checkArg()
S
77 2 3
Dropbox\WriteMode::add()
S
70 2 6
Dropbox\AppInfo::checkKeyArg()
S
71 2 5
error_to_exception()
S
74 2 4
Dropbox\AppInfo::checkSecretArg()
S
71 2 5
Dropbox\WriteMode::checkArg()
S
77 2 3
Dropbox\Client::getField()
S
71 2 5
Dropbox\AppInfo::checkArg()
S
77 2 3
Dropbox\Client::parseDateTime()
S
69 2 6
WP_Mdrop::save_setting()
S
63 2 10
Dropbox\Client::getDelta()
S
64 2 9
Dropbox\Path::checkArgOrNull()
S
75 2 4
Dropbox\Curl::exec()
S
64 2 9
MDROP_Attachment_List::get_overviews()
S
69 2 7
WP_Mdrop::define()
S
75 2 5
mdrop_pagenum()
S
78 2 3
MDROP_Attachment_List::urlsafe_b64decode()
S
66 2 8
MDROP_Attachment_List::instance()
S
70 2 6
Dropbox\Client::checkAccessTokenArg()
S
73 2 4
Dropbox\Client::checkClientIdentifierArg()
S
73 2 4
MDROP_Dropbox::instance()
S
72 2 6
Dropbox\Checker::argArray()
S
77 2 3
WP_Mdrop::instance()
S
72 2 6
Dropbox\ArrayEntryStore::get()
S
70 2 7
MDROP_Attachment_List::get_header()
S
69 2 7
Dropbox\Host::checkArg()
S
77 2 3
MDROP_Ajax::instance()
S
72 2 6
Dropbox\Path::findErrorNonRoot()
S
75 2 4
Dropbox\Checker::argCallable()
S
77 2 3
Dropbox\Checker::argBool()
S
77 2 3
Dropbox\Host::getDefault()
S
70 2 6
Dropbox\RequestUtil::parseResponseJson()
S
68 2 7
Dropbox\Client::disableAccessToken()
S
74 2 4
Dropbox\Checker::argResource()
S
77 2 3
Dropbox\OAuth1Upgrader::disableOAuth1AccessToken()
S
71 2 5
MDROP_Settings::instance()
S
72 2 6
Dropbox\Client::getAccountInfo()
S
71 2 5
MDROP_Settings::get_country_by_code()
S
69 2 7
MDROP_Attachment_List::__construct()
S
77 2 3
Dropbox\Util::stripUtf8Bom()
S
69 2 6
Dropbox\WriteMode::force()
S
70 2 6
MDROP_Attachment_List::get_fetchstructure()
S
69 2 7
Dropbox\Checker::argString()
S
77 2 3
MDROP_Attachment_List::wp_update_attachment()
S
59 1 14
Dropbox\WebAuthBase::_getAuthorizeUrl()
S
62 1 12
Dropbox\OAuth1Upgrader::doPost()
S
61 1 12
Dropbox\Client::getHost()
S
94 1 1
Dropbox\Client::appendFilePath()
S
78 1 3
Dropbox\RequestUtil::doGet()
S
65 1 8
Dropbox\Exception_ServerError::__construct()
S
81 1 3
Dropbox\DropboxMetadataHeaderCatcher::__construct()
S
79 1 3
MDROP_Settings::get_current_page_url()
S
73 1 4
MDROP_Dropbox::update_dropbox_shareablelink()
S
80 1 3
Dropbox\Exception_BadResponseCode::__construct()
S
76 1 4
Dropbox\RequestUtil::buildUri()
S
72 1 5
MDROP_Ajax::__construct()
S
70 1 6
Dropbox\WebAuthException_BadState::__construct()
S
81 1 3
Dropbox\WebAuthNoRedirect::start()
S
80 1 3
MDROP_Settings::country_list()
S
74 1 4
Dropbox\WebAuth::getCsrfTokenStore()
S
94 1 1
mdrop_get_token()
S
79 1 3
Dropbox\WriteMode::update()
S
79 1 3
Dropbox\WriteMode::__construct()
S
81 1 3
MDROP_Attachment_List::get_attachment_array()
S
81 1 3
Dropbox\CurlStreamRelay::__construct()
S
70 1 6
Dropbox\Util::q()
S
79 1 3
mdrop_tab_menu_url()
S
74 1 4
mdrop_get_server()
S
79 1 3
Dropbox\AppInfo::getHost()
S
94 1 1
Dropbox\Exception_BadResponseCode::getStatusCode()
S
82 1 3
Dropbox\AppInfo::getKey()
S
94 1 1
Dropbox\Path::isValid()
S
75 1 4
Dropbox\Client::getAccessToken()
S
94 1 1
Dropbox\RequestUtil::mkCurl()
S
66 1 8
MDROP_Settings::edit_query()
S
71 1 5
Dropbox\OAuth1AccessToken::getKey()
S
94 1 1
Dropbox\Client::uploadFileFromString()
S
64 1 10
Dropbox\Client::getUserLocale()
S
94 1 1
MDROP_Attachment_List::mail_mime_to_array()
S
73 1 5
Dropbox\Client::getMetadataWithChildren()
S
74 1 4
Dropbox\Client::mkCurl()
S
79 1 3
MDROP_Settings::update_table_option()
S
80 1 3
Dropbox\StreamReadException::__construct()
S
79 1 3
MDROP_Attachment_List::check_num_msg()
S
81 1 3
mdrop_get_password()
S
79 1 3
Dropbox\Exception_BadRequest::__construct()
S
81 1 3
mdrop()
S
82 1 3
Dropbox\ArrayEntryStore::__construct()
S
77 1 4
MDROP_Dropbox::update_dropbox_filepath()
S
80 1 3
Dropbox\WriteMode::getExtraParams()
S
83 1 3
Dropbox\WebAuthException_Csrf::__construct()
S
81 1 3
Dropbox\ArrayEntryStore::set()
S
80 1 3
Dropbox\Curl::addHeader()
S
81 1 3
Dropbox\WebAuthException_Provider::__construct()
S
81 1 3
Dropbox\OAuth1AccessToken::getSecret()
S
94 1 1
mdrop_menu_label()
S
70 1 6
Dropbox\Exception_NetworkIO::__construct()
S
80 1 3
Dropbox\Client::getMetadata()
S
75 1 4
Dropbox\AuthBase::getClientIdentifier()
S
94 1 1
Dropbox\ArrayEntryStore::clear()
S
80 1 3
Dropbox\Host::getWeb()
S
94 1 1
Dropbox\WebAuthException_BadRequest::__construct()
S
81 1 3
Dropbox\HttpResponse::__construct()
S
77 1 4
WP_Mdrop::define_constants()
S
70 1 6
Dropbox\RequestUtil::mkCurlWithOAuth()
S
78 1 3
Dropbox\SSLTester::testUntrustedCert()
S
78 1 3
Dropbox\SSLTester::testHostnameMismatch()
S
78 1 3
Dropbox\AppInfo::getSecret()
S
94 1 1
WP_Mdrop::instantiate()
S
77 1 4
Dropbox\SSLTester::testAllowed()
S
70 1 6
Dropbox\AuthBase::getUserLocale()
S
94 1 1
Dropbox\WebAuth::getRedirectUri()
S
94 1 1
Dropbox\Path::isValidNonRoot()
S
75 1 4
Dropbox\Exception_BadResponse::__construct()
S
81 1 3
Dropbox\Client::getClientIdentifier()
S
94 1 1
Dropbox\Exception_ProtocolError::__construct()
S
81 1 3
mdrop_get_email()
S
79 1 3
Dropbox\OAuth1AccessToken::__construct()
S
72 1 6
Dropbox\AuthBase::getAppInfo()
S
94 1 1
Dropbox\CurlStreamRelay::getErrorBody()
S
81 1 3
mdrop_admin_page()
S
80 1 3
Dropbox\Client::doPost()
S
70 1 6
Dropbox\RequestUtil::mkCurlWithAuth()
S
72 1 5
WP_Mdrop::__construct()
S
67 1 8
Dropbox\Curl::__destruct()
S
82 1 3
MDROP_Attachment_List::get_senderaddress()
S
76 1 4
Dropbox\WebAuthNoRedirect::finish()
S
76 1 4
Dropbox\Client::_chunkedUploadParse200Response()
S
69 1 6
Dropbox\DeserializeException::__construct()
S
81 1 3
mdrop_connect_server()
S
68 1 7
WP_Mdrop::admin_scripts()
S
64 1 9
mdrop_page()
S
68 1 7
Dropbox\Exception_InvalidAccessToken::__construct()
S
81 1 3
Dropbox\WebAuthException_NotApproved::__construct()
S
81 1 3
Dropbox\WebAuth::encodeCsrfToken()
S
78 1 3
Dropbox\AppInfoLoadException::__construct()
S
81 1 3
Dropbox\Client::buildUrlForGetOrPut()
S
79 1 3
Dropbox\WebAuth::__construct()
S
70 1 6
WP_Mdrop::initial()
S
69 1 7
Dropbox\Exception::__construct()
S
79 1 3
Dropbox\AuthInfoLoadException::__construct()
S
81 1 3
Dropbox\Exception_RetryLater::__construct()
S
81 1 3
Dropbox\Curl::set()
S
80 1 3
Dropbox\Host::getApi()
S
94 1 1
MDROP_Settings::get_emp_meta()
S
79 1 3
Dropbox\Client::doGet()
S
70 1 6
Dropbox\AuthBase::__construct()
S
67 1 8
Dropbox\Host::getContent()
S
94 1 1
MDROP_Attachment_List::post_meta()
S
64 1 10
Dropbox\Client::_chunkedUpload()
S
63 1 10
Dropbox\Host::__construct()
S
74 1 5
WP_Mdrop::load_textdomain()
S
78 1 3
Dropbox\AppInfo::loadFromJsonFile()
S
75 1 4
MDROP_Attachment_List::get_subject()
S
76 1 4