wfAuditLog D

Total Complexity 302
Dependencies 16
Dependents 2
Total lines 1,481
Lines of code 1,003
Logical lines of code 630
Comment lines 304
Methods 55
Properties 7

Methods 55

Method Rating Maintainability Complexity Lines of code
_sendAuditLogEvents()
B
39 22 58
_savePending()
B
40 16 61
_sanitizePost()
B
45 17 37
_recordAction()
A
41 14 53
_sanitizeUserdata()
A
47 15 35
_sanitizeRequestBody()
A
42 13 54
sendPendingAuditEvents()
A
43 12 48
_scheduleSendPendingAuditEvents()
A
53 12 21
_resolvePlugin()
A
50 11 29
_formatEventForTransmission()
A
47 9 34
_updateAuditPreview()
S
49 7 30
_sanitizeAppPassword()
S
59 8 13
_getTheme()
S
47 6 38
_normalizedPayloadHash()
S
53 7 23
mode()
S
53 7 22
_addObserver()
S
55 7 20
_isScheduledAuditEventCronOverdue()
S
56 7 18
auditPreview()
S
47 5 39
_unscheduleSendPendingAuditEvents()
S
60 6 14
registerHooks()
S
53 5 23
eventCategories()
S
56 5 19
_extractMultisiteID()
S
56 5 18
_getPlugin()
S
56 5 17
_installedVersions()
S
56 5 16
_userdataDiff()
S
60 5 15
_postDiff()
S
60 5 15
eventCategory()
S
59 4 14
trimAuditEvents()
S
59 4 14
_saveEventsToTable()
S
56 3 17
_sanitizeMultisiteData()
S
58 3 16
_getState()
S
65 4 9
_lastAction()
S
61 3 12
immediateSendEvents()
S
61 3 12
eventRateLimiters()
S
62 3 11
eventNames()
S
62 3 11
_getAllStates()
S
65 3 9
_trackState()
S
66 3 9
_hasState()
S
65 3 9
heartbeat()
S
72 3 5
_multisiteDiff()
S
66 3 9
_shouldRecordPostChanges()
S
63 3 10
shared()
S
69 2 7
_needsDestruct()
S
71 2 6
checkForUnsentAuditEvents()
S
64 2 9
eventName()
S
68 2 7
_rateLimiterCheck()
S
74 1 4
_rateLimiterConsume()
S
74 1 4
isFinalizing()
S
82 1 3
_observers()
S
67 1 9
_registerForcedObservers()
S
89 1 2
_registerObservers()
S
89 1 2
_registerCoalescers()
S
89 1 2
_addCoalescer()
S
80 1 3
hasOverdueEvents()
S
69 1 6
_registerDataGatherers()
S
89 1 2