wfUtils D

Total Complexity 703
Dependencies 18
Dependents 41
Total lines 3,136
Lines of code 2,366
Logical lines of code 1,421
Comment lines 552
Methods 153
Properties 4

Methods 153

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
filterInvalidJsonValues()
A
49 9 33
relativePath()
A
52 9 23
isValidCIDRRange()
A
57 9 14
base32_encode()
A
44 7 43
isAdmin()
A
55 8 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
wpSiteURL()
S
55 6 19
refreshCachedSiteURL()
S
56 6 19
getIPWhitelist()
S
56 6 17
getRequestedURL()
S
58 6 15
truthyToBoolean()
S
59 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
doNotCache()
S
64 5 10
hostNotExcludedFromProxy()
S
58 4 15
requestMaxMemory()
S
62 5 10
useMySQLi()
S
68 5 6
getPluginBaseDir()
S
61 4 13
fileOver2Gigs()
S
60 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
64 4 9
inet_ntop()
S
68 4 6
whitelistPresets()
S
60 3 14
getWPVersion()
S
63 3 12
showReadme()
S
60 3 12
hideReadme()
S
60 3 12
longestLine()
S
63 3 11
longestNospace()
S
63 3 11
getHomePath()
S
66 3 8
hex2bin()
S
71 3 5
isNginx()
S
67 3 7
getScanLock()
S
66 3 8
versionedAsset()
S
64 3 9
htaccess()
S
68 3 7
jsonEncodeSafely()
S
64 3 10
array_first()
S
69 2 7
arrayReplaceKey()
S
65 2 8
hasXSS()
S
69 2 7
getLastError()
S
69 2 7
setcookie()
S
67 2 7
array_last()
S
68 2 7
isFullSSL()
S
77 2 3
substr_count()
S
69 2 6
array_strtolower()
S
69 2 7
getIPGeo()
S
67 2 8
last_error()
S
65 2 8
isAdminPageMU()
S
70 2 6
pluralize()
S
64 2 9
formatBytes()
S
64 2 8
cleanPHPVersion()
S
68 2 7
inet_pton()
S
71 2 5
isCurlSupported()
S
72 2 5
includeOnceIfPresent()
S
69 2 7
truthyToInt()
S
78 2 3
extractHostname()
S
68 2 7
getIPForField()
S
66 2 8
isValidEmail()
S
69 2 6
tmpl()
S
69 2 6
encrypt()
S
64 2 9
decrypt()
S
64 2 9
error_clear_last()
S
65 2 10
substr()
S
69 2 6
geoIPVersion()
S
72 2 5
clearScanLock()
S
64 2 10
isRefererBlocked()
S
76 2 3
isUABlocked()
S
76 2 3
iniSet()
S
72 2 5
errorsOff()
S
67 2 7
siteURLRelative()
S
64 2 10
errorsOn()
S
71 2 5
countryCode2Name()
S
66 2 8
endProcessingFile()
S
74 2 5
requireIpLocator()
S
75 2 4
normalizedTime()
S
68 2 7
base64url_encode()
S
68 1 7
strpos()
S
75 1 4
denormalizedTime()
S
74 1 4
isValidJsonValue()
S
79 1 3
splitPath()
S
78 1 3
strtoupper()
S
75 1 4
strrpos()
S
75 1 4
strtolower()
S
75 1 4
generateJWT()
S
65 1 8
base64url_decode()
S
70 1 6
patternToRegex()
S
70 1 5
stripos()
S
75 1 4
cleanupOneEntryPerLine()
S
73 1 4
inet_ntoa()
S
75 1 4
inet_aton()
S
74 1 4
hasIPv6Support()
S
80 1 3
getBaseURL()
S
78 1 3
makeRandomIP()
S
76 1 3
isIPv6MappedIPv4()
S
78 1 3
isValidIP()
S
78 1 3
editUserLink()
S
79 1 3
bigRandomHex()
S
79 1 3
lcmem()
S
69 1 6
logCaller()
S
69 1 6
getSiteBaseURL()
S
78 1 3
beginProcessingFile()
S
89 1 2
strlen()
S
75 1 4
shouldDisplayRegion()
S
74 1 4
extractBareURI()
S
70 1 6
IP2Country()
S
76 1 4
localHumanDate()
S
77 1 3
_resetErrorsHandler()
S
89 1 2
send_json()
S
76 1 4
expandIPv6Address()
S
71 1 5
set_html_content_type()
S
81 1 3
htmlEmail()
S
70 1 6
uuid()
S
65 1 9
reset_mbstring_encoding()
S
80 1 3
callMBSafeStrFunction()
S
70 1 6
localHumanDateShort()
S
77 1 3