wfUtils D

Total Complexity 677
Dependencies 18
Dependents 38
Total lines 3,080
Lines of code 2,321
Logical lines of code 1,397
Comment lines 536
Methods 146
Properties 4

Methods 146

Method Rating Maintainability Complexity Lines of code
getCleanIPAndServerVar()
C
36 26 78
array_column()
C
39 27 60
requestDetectProxyCallback()
B
34 21 83
subnetContainsIP()
B
25
12 175
serverIPs()
B
39 19 60
getIPsGeo()
B
36 17 77
getCleanIP()
B
41 18 59
potentialBinaryStringToHTML()
B
37 16 72
makeTimeAgo()
B
40 16 59
_home_url_nofilter()
A
46 15 35
CIDR2wfUserIPRange()
A
42 14 47
_site_url_nofilter()
A
47 14 32
reverseLookup()
A
45 12 41
processDetectProxyCallback()
A
46 12 37
getIPAndServerVariable()
A
48 12 34
_inet_ntop()
A
46 11 36
makeDuration()
A
47 11 35
whitelistedServiceIPs()
A
54 12 19
wafInstallationType()
A
53 11 20
_inet_pton()
A
48 10 30
relativePath()
A
52 9 23
isValidCIDRRange()
A
57 9 14
base32_encode()
A
44 7 43
isAdmin()
A
55 8 24
getScanFileError()
S
52 7 24
hasTwoFactorEnabled()
S
55 7 19
fileTooBig()
S
55 7 18
mbstring_binary_safe_encoding()
S
56 7 17
formatLocalTime()
S
49 6 29
check_and_log_last_error()
S
53 6 22
rangeToCIDRs()
S
52 6 21
getIPPreview()
S
53 6 21
refreshCachedHomeURL()
S
56 6 19
wpHomeURL()
S
55 6 19
refreshCachedSiteURL()
S
56 6 19
wpSiteURL()
S
55 6 19
getIPWhitelist()
S
56 6 17
getRequestedURL()
S
58 6 15
truthyToBoolean()
S
59 6 15
parseLocalTime()
S
50 5 27
IP2Country()
S
53 5 23
decodeJWT()
S
54 5 19
rangeToCIDRsIPv4()
S
55 5 17
resolveDomainName()
S
57 5 16
wpAdminURL()
S
58 5 15
getAllServerVariableIPs()
S
59 5 13
hasLoginCookie()
S
61 5 12
isPrivateAddress()
S
61 5 11
geoIPVersion()
S
53 4 23
timeZoneMinutes()
S
55 4 19
doNotCache()
S
64 5 10
requestMaxMemory()
S
62 5 10
hostNotExcludedFromProxy()
S
58 4 15
fileOver2Gigs()
S
60 4 13
getPluginBaseDir()
S
61 4 13
getIP()
S
60 4 13
htaccessPrepend()
S
61 4 11
htaccessAppend()
S
61 4 11
sets_equal()
S
63 4 11
isWindows()
S
63 4 10
funcEnabled()
S
65 4 8
inet_ntop()
S
68 4 6
whitelistPresets()
S
60 3 14
showReadme()
S
60 3 12
getWPVersion()
S
63 3 12
hideReadme()
S
60 3 12
longestNospace()
S
63 3 11
longestLine()
S
63 3 11
isNginx()
S
67 3 7
getScanLock()
S
66 3 8
versionedAsset()
S
64 3 9
hex2bin()
S
71 3 5
htaccess()
S
68 3 7
arrayReplaceKey()
S
65 2 8
array_strtolower()
S
69 2 7
getIPForField()
S
66 2 8
isAdminPageMU()
S
70 2 6
extractHostname()
S
68 2 7
pluralize()
S
64 2 9
array_first()
S
69 2 7
array_last()
S
68 2 7
hasXSS()
S
69 2 7
isFullSSL()
S
77 2 3
getLastError()
S
69 2 7
substr_count()
S
69 2 6
setcookie()
S
67 2 7
normalizedTime()
S
68 2 7
isValidEmail()
S
69 2 6
siteURLRelative()
S
64 2 10
errorsOff()
S
67 2 7
errorsOn()
S
71 2 5
encrypt()
S
64 2 9
getIPGeo()
S
67 2 8
countryCode2Name()
S
66 2 8
clearScanLock()
S
64 2 10
formatBytes()
S
64 2 8
cleanPHPVersion()
S
68 2 7
inet_pton()
S
71 2 5
decrypt()
S
64 2 9
endProcessingFile()
S
71 2 6
iniSet()
S
72 2 5
truthyToInt()
S
78 2 3
isUABlocked()
S
76 2 3
isRefererBlocked()
S
76 2 3
error_clear_last()
S
65 2 10
tmpl()
S
69 2 6
last_error()
S
65 2 8
substr()
S
69 2 6
strtolower()
S
75 1 4
strpos()
S
75 1 4
getSiteBaseURL()
S
78 1 3
strtoupper()
S
75 1 4
strrpos()
S
75 1 4
inet_ntoa()
S
75 1 4
strlen()
S
75 1 4
denormalizedTime()
S
74 1 4
base64url_encode()
S
68 1 7
base64url_decode()
S
70 1 6
generateJWT()
S
65 1 8
splitPath()
S
78 1 3
stripos()
S
75 1 4
htmlEmail()
S
70 1 6
callMBSafeStrFunction()
S
70 1 6
_resetErrorsHandler()
S
89 1 2
cleanupOneEntryPerLine()
S
73 1 4
logCaller()
S
69 1 6
beginProcessingFile()
S
78 1 3
lcmem()
S
69 1 6
shouldDisplayRegion()
S
74 1 4
extractBareURI()
S
70 1 6
bigRandomHex()
S
79 1 3
localHumanDate()
S
77 1 3
localHumanDateShort()
S
77 1 3
editUserLink()
S
79 1 3
reset_mbstring_encoding()
S
80 1 3
send_json()
S
76 1 4
isValidIP()
S
78 1 3
expandIPv6Address()
S
71 1 5
set_html_content_type()
S
81 1 3
uuid()
S
65 1 9
isIPv6MappedIPv4()
S
78 1 3
makeRandomIP()
S
76 1 3
getBaseURL()
S
78 1 3
hasIPv6Support()
S
80 1 3
inet_aton()
S
74 1 4
patternToRegex()
S
70 1 5