Code Analysis: Sucuri Security - Auditing, Malware Scanner and Hardening 1.8.33

Function Rating Maintainability Complexity Lines of code
SucuriScanIntegrity::pageIntegritySubmission()
D
29 35 113
SucuriScanAuditLogs::ajaxAuditLogs()
D
27
32 141
SucuriWordPressRecommendations::pageWordPressRecommendations()
D
28
32 122
SucuriScanSettingsPosthack::securityKeys()
C
32 24 104
SucuriScanIntegrity::getIntegrityStatus()
B
34 19 92
SucuriScanAPI::parseAuditLogs()
B
32 17 107
sucuriscan_settings_alerts_events()
B
33 17 94
sucuriscan_settings_general_importexport()
B
32 16 107
SucuriScanSettingsPosthack::availableUpdatesContent()
B
38 18 66
sucuriscan_settings_general_datastorage()
B
34 16 93
SucuriScanSiteCheck::details()
B
38 17 71
sucuriscan_get_logins()
B
37 17 69
SucuriScanIntegrity::checkIntegrityIntegrity()
B
35 15 89
sucuriscan_settings_general_apikey()
B
37 16 72
SucuriScanAPI::handleResponse()
B
42 17 49
SucuriScanHardeningPage::fileeditor()
B
37 15 76
sucuriscan_settings_alerts_subject()
B
38 15 69
SucuriScanAPI::apiCall()
B
41 16 51
sucuriscan_get_failed_logins()
B
40 15 64
SucuriScanFileInfo::getDirectoryTree()
A
43 15 50
SucuriScanHook::hookPluginUpdate()
A
43 14 45
SucuriScanFirewall::auditlogsEntries()
A
44 14 44
SucuriScanSettingsScanner::cronjobs()
A
37 11 81
SucuriScanCommand::diffHTML()
A
42 13 51
SucuriScanHook::hookOptionsManagement()
A
42 13 49
sucuriscan_settings_alerts_recipients()
A
40 12 62
sucuriscan_settings_alerts_ignore_posts()
A
40 12 60
sucuriscan_settings_alerts_trustedips()
A
42 12 50
SucuriScanHardeningPage::AllowPHPFiles()
A
40 11 62
SucuriScanMail::prettifyMail()
A
43 12 47
SucuriScanOption::checkOptionsNonce()
A
49 13 29
sucuriscan_set_online_user()
A
43 11 50
SucuriScanFileInfo::removeDirectoryTree()
A
47 12 34
sucuriscan_settings_webinfo_details()
A
39 10 64
SucuriScanTemplate::replacePseudoVars()
A
47 12 32
SucuriScanAPI::getPlugins()
A
42 11 47
SucuriScanEvent::isTrustedIP()
A
44 11 46
sucuriscan_failed_logins_panel()
A
41 10 59
SucuriScanFirewall::auditlogsAjax()
A
44 11 43
sucuriscan_lastlogins_all()
A
40 10 58
SucuriScanFirewall::dates()
A
40 10 57
SucuriScanHardeningPage::wpincludes()
A
43 10 49
sucuriscan_settings_general_selfhosting()
A
42 10 49
SucuriScanEvent::setNewConfigKeys()
A
42 9 55
SucuriScanSettingsPosthack::resetPluginAjax()
A
41 9 54
sucuriscan_report_failed_logins()
A
42 9 52
SucuriScanSettingsScanner::ignoreFolders()
A
46 10 37
SucuriScanHook::hookPluginDelete()
A
46 10 36
SucuriScanMail::sendMail()
A
48 10 30
sucuriscan_settings_general_ipdiscoverer()
A
41 8 59
SucuriScanHardeningPage::wpuploads()
A
45 9 41
SucuriScanHardeningPage::wpcontent()
A
45 9 40
SucuriScanSettingsIntegrity::cache()
A
45 9 40
SucuriScanHook::hookThemeUpdate()
A
47 9 34
SucuriScanCache::getDatastoreContent()
A
48 9 32
SucuriScanTemplate::getTemplate()
A
48 9 29
SucuriScanEvent::notifyEvent()
A
45 8 42
SucuriScan::datetime()
A
50 9 27
SucuriScanAPI::getOfficialChecksums()
A
52 9 24
SucuriScanRequest::request()
A
52 9 23
SucuriScanHook::hookPostStatus()
A
47 8 35
SucuriScanTemplate::sharedParams()
A
47 8 34
SucuriScanEvent::GetPasswordResetKey()
A
48 8 32
sucuriscan_lastlogins_admins()
A
45 7 43
SucuriScanEvent::sendLogsFromQueue()
A
45 7 41
SucuriScan::humanTime()
A
46 7 38
SucuriScanIntegrity::ignoreIntegrityFilepath()
A
40 5 67
SucuriScanFirewall::settingsPage()
A
47 7 35
SucuriScanSettingsPosthack::resetPassword()
A
43 6 49
SucuriScanOption::getPostTypes()
A
49 7 32
SucuriScanSettingsScanner::cronjobsAjax()
S
49 7 30
SucuriScanSettingsPosthack::getPluginsAjax()
S
49 7 29
SucuriScan::iniGet()
S
51 7 28
SucuriScanMail::getEmailSubject()
S
50 7 28
SucuriScanFileInfo::ignoreFile()
S
61 8 12
SucuriScanFileInfo::ignoreFolder()
S
60 8 12
SucuriScanFirewall::settingsExplanation()
S
51 7 26
SucuriScanEvent::reportEvent()
S
46 6 40
SucuriScanOption::getOption()
S
52 7 25
SucuriScanTemplate::pagination()
S
47 6 38
SucuriScanInterface::adminNotice()
S
53 7 22
SucuriScan::getRemoteAddr()
S
54 7 21
sucuriscan_settings_general_timezone()
S
45 6 35
SucuriScanSiteCheck::scanAndCollectData()
S
54 7 20
SucuriScanOption::getAllOptions()
S
54 7 20
sucuriscan_get_all_failed_logins()
S
55 7 19
SucuriScanFileInfo::getDirectoryTreeMd5()
S
48 6 33
SucuriScanSiteCheck::blocklist()
S
48 6 33
SucuriScanHook::hookLoginFailure()
S
54 7 18
SucuriScanHardeningPage::autoSecretKeyUpdater()
S
49 6 32
sucuriscan_htaccess_is_standard()
S
58 7 16
SucuriScanHook::hookWidgetChanges()
S
51 6 27
SucuriScanFirewall::blocklistAjax()
S
50 6 26
sucuriscan_get_user_lastlogin()
S
53 6 23
SucuriScanFirewall::clearCacheAjax()
S
53 6 21
sucuriscan_settings_apiservice_status()
S
47 5 34
SucuriScanCLI::register()
S
55 6 18
SucuriScanSiteCheck::malware()
S
49 5 31
SucuriScanAPI::getAuditLogsFromQueue()
S
49 5 31
SucuriScanFileInfo::isIgnoredPath()
S
58 6 15
SucuriScan::throwException()
S
58 6 15
SucuriScanSettingsIntegrity::diffUtility()
S
50 5 29
SucuriScanCache::datastoreFilePath()
S
59 6 14
SucuriScanCLI::integrity()
S
49 5 29
SucuriScanHook::hookThemeEditor()
S
58 6 14
sucuriscan_unset_online_user()
S
59 6 14
SucuriScanSiteCheck::malwareDetails()
S
50 5 28
SucuriScanTemplate::getModal()
S
50 5 28
SucuriScanHook::hookPluginEditor()
S
59 6 13
sucuriscan_settings_webinfo_htaccess()
S
52 5 27
SucuriScanHook::hookPluginChanges()
S
52 5 25
SucuriScanInterface::handleOldPlugins()
S
52 5 25
sucuriscan_settings_general_reverseproxy()
S
52 5 25
SucuriScanEvent::additionalSchedulesFrequencies()
S
53 5 24
SucuriScanFSScanner::getIgnoredDirectories()
S
54 5 22
SucuriScanHardening::hardenDirectory()
S
53 5 21
SucuriScanAPI::getOriginalCoreFile()
S
54 5 21
SucuriScanTemplate::linksAndNavbar()
S
54 5 19
SucuriScanEvent::activeSchedules()
S
55 5 19
SucuriScanHardeningPage::wpversion()
S
55 5 18
SucuriScanInterface::createStorageFolder()
S
57 5 18
SucuriScanFirewall::apiCallFirewall()
S
57 5 17
SucuriScanCache::datastoreInfo()
S
57 5 17
sucuriscan_settings_alerts_perhour()
S
48 4 32
sucuriscan_get_online_users()
S
58 5 16
SucuriScanOption::getSecurityKeys()
S
51 4 30
sucuriscanUninstall()
S
50 4 30
SucuriScanHook::hookPluginInstall()
S
58 5 14
sucuriscan_settings_alerts_bruteforce()
S
50 4 29
SucuriScan::getIPInfo()
S
59 5 13
SucuriScanCache::dataHasExpired()
S
60 5 13
sucuriscan_failed_logins_datastore_path()
S
61 5 12
SucuriScanHook::hookThemeDelete()
S
60 5 12
sucuriscan_loggedin_users_panel()
S
50 4 27
SucuriScanFirewall::getSettingsAjax()
S
51 4 26
SucuriScanEvent::sendLogToQueue()
S
52 4 26
SucuriScanFirewall::ipAccessAjax()
S
52 4 25
SucuriScanHardeningPage::readme()
S
52 4 23
SucuriScanSiteCheck::recommendations()
S
53 4 23
SucuriScanFirewall::deblocklistAjax()
S
52 4 23
sucuriscan_settings_apiservice_checksums()
S
53 4 22
sucuriscan_lastlogins_page()
S
54 4 21
SucuriScanAPI::registerSite()
S
54 4 21
SucuriScan::siteVersion()
S
54 4 20
SucuriScanOption::setRevProxy()
S
56 4 19
SucuriScanMail::emailsPerHourReached()
S
56 4 18
SucuriScanEvent::setNewPassword()
S
48 3 33
SucuriScanOption::getSiteOptions()
S
57 4 17
SucuriScanHardening::unhardenDirectory()
S
56 4 16
SucuriScanEvent::sendLogToAPI()
S
56 4 16
SucuriScan::getUsersForAPIKey()
S
58 4 16
SucuriScanOption::whatOptionsWereChanged()
S
58 4 16
sucuriscan_login_redirect()
S
63 5 10
sucuriscan_settings_general_resetoptions()
S
58 4 15
SucuriScanSiteCheck::ajaxMalwareScan()
S
51 3 29
SucuriScanCache::getDatastoreInfo()
S
60 4 14
SucuriScanHook::hookProfileUpdate()
S
51 3 29
SucuriScan::isMultiList()
S
61 4 13
SucuriScan::implode()
S
60 4 13
SucuriScanTemplate::getUrl()
S
59 4 13
SucuriScanCache::saveNewEntries()
S
60 4 13
sucuriscan_lastlogins_datastore_is_writable()
S
63 4 12
sucuriscan_selfhosting_fpath()
S
62 4 12
SucuriScanInterface::checkNonce()
S
60 4 12
SucuriScanFirewall::clearCache()
S
60 4 12
SucuriScanFileInfo::getResourceType()
S
63 4 12
SucuriScanCache::get()
S
60 4 12
sucuriscan_settings_apiservice_proxy()
S
52 3 26
SucuriScanAPI::getNewSecretKeys()
S
61 4 11
SucuriScanHook::hookThemeInstall()
S
61 4 11
SucuriScanOption::deleteOption()
S
62 4 11
SucuriScan::allowedHttpHeaders()
S
53 3 25
SucuriScanOption::getDefaultOptionValues()
S
43 1 55
SucuriScanHook::hookPublish()
S
53 3 24
SucuriScanEvent::clearLastLogs()
S
54 3 24
SucuriScanOption::setAddrHeader()
S
55 3 20
SucuriScanHardeningPage::drawSection()
S
55 3 20
SucuriScanHardeningPage::firewall()
S
55 3 20
SucuriScanCache::validKeyName()
S
52 3 20
sucuriscan_settings_page()
S
43 1 47
SucuriScanHardeningPage::nginxphp()
S
57 3 17
SucuriScanHook::hookPostBeforeDelete()
S
56 3 17
SucuriScanTemplate::selectOptions()
S
58 3 16
SucuriScan::getHtaccessPath()
S
58 3 16
SucuriScanInterface::startupChecks()
S
59 3 16
SucuriScanFirewall::isValidKey()
S
67 4 7
SucuriScanAPI::setPluginKey()
S
64 4 9
SucuriScanHook::hookCoreUpdate()
S
63 4 10
SucuriScanAPI::getLogsHotfix()
S
58 3 15
SucuriScanFileInfo::isSplAvailable()
S
67 4 8
SucuriScanFirewall::auditlogs()
S
59 3 14
SucuriScanFirewall::clearAutoCacheAjax()
S
59 3 14
SucuriScanHardening::allow()
S
59 3 14
SucuriScanEvent::reportSiteVersion()
S
61 3 12
SucuriScanEvent::runFileScanner()
S
61 3 12
SucuriScanSettingsPosthack::resetPasswordAjax()
S
61 3 12
SucuriScanCommand::exists()
S
61 3 12
SucuriScanHook::hookPostDelete()
S
60 3 12
SucuriScan::orderedHttpHeaders()
S
61 3 12
SucuriScanEvent::filesystemScan()
S
61 3 12
SucuriScanAPI::apiCallWordpress()
S
61 3 12
SucuriScanHardening::removeFromAllowlist()
S
61 3 11
SucuriScanCache::set()
S
61 3 11
SucuriScanSiteCheck::scriptsTitle()
S
62 3 11
SucuriScanCache::delete()
S
62 3 11
SucuriScanSiteCheck::scriptsContent()
S
63 3 11
SucuriScanSiteCheck::targetURLOption()
S
62 3 11
SucuriScanInterface::noticeAfterUpdate()
S
62 3 11
SucuriScanInterface::enqueueScripts()
S
54 2 25
SucuriScanHardeningPage::adminuser()
S
52 2 24
sucuriscan_ajax()
S
54 2 23
sucuriscanAddMenuPage()
S
56 2 21
sucuriscan_page()
S
54 2 21
SucuriScanHook::hookLinkAdd()
S
56 2 20
sucuriscan_set_lastlogin()
S
55 2 20
SucuriScanHook::hookLinkEdit()
S
56 2 20
SucuriScanHook::hookUserRegister()
S
55 2 20
sucuriscan_log_failed_login()
S
56 2 19
SucuriScanHook::hookAddUserToBlog()
S
58 2 17
SucuriScanAPI::recoverKey()
S
57 2 17
SucuriScanIntegrity::diffUtility()
S
58 2 16
SucuriScanHook::hookRemoveUserFromBlog()
S
58 2 16
SucuriScanHook::hookPostTrash()
S
59 2 16
SucuriScanAuditLogs::sortByDate()
S
69 3 6
SucuriScanCommand::diff()
S
60 2 15
SucuriScanFirewall::settings()
S
65 3 8
SucuriScanSettingsPosthack::availableUpdatesAjax()
S
63 3 10
SucuriScanInterface::initialize()
S
68 3 7
SucuriScanSiteCheck::linksTitle()
S
66 3 7
sucuriscan_lastlogins_datastore_exists()
S
68 3 7
sucuriscan_lastlogins_datastore_is_readable()
S
69 3 7
SucuriScanInterface::checkPageVisibility()
S
68 3 6
SucuriScanAPI::getPluginKey()
S
68 3 7
SucuriScanSiteCheck::iFramesTitle()
S
66 3 7
SucuriScanHook::hookLoginFormResetpass()
S
71 3 5
SucuriScanOption::updateOption()
S
64 3 9
SucuriScanCrons::sucuriscan_autoseckeyupdater()
S
63 3 10
SucuriScanEvent::addScheduledTask()
S
63 3 10
SucuriScanFSScanner::getFilesystemRuntime()
S
65 3 10
SucuriScan::varPrefix()
S
64 3 10
SucuriScan::isValidCIDR()
S
65 3 9
SucuriScan::isBehindFirewall()
S
60 2 14
SucuriScanHook::hookAttachmentAdd()
S
60 2 13
SucuriScanEvent::availableSchedules()
S
60 2 13
SucuriScanFirewall::getKey()
S
60 2 13
SucuriScanAPI::getAuditLogs()
S
61 2 13
SucuriScanAPI::checksumAPI()
S
61 2 13
SucuriScanSiteCheck::runMalwareScan()
S
61 2 11
SucuriScanHardening::fixPreviousHardening()
S
62 2 11
SucuriScanHardening::allowlistRule()
S
59 1 16
sucuriscan_save_online_users()
S
67 2 8
SucuriScan::fixPath()
S
71 2 5
SucuriScanSiteCheck::targetURL()
S
69 2 7
SucuriScanEvent::deleteScheduledTask()
S
69 2 7
SucuriScanFirewall::clearCacheHook()
S
69 2 7
SucuriScanCache::getCount()
S
70 2 6
SucuriScan::getConfigPath()
S
68 2 7
SucuriScanCache::exists()
S
67 2 7
SucuriScanHook::hookRetrievePassword()
S
73 2 4
SucuriScanHook::hookThemeSwitch()
S
69 2 6
SucuriScanHardening::isHardened()
S
63 2 10
SucuriScanIntegrity::ajaxIntegrityDiffUtility()
S
63 2 10
SucuriScanAuditLogs::ajaxAuditLogsSendLogs()
S
70 2 6
SucuriScanIntegrity::ajaxIntegrity()
S
70 2 6
SucuriScanHook::hookCategoryCreate()
S
68 2 6
SucuriScan::excerpt()
S
68 2 7
SucuriScan::dataStorePath()
S
63 2 10
SucuriScanHardeningPage::processRequest()
S
75 2 4
SucuriScanHook::hookLoginSuccess()
S
69 2 6
SucuriScanTemplate::visibility()
S
78 2 3
SucuriScan::getSiteEmail()
S
69 2 7
SucuriScanAPI::parseMultipleEntries()
S
68 2 7
SucuriScanEvent::installScheduledTask()
S
70 2 6
SucuriScanHardeningPage::containsConstant()
S
76 2 3
SucuriScanAPI::buildQuery()
S
66 2 8
SucuriScan::getDomain()
S
67 2 7
SucuriScan::noAdminInit()
S
71 2 6
SucuriScanAPI::checksumAlgorithm()
S
77 2 3
SucuriScanTemplate::getBaseTemplate()
S
69 2 6
SucuriScanCache::getAll()
S
68 2 7
SucuriScanAPI::checksum()
S
67 2 7
SucuriScanOption::getDefaultOptions()
S
62 2 10
SucuriScan::isMultiSite()
S
78 2 3
SucuriScan::adminURL()
S
71 2 6
SucuriScanTemplate::pageNumber()
S
74 2 4
SucuriScanOption::getIgnoredEvents()
S
68 2 7
SucuriScanFirewall::shouldAutoClearCache()
S
71 2 6
SucuriScanFileInfo::fileContent()
S
77 2 3
SucuriScanSiteCheck::linksContent()
S
74 2 4
SucuriScanAPI::getRemotePluginData()
S
73 2 4
SucuriScanSettingsPosthack::resetPlugins()
S
64 2 10
SucuriScanAPI::sendHashes()
S
66 2 8
SucuriScanIntegrity::integrityTree()
S
66 2 8
SucuriScan::getUserAgent()
S
70 2 6
SucuriScanSiteCheck::iFramesContent()
S
74 2 4
SucuriScanFirewall::clearCachePage()
S
67 2 8
sucuriscan_reset_failed_logins()
S
61 1 13
SucuriScanHardening::getRules()
S
63 1 13
SucuriScanFirewall::auditlogsPage()
S
65 1 8
SucuriScanOption::isEnabled()
S
78 1 3
sucuriscan_failed_logins_default_content()
S
83 1 3
SucuriScan::isValidEmail()
S
78 1 3
SucuriScanAuditLogs::pageAuditLogs()
S
72 1 5
SucuriScan::isIISServer()
S
77 1 3
SucuriScanCache::datastoreDefaultInfo()
S
68 1 8
SucuriScanFSScanner::unignoreDirectory()
S
75 1 4
SucuriScanOption::isDisabled()
S
78 1 3
sucuriscan_unset_online_user_on_logout()
S
71 1 6
SucuriScanTemplate::getSection()
S
74 1 4
SucuriScanMail::prettifyMails()
S
79 1 3
SucuriScanHardeningPage::wpgenerator()
S
64 1 9
SucuriScanHook::hookPublishPostXMLRPC()
S
80 1 3
SucuriScanHardening::htaccess()
S
71 1 5
SucuriScanEvent::reportNoticeEvent()
S
78 1 3
SucuriScanHook::hookPublishPost()
S
80 1 3
SucuriScanTemplate::getSnippet()
S
74 1 4
SucuriScan::isNginxServer()
S
77 1 3
SucuriScanSettingsPosthack::availableUpdates()
S
75 1 4
SucuriScan::isValidIP()
S
78 1 3
sucuriscan_lastlogins_datastore_filepath()
S
81 1 3
SucuriScanEvent::reportInfoEvent()
S
78 1 3
SucuriScanAPI::isValidKey()
S
78 1 3
SucuriScanAPI::getAuditEventTypes()
S
64 1 10
SucuriScanSiteCheck::cacheLifetime()
S
67 1 7
SucuriScanOption::getDefaultOptionNames()
S
73 1 5
SucuriScan::runScheduledTask()
S
70 1 7
SucuriScanFileInfo::sortByLength()
S
79 1 3
SucuriScanRequest::getOrPost()
S
78 1 3
SucuriScanCache::__construct()
S
73 1 5
sucuriscanResetAndDeactivate()
S
77 1 4
SucuriScanRequest::post()
S
78 1 3
SucuriScanRequest::get()
S
78 1 3
SucuriScanCommand::canExecuteCommands()
S
71 1 5
SucuriScanCache::add()
S
79 1 3
SucuriScanHook::hookWidgetAdd()
S
80 1 3
SucuriScan::humanFileSize()
S
62 1 9
SucuriScanCache::override()
S
68 1 8
SucuriScan::fileVersion()
S
77 1 3
SucuriScanHardening::getAllowlist()
S
69 1 6
SucuriScanOption::isIgnoredEvent()
S
72 1 5
SucuriScanEvent::reportWarningEvent()
S
78 1 3
SucuriScanCache::createdAt()
S
75 1 4
SucuriScanInterface::info()
S
75 1 4
SucuriScan::escape()
S
80 1 3
SucuriScanIntegrity::pageIntegrity()
S
73 1 5
SucuriScanOption::optionsFilePath()
S
79 1 3
SucuriScan::secretKeyPattern()
S
81 1 3
SucuriScan::supportReverseProxy()
S
80 1 3
SucuriScanHook::hookWidgetDelete()
S
80 1 3
SucuriScanFileInfo::fileLines()
S
78 1 3
SucuriScan::getAdminUsers()
S
79 1 3
SucuriScanCache::flush()
S
74 1 4
SucuriScanFSScanner::ignoreDirectory()
S
64 1 10
SucuriScanPluginInstallerSkin::feedback()
S
91 1 2
SucuriScanEvent::reportErrorEvent()
S
78 1 3
SucuriScan::getTopLevelDomain()
S
79 1 3
SucuriScan::getUserByID()
S
79 1 3
SucuriScanOption::writeNewOptions()
S
67 1 7
SucuriScanFileInfo::getDirectoriesOnly()
S
75 1 4
sucuriscan_firewall_page()
S
64 1 10
SucuriScanCache::updatedAt()
S
75 1 4
SucuriScanHook::hookPluginActivate()
S
78 1 3
SucuriScanFileInfo::__construct()
S
70 1 7
sucuriscan_load_plugin_textdomain()
S
78 1 3
SucuriScanHook::hookPluginDeactivate()
S
78 1 3
SucuriScan::getRemoteAddrHeader()
S
79 1 3
SucuriScan::runAdminInit()
S
78 1 3
SucuriScanHook::hookUserDelete()
S
77 1 3
sucuriscanMainPages()
S
67 1 8
SucuriScanHook::hookPublishPhone()
S
80 1 3
SucuriScanInterface::error()
S
75 1 4
SucuriScanHook::hookPublishPage()
S
80 1 3
SucuriScanFirewall::ipAccessPage()
S
75 1 4
SucuriScanTemplate::getAjaxUrl()
S
78 1 3
SucuriScanEvent::reportDebugEvent()
S
78 1 3
SucuriScanEvent::reportCriticalEvent()
S
78 1 3
SucuriScanPluginInstallerSkin::feedback()
S
91 1 2
SucuriScan::hasSucuriClientIPHeader()
S
79 1 3