MCProtectFW D

Total Complexity 326
Dependencies 9
Dependents 2
Total lines 1,409
Lines of code 1,041
Logical lines of code 602
Comment lines 2
Methods 79
Properties 41

Methods 79

Method Rating Maintainability Complexity Lines of code
__construct()
D
32 45 88
profileRequestData()
C
34 25 89
initWPFRule()
B
45 17 35
initRules()
A
46 16 37
handleRequestOnRuleMatch()
A
46 13 36
loadWPUser()
A
49 8 28
getCurrentWPUserRoleLevel()
A
57 8 18
getRequestDataToLog()
S
47 6 34
blockRequestForBlacklistedIP()
S
62 7 12
profileRequest()
S
52 6 24
getPostParamsToLog()
S
53 6 23
setBypassCookie()
S
61 6 12
handleWPPreInsertUserData()
S
53 5 25
handleRequestOnInsertUserMeta()
S
54 5 21
setWPUserCookieHandler()
S
58 5 14
addWPHook()
S
58 4 15
setIPCookie()
S
62 5 10
handleRequestOnWPInsertPostEmptyContent()
S
58 4 15
getHeadersToLog()
S
61 4 13
getCookiesToLog()
S
61 4 13
canRequestBypassFirewall()
S
62 4 12
matchCount()
S
61 4 12
getCurrentWPUserCapabilities()
S
62 4 12
getInstance()
S
62 4 11
terminateRequest()
S
54 3 23
getUserBy()
S
71 4 5
canLogRequest()
S
65 4 9
isRequestHasValidBypassCookie()
S
64 4 9
canInitWPFRules()
S
75 4 4
init()
S
61 3 14
handleRequestOnDeleteUser()
S
60 3 13
updateRuleLog()
S
62 3 13
getLength()
S
63 3 11
handleRequestOnSendAuthCookies()
S
55 2 20
handleRequestOnSetAuthCookie()
S
55 2 19
handleRequestOnUpdateUserMetadata()
S
56 2 18
handleRequestOnUpdateUserMeta()
S
58 2 16
setWPUserCookie()
S
72 3 5
setAdminCookie()
S
72 3 5
canLogPostValue()
S
70 3 6
setCookie()
S
62 3 10
canLogCookieValue()
S
70 3 6
canLogHeaderValue()
S
70 3 6
handleRequestOnAddUserMeta()
S
59 2 15
canLogValue()
S
67 3 8
handleRequestOnUserRegister()
S
60 2 13
getCurrentWPUser()
S
60 2 13
handleRequestOnPreDeletePost()
S
60 2 13
getUserLogData()
S
61 2 13
handleAddOption()
S
63 2 11
handleRequestOnPasswordReset()
S
62 2 11
log()
S
74 2 5
getBVCookies()
S
67 2 8
setShutdownCallback()
S
71 2 6
getWPFRules()
S
71 2 6
handleRequestOnInit()
S
69 2 7
handleRequestOnDeleteOption()
S
66 2 8
pushWPFRule()
S
70 2 6
handleRequestOnPreUpdateOption()
S
64 2 9
inspectRequest()
S
64 2 9
isPrependMode()
S
80 1 3
isRequestIPWhitelisted()
S
80 1 3
isLoggingModeVisitor()
S
80 1 3
isWPMode()
S
80 1 3
uninstall()
S
80 1 3
isGeoBlockingEnabled()
S
80 1 3
isLoggingModeComplete()
S
80 1 3
initRule()
S
80 1 3
isWPFRuleInitModePrepend()
S
80 1 3
isModeDisabled()
S
80 1 3
isWPFRuleInitModeWP()
S
80 1 3
isModeProtect()
S
80 1 3
generateBypassCookie()
S
74 1 4
isIPCookieEnabled()
S
80 1 3
unsetCookie()
S
75 1 4
isRulesModeProtect()
S
80 1 3
isRequestProfilingModeDebug()
S
80 1 3
isRequestProfilingDisabled()
S
80 1 3
isAdminCookieEnabled()
S
80 1 3