/workspace/src
includes
Upload
(Dashboard)
Classes
Coverage Distribution
Complexity
Insufficient Coverage
Class
Coverage
MediaWiki\Upload\Exception\UploadChunkFileException
0%
MediaWiki\Upload\Exception\UploadChunkVerificationException
0%
MediaWiki\Upload\Exception\UploadStashException
0%
MediaWiki\Upload\UploadStash
0%
MediaWiki\Upload\UploadStashFile
0%
MediaWiki\Upload\UploadVerificationStatus
0%
MediaWiki\Upload\UploadBase
9%
MediaWiki\Upload\UploadFromFile
12%
MediaWiki\Upload\UploadFromStash
65%
MediaWiki\Upload\UploadFromUrl
69%
MediaWiki\Upload\UploadFromChunks
73%
MediaWiki\Upload\UploadVerification
77%
Project Risks
Class
CRAP
MediaWiki\Upload\UploadBase
35884
MediaWiki\Upload\UploadStash
1892
MediaWiki\Upload\UploadStashFile
506
MediaWiki\Upload\UploadVerification
329
MediaWiki\Upload\UploadFromUrl
140
MediaWiki\Upload\UploadFromFile
92
MediaWiki\Upload\UploadFromChunks
60
MediaWiki\Upload\UploadFromStash
24
Methods
Coverage Distribution
Complexity
Insufficient Coverage
Method
Coverage
__construct
0%
__construct
0%
__construct
0%
getMessageObject
0%
getVerificationErrorCode
0%
isEnabled
0%
isAllowed
0%
isThrottled
0%
createFromRequest
0%
isValidRequest
0%
getDesiredDestName
0%
__construct
0%
getSourceType
0%
initializePathInfo
0%
setTempFile
0%
fetchFile
0%
canFetchFile
0%
isEmptyFile
0%
getFileSize
0%
getTempFileSha1Base36
0%
getRealPath
0%
validateName
0%
verifyMimeType
0%
verifyFile
0%
getFileProps
0%
verifyPartialFile
0%
authorizeUpload
0%
checkWarnings
0%
makeWarningsSerializable
0%
unserializeWarnings
0%
checkBadFileName
0%
checkUnwantedFileExtensions
0%
checkFileSize
0%
checkLocalFileExists
0%
checkLocalFileWasDeleted
0%
checkAgainstExistingDupes
0%
checkAgainstArchiveDupes
0%
performUpload
0%
postProcessUpload
0%
getLocalFile
0%
getStashFile
0%
tryStashFile
0%
skipStashFileAttempt
0%
runUploadStashFileHook
0%
doStashFile
0%
cleanupTempFile
0%
getTempPath
0%
splitExtensions
0%
checkFileExtension
0%
checkFileExtensionList
0%
verifyExtension
0%
detectScript
0%
detectVirus
0%
checkOverwrite
0%
userCanReUpload
0%
getExistsWarning
0%
isThumbName
0%
getFilenamePrefixBlacklist
0%
getImageInfo
0%
convertVerifyErrorToStatus
0%
getMaxUploadSize
0%
getMaxPhpUploadSize
0%
getSessionStatus
0%
setSessionStatus
0%
getUploadSessionKey
0%
getUploadSessionStore
0%
initializeFromRequest
0%
isValidRequest
0%
getSourceType
0%
skipStashFileAttempt
0%
verifyUpload
0%
initializeFromRequest
0%
getSourceType
0%
getTempFileSha1Base36
0%
getCacheKeyFromRequest
0%
getUrl
0%
initializeFromRequest
0%
isValidRequest
0%
__construct
0%
getFile
0%
getMetadata
0%
getFileProps
0%
stashFile
0%
clear
0%
removeFile
0%
removeFileNoAuth
0%
listFiles
0%
getExtensionForPath
0%
fetchFileMetadata
0%
initFile
0%
__construct
0%
getSha1
0%
getDescriptionUrl
0%
getThumbPath
0%
thumbName
0%
getSpecialUrl
0%
getThumbUrl
0%
getUrlName
0%
getUrl
0%
getFullUrl
0%
getFileKey
0%
remove
0%
exists
0%
__construct
0%
verifyFile
0%
verifyPartialFile
0%
setRecoverableError
0%
setInvalidParameter
0%
setApiData
0%
setApiCode
0%
isRecoverableError
0%
getInvalidParameter
0%
asApiMessage
0%
saveTempFileChunk
41%
verifyUpload
50%
tryStashFile
50%
checkXMLEncodingMismatch
51%
addChunk
55%
concatenateChunks
56%
detectScript
65%
checkSvgPICallback
66%
getTitle
67%
__construct
70%
canFetchFileFromUrl
71%
verifyExtension
72%
fetchFile
75%
reallyFetchFile
81%
checkPresentationalAttribute
81%
logFileBackendStatus
84%
verifyChunk
87%
Project Risks
Method
CRAP
convertVerifyErrorToStatus
182
getFile
156
verifyFile
156
getExistsWarning
132
stashFile
110
verifyPartialFile
90
checkWarnings
72
createFromRequest
56
checkLocalFileExists
42
checkAgainstExistingDupes
42
performUpload
42
getFilenamePrefixBlacklist
42
getTitle
35
checkXMLEncodingMismatch
32
setTempFile
30
validateName
30
verifyFile
30
authorizeUpload
30
unserializeWarnings
30
checkFileSize
30
checkOverwrite
30
setSessionStatus
30
__construct
30
detectScript
26
getTempFileSha1Base36
20
getRealPath
20
makeWarningsSerializable
20
checkAgainstArchiveDupes
20
tryStashFile
20
userCanReUpload
20
isThumbName
20
getMaxUploadSize
20
verifyUpload
20
removeFile
20
getExtensionForPath
20
concatenateChunks
13
isAllowed
12
verifyMimeType
12
checkBadFileName
12
checkUnwantedFileExtensions
12
getLocalFile
12
runUploadStashFileHook
12
cleanupTempFile
12
getCacheKeyFromRequest
12
fetchFileMetadata
12
reallyFetchFile
11
verifyExtension
9
addChunk
9
verifyUpload
8
isEnabled
6
initializePathInfo
6
getFileProps
6
checkLocalFileWasDeleted
6
getMaxPhpUploadSize
6
getUploadSessionKey
6
initializeFromRequest
6
skipStashFileAttempt
6
getTempFileSha1Base36
6
initializeFromRequest
6
isValidRequest
6
clear
6
listFiles
6
initFile
6
getSha1
6
getThumbPath
6
getUrlName
6
getUrl
6
remove
6
__construct
4
canFetchFileFromUrl
4
checkPresentationalAttribute
4
logFileBackendStatus
3
saveTempFileChunk
2
tryStashFile
2
checkSvgPICallback
2
fetchFile
2
verifyChunk
2