Code Analysis: Migrate Guru 4.65

Function Rating Maintainability Complexity Lines of code
BVDBCallback::process()
D
23
44 174
BVFSCallback::process()
D
29 32 119
BVCallbackRequest::processParams()
C
35 31 73
BVMiscCallback::process()
C
32 24 100
BVInfoCallback::process()
B
37 21 71
BVCallbackHandler::routeRequest()
A
39 14 69
BVFSCallback::scanFiles()
A
42 15 50
MGWPAdmin::initBranding()
A
48 12 35
BVFSCallback::scanFilesUsingGlob()
A
44 11 43
BVAccountCallback::process()
A
46 10 40
BVFSCallback::uploadFiles()
A
46 10 37
MGWPAdmin::initHandler()
A
52 10 22
BVHttpStream::getResponse()
A
47 9 36
BVDBCallback::getTableData()
A
46 8 39
BVInfoCallback::getWpInfo()
A
46 8 35
BVFSCallback::calculateMd5()
A
51 8 25
BVInfoCallback::availableFunctions()
A
54 8 23
BVBrandCallback::process()
S
46 6 40
BVFSCallback::getFilesContent()
S
53 7 24
BVInfoCallback::getSystemInfo()
S
52 6 24
BVFSCallback::fileStat()
S
54 6 20
MGWPAdmin::hidePluginDetails()
S
59 6 13
MGWPAdmin::showErrors()
S
60 6 12
BVStream::startStream()
S
51 5 27
MGWPSiteInfo::dbsig()
S
60 6 12
BVCallbackRequest::info()
S
56 5 20
BVStream::writeStream()
S
56 5 17
BVFSCallback::getFilesStats()
S
57 5 16
BVCallbackRequest::compare_mac()
S
61 5 13
BVHttpStream::sendRequest()
S
55 4 18
MGAccount::find()
S
62 5 10
BVInfoCallback::getHostInfo()
S
59 4 14
BVHttpStream::connect()
S
59 4 14
MGWPDb::createTable()
S
60 4 13
BVInfoCallback::getThemes()
S
61 4 12
MGAccount::accountsByPlugname()
S
62 4 11
MGInfo::canSetCWBranding()
S
62 4 11
MGInfo::appUrl()
S
63 4 11
BVInfoCallback::getUsers()
S
54 3 21
MGAccount::updateInfo()
S
55 3 19
BVInfoCallback::getPlugins()
S
56 3 18
BVCallbackRequest::__construct()
S
56 3 16
BVInfoCallback::getPosts()
S
57 3 16
MGRecover::find()
S
63 4 10
MGWPAdmin::menu()
S
63 4 9
MGWPAPI::pingbv()
S
63 4 10
MGAccount::accountsByGid()
S
63 4 10
MGAccount::accountsByType()
S
63 4 10
MGAccount::accountsByPattern()
S
62 4 10
MGInfo::isDynSyncModuleEnabled()
S
64 4 9
MGInfo::isServiceActive()
S
67 4 7
MGAccount::authenticate()
S
61 3 12
BVCallbackBase::base64Encode()
S
61 3 12
MGWPAction::activate()
S
63 3 11
MGWPAdmin::activateWarning()
S
64 3 11
MGWPSiteInfo::serversig()
S
62 3 11
BVMiscCallback::post_types_data()
S
53 2 21
BVInfoCallback::themeToArray()
S
56 2 20
BVMiscCallback::taxonomy_data()
S
54 2 20
BVHttpStream::multipartChunkedPost()
S
57 2 16
BVInfoCallback::cookieInfo()
S
66 3 8
MGAccount::removeByAccountGid()
S
63 3 10
MGInfo::getCurrentDBVersion()
S
68 3 7
MGInfo::getBrandName()
S
68 3 7
MGInfo::getBrandIcon()
S
68 3 7
BVHttpStream::post()
S
62 3 10
MGRecover::validate()
S
68 3 7
MGWPAdmin::removeAdminNotices()
S
70 3 6
MGWPAdmin::getPluginLogo()
S
68 3 7
MGWPAdmin::getWebPage()
S
68 3 7
BVCallbackRequest::serialization_safe_decode()
S
66 3 8
MGWPDb::getTableContent()
S
64 3 9
MGWPSettings::getOption()
S
64 3 10
MGAccount::removeByAccountType()
S
63 3 10
MGWPSiteInfo::isMainSite()
S
72 3 5
BVHttpStream::endStream()
S
59 2 14
MGWPAdmin::settingsLink()
S
59 2 13
MGWPAPI::http_request()
S
62 2 11
MGAccount::getSigMatch()
S
63 2 11
MGWPAdmin::siteInfoTags()
S
55 1 19
MGInfo::isActivateRedirectSet()
S
78 2 3
MGWPDb::deleteRowsFromtable()
S
66 2 8
MGRecover::defaultSecret()
S
67 2 8
MGAccount::addAccount()
S
66 2 8
MGWPSettings::getTransient()
S
71 2 6
MGWPAction::footerHandler()
S
67 2 7
BVCallbackRequest::http_request()
S
68 2 7
MGWPAdmin::mainUrl()
S
68 2 7
BVDBCallback::getLastID()
S
69 2 7
MGWPSiteInfo::wpurl()
S
71 2 6
BVDBCallback::getCreateTableQueries()
S
67 2 8
MGWPSiteInfo::isMultisite()
S
74 2 5
MGAccount::remove()
S
65 2 9
MGInfo::getRequestID()
S
71 2 6
BVDBCallback::checkTables()
S
66 2 8
BVDBCallback::describeTables()
S
67 2 8
MGWPSettings::updateOption()
S
69 2 7
BVDBCallback::checkTablesExist()
S
67 2 8
MGWPSiteInfo::getMainSiteId()
S
73 2 5
MGWPDb::truncateBVTable()
S
67 2 8
MGAccount::randString()
S
64 2 9
MGWPDb::deleteBVTableContent()
S
66 2 8
MGWPAPI::do_request()
S
68 2 7
BVCallbackResponse::addArrayToStatus()
S
71 2 6
MGWPSiteInfo::siteurl()
S
69 2 7
BVDBCallback::getTablesKeys()
S
67 2 8
MGWPDb::dropBVTable()
S
68 2 7
BVCallbackRequest::get_params_via_api()
S
68 2 7
MGWPSettings::deleteTransient()
S
71 2 6
MGWPSiteInfo::homeurl()
S
69 2 7
MGAccount::allAccounts()
S
69 2 7
MGWPDb::alterBVTable()
S
67 2 8
MGWPSettings::deleteOption()
S
69 2 7
MGWPSettings::setTransient()
S
70 2 6
MGWPAdmin::mgsecAdminMenu()
S
70 2 6
BVInfoCallback::dbconf()
S
66 2 8
BVDBCallback::getTablesRowCount()
S
67 2 8
MGWPSiteInfo::basic()
S
64 2 9
MGWPDb::tinfo()
S
64 2 10
MGInfo::getWatchTime()
S
75 2 4
MGWPDb::dbprefix()
S
73 2 5
MGAccount::newAuthParams()
S
60 1 13
BVCallbackHandler::execute()
S
62 1 11
BVCallbackRequest::fileGetContentRequest()
S
63 1 11
MGWPDb::showTables()
S
74 1 4
BVCallbackHandler::__construct()
S
65 1 9
MGRecover::deleteDefaultSecret()
S
80 1 3
MGAccount::updateApiPublicKey()
S
79 1 3
MGInfo::info()
S
69 1 7
BVCallbackResponse::__construct()
S
75 1 4
BVHttpStream::writeChunk()
S
81 1 3
MGWPDb::showTableCreate()
S
78 1 3
BVInfoCallback::activate()
S
68 1 8
MGWPDb::tableName()
S
80 1 3
BVMiscCallback::refreshThemeUpdates()
S
67 1 8
BVBrandCallback::__construct()
S
81 1 3
MGInfo::isActivePlugin()
S
74 1 4
MGWPAction::__construct()
S
71 1 6
MGWPDb::repairTable()
S
79 1 3
MGRecover::getDefaultSecret()
S
80 1 3
MGWPSiteInfo::isCWServer()
S
79 1 3
BVMiscCallback::refreshPluginUpdates()
S
67 1 8
MGAccount::update()
S
79 1 3
BVMiscCallback::__construct()
S
67 1 8
MGWPDb::getBVTable()
S
79 1 3
MGWPAdmin::adminPage()
S
79 1 3
MGWPAction::deactivate()
S
73 1 5
BVFSCallback::__construct()
S
81 1 3
MGInfo::isBlogvault()
S
80 1 3
MGAccount::__construct()
S
74 1 5
BVHttpStream::streamedPost()
S
75 1 4
BVHttpStream::sendChunk()
S
73 1 5
BVCallbackResponse::addStatus()
S
80 1 3
MGWPDb::describeTable()
S
79 1 3
MGWPDb::getSiteId()
S
77 1 4
BVAccountCallback::__construct()
S
77 1 4
BVCallbackRequest::isAPICall()
S
79 1 3
MGAccount::apiPublicAccount()
S
75 1 4
MGWPAction::clear_bv_services_config()
S
81 1 3
BVStream::__construct()
S
74 1 5
MGWPDb::getCol()
S
76 1 4
MGAccount::isConfigured()
S
74 1 4
MGAccount::getApiPublicKey()
S
80 1 3
MGWPAction::uninstall()
S
80 1 3
BVStream::writeChunk()
S
91 1 2
BVHttpStream::__construct()
S
69 1 6
BVInfoCallback::__construct()
S
71 1 6
MGWPDb::isTablePresent()
S
78 1 3
MGAccount::info()
S
70 1 6
MGWPDb::getMysqlVersion()
S
77 1 4
MGInfo::isMalcare()
S
80 1 3
MGWPAPI::__construct()
S
81 1 3
MGAccount::exists()
S
74 1 4
BVCallbackRequest::curlRequest()
S
66 1 8
MGInfo::hasValidDBVersion()
S
80 1 3
BVHttpStream::write()
S
80 1 3
BVInfoCallback::servicesInfo()
S
68 1 7
MGWPDb::prepare()
S
76 1 4
MGWPDb::rowsCount()
S
75 1 4
MGAccount::getPlugName()
S
76 1 4
BVInfoCallback::getStats()
S
69 1 7
MGWPAdmin::__construct()
S
71 1 6
MGAccount::sanitizeKey()
S
78 1 3
MGInfo::getBrandInfo()
S
80 1 3
MGInfo::__construct()
S
76 1 4
MGWPDb::tableKeys()
S
79 1 3
MGWPSiteInfo::info()
S
69 1 7
MGWPDb::getVar()
S
75 1 4
BVRespStream::writeChunk()
S
80 1 3
MGWPDb::getCharsetCollate()
S
77 1 4
MGWPDb::getWPTable()
S
80 1 3
MGAccount::authenticatedUrl()
S
71 1 5
MGAccount::setup()
S
72 1 5
MGWPDb::query()
S
76 1 4
BVMiscCallback::getWingInfo()
S
80 1 3
BVRespStream::endStream()
S
77 1 4
MGWPDb::replaceIntoBVTable()
S
72 1 5
BVCallbackHandler::bvAdmExecuteWithoutUser()
S
80 1 3
MGWPDb::getResult()
S
76 1 4
BVCallbackResponse::terminate()
S
66 1 8
BVCallbackBase::objectToArray()
S
79 1 3
MGInfo::isProtectModuleEnabled()
S
80 1 3
MGWPDb::checkTable()
S
78 1 3
BVRespStream::__construct()
S
81 1 3
MGWPDb::showTableStatus()
S
80 1 3
BVHttpStream::closeChunk()
S
81 1 3
BVCallbackHandler::bvAdmExecuteWithUser()
S
80 1 3
BVDBCallback::__construct()
S
74 1 5
MGRecover::updateDefaultSecret()
S
79 1 3