wfUtils D

Total Complexity 750
Dependencies 18
Dependents 42
Total lines 3,338
Lines of code 2,513
Logical lines of code 1,526
Comment lines 582
Methods 158
Properties 4

Methods 158

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
parse_version()
B
38 20 68
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
compareSiteUrls()
A
51 9 23
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
pregExtract()
S
50 6 31
unifiedTrustedProxies()
S
56 7 16
formatLocalTime()
S
49 6 29
check_and_log_last_error()
S
53 6 22
rangeToCIDRs()
S
52 6 21
getIPPreview()
S
53 6 21
wpSiteURL()
S
55 6 19
refreshCachedSiteURL()
S
56 6 19
wpHomeURL()
S
55 6 19
refreshCachedHomeURL()
S
56 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
resolvePort()
S
64 5 9
doNotCache()
S
64 5 10
requestMaxMemory()
S
62 5 10
hostNotExcludedFromProxy()
S
58 4 15
useMySQLi()
S
68 5 6
getPluginBaseDir()
S
61 4 13
getIP()
S
60 4 13
fileOver2Gigs()
S
60 4 13
htaccessAppend()
S
61 4 11
htaccessPrepend()
S
61 4 11
sets_equal()
S
63 4 11
funcEnabled()
S
64 4 9
isWindows()
S
63 4 10
inet_ntop()
S
68 4 6
whitelistPresets()
S
60 3 14
hideReadme()
S
60 3 12
showReadme()
S
60 3 12
getWPVersion()
S
63 3 12
longestLine()
S
63 3 11
longestNospace()
S
63 3 11
versionedAsset()
S
64 3 9
hex2bin()
S
71 3 5
htaccess()
S
68 3 7
jsonEncodeSafely()
S
64 3 10
isNginx()
S
67 3 7
getScanLock()
S
66 3 8
getHomePath()
S
66 3 8
inet_pton()
S
71 2 5
arrayReplaceKey()
S
65 2 8
isAdminPageMU()
S
70 2 6
decrypt()
S
64 2 9
getIPGeo()
S
67 2 8
encrypt()
S
64 2 9
clearScanLock()
S
64 2 10
tmpl()
S
69 2 6
getIPForField()
S
66 2 8
extractHostname()
S
68 2 7
isFullSSL()
S
77 2 3
normalizedTime()
S
68 2 7
array_strtolower()
S
69 2 7
array_last()
S
68 2 7
array_first()
S
69 2 7
substr()
S
69 2 6
truthyToInt()
S
78 2 3
isValidEmail()
S
69 2 6
substr_count()
S
69 2 6
iniSet()
S
72 2 5
error_clear_last()
S
65 2 10
formatBytes()
S
64 2 8
isCurlSupported()
S
72 2 5
requireIpLocator()
S
75 2 4
pluralize()
S
64 2 9
includeOnceIfPresent()
S
69 2 7
isUABlocked()
S
76 2 3
isRefererBlocked()
S
76 2 3
last_error()
S
65 2 8
siteURLRelative()
S
64 2 10
countryCode2Name()
S
66 2 8
endProcessingFile()
S
74 2 5
cleanPHPVersion()
S
68 2 7
errorsOn()
S
71 2 5
setcookie()
S
67 2 7
getLastError()
S
69 2 7
hasXSS()
S
69 2 7
errorsOff()
S
67 2 7
geoIPVersion()
S
72 2 5
makeRandomIP()
S
76 1 3
strrpos()
S
75 1 4
denormalizedTime()
S
74 1 4
isValidJsonValue()
S
79 1 3
getBaseURL()
S
78 1 3
generateJWT()
S
65 1 8
hasIPv6Support()
S
80 1 3
base64url_encode()
S
68 1 7
base64url_decode()
S
70 1 6
inet_ntoa()
S
75 1 4
inet_aton()
S
74 1 4
splitPath()
S
78 1 3
bigRandomHex()
S
79 1 3
strtoupper()
S
75 1 4
set_html_content_type()
S
81 1 3
shouldDisplayRegion()
S
74 1 4
extractBareURI()
S
70 1 6
IP2Country()
S
76 1 4
localHumanDate()
S
77 1 3
localHumanDateShort()
S
77 1 3
beginProcessingFile()
S
89 1 2
cleanupOneEntryPerLine()
S
73 1 4
_resetErrorsHandler()
S
89 1 2
send_json()
S
76 1 4
getSiteBaseURL()
S
78 1 3
expandIPv6Address()
S
71 1 5
htmlEmail()
S
70 1 6
strpos()
S
75 1 4
logCaller()
S
69 1 6
lcmem()
S
69 1 6
uuid()
S
65 1 9
editUserLink()
S
79 1 3
isValidIP()
S
78 1 3
isIPv6MappedIPv4()
S
78 1 3
reset_mbstring_encoding()
S
80 1 3
callMBSafeStrFunction()
S
70 1 6
strlen()
S
75 1 4
stripos()
S
75 1 4
strtolower()
S
75 1 4
patternToRegex()
S
70 1 5