wfUtils D

Total Complexity 692
Dependencies 19
Dependents 41
Total lines 3,100
Lines of code 2,339
Logical lines of code 1,406
Comment lines 544
Methods 150
Properties 4

Methods 150

Method Rating Maintainability Complexity Lines of code
getCleanIPAndServerVar()
C
36 26 78
array_column()
C
39 27 60
getIPsGeo()
C
32 22 99
requestDetectProxyCallback()
B
34 21 83
subnetContainsIP()
B
25
12 175
serverIPs()
B
39 19 60
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
resolveDomainName()
A
51 12 25
_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
getIPPreview()
S
53 6 21
rangeToCIDRs()
S
52 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
truthyToBoolean()
S
59 6 15
getRequestedURL()
S
58 6 15
parseLocalTime()
S
50 5 27
decodeJWT()
S
54 5 19
rangeToCIDRsIPv4()
S
55 5 17
wpAdminURL()
S
58 5 15
getAllServerVariableIPs()
S
59 5 13
hasLoginCookie()
S
61 5 12
isPrivateAddress()
S
61 5 11
timeZoneMinutes()
S
55 4 19
requestMaxMemory()
S
62 5 10
doNotCache()
S
64 5 10
hostNotExcludedFromProxy()
S
58 4 15
getPluginBaseDir()
S
61 4 13
getIP()
S
60 4 13
fileOver2Gigs()
S
60 4 13
htaccessAppend()
S
61 4 11
sets_equal()
S
63 4 11
htaccessPrepend()
S
61 4 11
isWindows()
S
63 4 10
inet_ntop()
S
68 4 6
funcEnabled()
S
65 4 8
whitelistPresets()
S
60 3 14
hideReadme()
S
60 3 12
getWPVersion()
S
63 3 12
showReadme()
S
60 3 12
longestLine()
S
63 3 11
longestNospace()
S
63 3 11
versionedAsset()
S
64 3 9
isNginx()
S
67 3 7
hex2bin()
S
71 3 5
htaccess()
S
68 3 7
getScanLock()
S
66 3 8
getHomePath()
S
66 3 8
arrayReplaceKey()
S
65 2 8
isFullSSL()
S
77 2 3
substr()
S
69 2 6
substr_count()
S
69 2 6
array_first()
S
69 2 7
hasXSS()
S
69 2 7
array_last()
S
68 2 7
array_strtolower()
S
69 2 7
getLastError()
S
69 2 7
normalizedTime()
S
68 2 7
setcookie()
S
67 2 7
includeOnceIfPresent()
S
69 2 7
isCurlSupported()
S
72 2 5
siteURLRelative()
S
64 2 10
getIPGeo()
S
67 2 8
truthyToInt()
S
78 2 3
decrypt()
S
64 2 9
encrypt()
S
64 2 9
last_error()
S
65 2 8
endProcessingFile()
S
71 2 6
inet_pton()
S
71 2 5
clearScanLock()
S
64 2 10
isValidEmail()
S
69 2 6
errorsOff()
S
67 2 7
errorsOn()
S
71 2 5
countryCode2Name()
S
66 2 8
tmpl()
S
69 2 6
requireIpLocator()
S
75 2 4
extractHostname()
S
68 2 7
getIPForField()
S
66 2 8
geoIPVersion()
S
72 2 5
cleanPHPVersion()
S
68 2 7
formatBytes()
S
64 2 8
iniSet()
S
72 2 5
isUABlocked()
S
76 2 3
isRefererBlocked()
S
76 2 3
pluralize()
S
64 2 9
error_clear_last()
S
65 2 10
isAdminPageMU()
S
70 2 6
isIPv6MappedIPv4()
S
78 1 3
strrpos()
S
75 1 4
strtoupper()
S
75 1 4
_resetErrorsHandler()
S
89 1 2
makeRandomIP()
S
76 1 3
getBaseURL()
S
78 1 3
denormalizedTime()
S
74 1 4
hasIPv6Support()
S
80 1 3
inet_aton()
S
74 1 4
base64url_encode()
S
68 1 7
base64url_decode()
S
70 1 6
generateJWT()
S
65 1 8
inet_ntoa()
S
75 1 4
splitPath()
S
78 1 3
isValidIP()
S
78 1 3
bigRandomHex()
S
79 1 3
strpos()
S
75 1 4
uuid()
S
65 1 9
send_json()
S
76 1 4
localHumanDateShort()
S
77 1 3
localHumanDate()
S
77 1 3
expandIPv6Address()
S
71 1 5
set_html_content_type()
S
81 1 3
htmlEmail()
S
70 1 6
IP2Country()
S
76 1 4
extractBareURI()
S
70 1 6
shouldDisplayRegion()
S
74 1 4
beginProcessingFile()
S
78 1 3
strtolower()
S
75 1 4
cleanupOneEntryPerLine()
S
73 1 4
getSiteBaseURL()
S
78 1 3
logCaller()
S
69 1 6
lcmem()
S
69 1 6
editUserLink()
S
79 1 3
reset_mbstring_encoding()
S
80 1 3
callMBSafeStrFunction()
S
70 1 6
strlen()
S
75 1 4
stripos()
S
75 1 4
patternToRegex()
S
70 1 5