Puc_v4p6_UpdateChecker C

Total Complexity 105
Dependencies 8
Dependents 4
Total lines 920
Lines of code 402
Logical lines of code 205
Comment lines 381
Methods 43
Properties 13

Methods 43

Method Rating Maintainability Complexity Lines of code
fixSupportedWordpressVersion()
A
52 9 24
fixDirectoryName()
S
48 6 37
injectTranslationUpdates()
S
50 6 29
__construct()
S
52 5 24
validateApiResponse()
S
54 5 21
loadTextDomain()
S
59 5 13
requestMetadata()
S
47 3 37
filterApplicableTranslations()
S
57 4 17
installHooks()
S
57 3 17
allowMetadataHost()
S
63 4 10
getUpdate()
S
64 4 10
injectUpdate()
S
61 3 13
getInstalledTranslations()
S
62 3 12
checkForUpdates()
S
55 2 20
isBadDirectoryStructure()
S
63 3 10
maybeInitDebugBar()
S
71 3 5
isNotMyTranslation()
S
69 3 6
collectApiErrors()
S
64 3 10
triggerError()
S
74 2 5
getUniqueName()
S
68 2 7
addUpdateToList()
S
67 2 8
removeUpdateFromList()
S
71 2 6
filterUpdateResult()
S
66 2 8
isDebugModeEnabled()
S
71 2 6
removeHooks()
S
61 1 12
getTranslationUpdates()
S
81 1 3
createDebugBarExtension()
S
80 1 3
userCanInstallUpdates()
S
100 1 0
isBeingUpgraded()
S
100 1 0
createInstalledPackage()
S
100 1 0
getInstalledPackage()
S
82 1 3
clearCachedTranslationUpdates()
S
82 1 3
requestUpdate()
S
100 1 0
createScheduler()
S
100 1 0
getUpdateState()
S
81 1 3
resetUpdateState()
S
82 1 3
shouldShowUpdates()
S
82 1 3
getUpdateListKey()
S
100 1 0
getInstalledVersion()
S
81 1 3
addFilter()
S
78 1 3
getLastRequestApiErrors()
S
82 1 3
getAbsoluteDirectoryPath()
S
81 1 3
onDisplayConfiguration()
S
91 1 2