Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
getLongDesc0%
newForFile0%
__construct0%
isTransformedLocally0%
isExpensiveToThumbnail0%
isCacheable0%
isMissing0%
redirectedFrom0%
getRedirectedTitle0%
getRedirected0%
getDimensionsString0%
getShortDesc0%
getContentHeaders0%
newForArchivedFile0%
userCan0%
getStorageKey0%
getSha10%
getDescriptionTouched0%
getTimestamp0%
getDescription0%
getUploader0%
getDescriptionText0%
getDescriptionUrl0%
scaleHeight0%
pageCount0%
restore0%
newForOldFile0%
initFileOld0%
move0%
getMetadataArray0%
getMediaType0%
getMimeType0%
getTimestamp0%
getSha10%
getDescription0%
getUploader0%
getDescriptionShortUrl0%
getUrl0%
getSize0%
parseMetadataValue0%
parseMetadata0%
getExtendedMetadata0%
getMetadata0%
initFileNew0%
getHeight0%
getWidth0%
transform0%
getPath0%
exists0%
getRepo0%
getProps0%
newFromTitle0%
__construct0%
initArchivedFile0%
initOldFileNew0%
initOldFileOld0%
deleteFile0%
wasDeleted0%
getThumbPath0%
getInternalBackend0%
generateAndSaveThumb0%
transform0%
transformErrorOutput0%
createThumb0%
adjustThumbWidthForSteps0%
getUnscaledThumb0%
getTransformScript0%
isVisible0%
exists0%
load0%
isTrustedFile0%
getIsSafeFileUncached0%
isSafeFile0%
getBucketThumbName0%
allowInlineDisplay0%
mustRender0%
getCanRender0%
canRender0%
getMediaType0%
getMimeType0%
getSize0%
getBitDepth0%
convertMetadataVersion0%
getCommonMetaArray0%
getMetadataItems0%
getMetadataArray0%
getBucketThumbPath0%
makeTransformTmpFile0%
getVisibility0%
getTranscodedPath0%
isOld0%
getRepo0%
getRepoName0%
isLocal0%
publish0%
readOnlyError0%
isHashed0%
getVirtualUrl0%
getTranscodedUrl0%
getFilePageThumbUrl0%
getZoneUrl0%
getArchiveThumbUrl0%
getArchiveThumbPath0%
getThumbDisposition0%
getArchiveThumbRel0%
getThumbRel0%
getArchiveRel0%
resetHistory0%
nextHistoryLine0%
getHistory0%
purgeEverything0%
purgeDescription0%
purgeCache0%
getThumbnails0%
getLastError0%
iconThumb0%
getDescriptionUrl0%
getThumbnails0%
getDefaultRenderLanguage0%
jsonEncode0%
getArchiveName0%
getCacheKey0%
loadFromRow0%
__construct0%
getQueryInfo0%
newFromKey0%
newFromRow0%
newFromArchiveName0%
newFromTitle0%
jsonDecode0%
getMetadataFromBlobStore0%
getJsonMetadata0%
isVisible0%
__construct0%
cleanupFailedBatch0%
cleanup0%
removeNonexistentFromCleanup0%
removeNonexistentFiles0%
execute0%
addAll0%
addIds0%
addId0%
__construct0%
cleanupSource0%
cleanupTarget0%
isOld0%
loadFromDB0%
getMoveTriplets0%
newFromTitle0%
setLocalReference0%
getSize0%
getURL0%
getSizeAndMetadata0%
getMetadataArray0%
getMetadata0%
getBitDepth0%
getMimeType0%
getHeight0%
getWidth0%
cachePageDimensions0%
__construct0%
newFromPath0%
loadExtraFromDB0%
exists0%
recordOldUpload0%
uploadOld0%
userCan0%
getVisibility0%
isDeleted0%
reserializeMetadata0%
upgradeRow0%
getUrlRel0%
getRel0%
getCacheFields0%
buildQueryBuilderForLoad0%
removeNonexistentFiles0%
doDBUpdates0%
purgeCache0%
getQueryInfo0%
nextHistoryLine0%
getHistory0%
purgeOldThumbnails0%
purgeCache0%
isMetadataOversize0%
getDescriptionShortUrl0%
isMissing0%
getFileTypeId0%
acquireFileIdFromName0%
getFileIdFromName0%
getUpgraded0%
loadFromFile0%
newFromKey0%
move0%
newFromRow0%
getDescriptionShortUrl0%
getDescriptionText0%
getDescriptionUrl0%
move0%
deleteFile0%
restore0%
publish0%
getRepo0%
isTransformedLocally0%
purgeThumbnails0%
purgeDescriptionPage0%
resetHistory0%
deleteFile0%
verifyDBUpdates0%
doDBDeletes0%
execute0%
getTargetFile0%
releaseLocks0%
acquireTargetLock0%
acquireSourceLock0%
addOlds0%
addCurrent0%
__construct0%
report0%
__construct0%
removeNonexistentFiles0%
execute0%
doDBInserts0%
deleteOldFile0%
getHashes0%
getOldRels0%
addOlds0%
addOld0%
addCurrent0%
__construct0%
readOnlyFatalStatus0%
lock0%
isCacheable0%
getDescriptionTouched0%
getDescriptionUrl0%
restore0%
getMetadata0%
getIsSafeFile0%
getMatchedLanguage0%
publishBatch0%
getLocalReference0%
getLocalCopy0%
resolveToStoragePathIfVirtual0%
getDeletedHashPath0%
cleanupDeletedBatch0%
deleteBatch0%
delete0%
fileExistsBatch0%
fileExists0%
cleanDir0%
initDirectory0%
publish0%
getFileProps0%
concatenate0%
freeTemp0%
storeTemp0%
quickPurgeBatch0%
quickCleanDir0%
quickPurge0%
quickImportBatch0%
quickImport0%
cleanupBatch0%
storeBatch0%
getDescriptionStylesheetUrl0%
getDescriptionRenderUrl0%
addShellboxInputFile0%
getFileTimestamp0%
makeUrl0%
getSharedCacheKey0%
getThumbError0%
getThumbUrl0%
findBySha10%
getImageInfo0%
fetchImageQuery0%
getFileProps0%
fileExistsBatch0%
newFile0%
__construct0%
supportsSha1URLs0%
getUploadStash0%
getTempRepo0%
getAvailableLanguages0%
getFileSize0%
invalidateImageRedirect0%
checkRedirect0%
newGood0%
newFatal0%
passThrough0%
paranoidClean0%
getErrorCleanupFunction0%
validateFilename0%
enumFilesInStorage0%
enumFiles0%
streamFileWithStatus0%
getFileSha10%
getDescriptionUrl0%
getHashLevels0%
getZoneUrl0%
getFileSha1Base360%
clearCache0%
getFeatures0%
getFileList0%
getDirectoryList0%
directoryExists0%
addShellboxInputFile0%
getFileHttpUrl0%
getLocalCopyMulti0%
getLocalReferenceMulti0%
streamFile0%
getFileProps0%
getFileXAttributes0%
preloadFileStat0%
getFileStat0%
getFileSize0%
getFileTimestamp0%
fileExists0%
concatenate0%
doClean0%
doPublish0%
doSecure0%
doPrepare0%
doQuickOperationsInternal0%
doOperationsInternal0%
getBackendPath0%
preloadCache0%
getScopedLocksForOps0%
getHashPathForLevel0%
findFiles0%
getTempHashPath0%
getHashPath0%
getRootDirectory0%
canTransformLocally0%
canTransformVia4040%
getThumbProxySecret0%
getThumbProxyUrl0%
getThumbScriptUrl0%
findFilesByPrefix0%
findBySha1s0%
findBySha10%
findFileFromKey0%
getZonePath0%
getPathForSHA10%
getZoneLocation0%
resolveVirtualUrl0%
backendSupportsUnicodePaths0%
getVirtualUrl0%
isVirtualUrl0%
initZones0%
getReadOnlyReason0%
getBackend0%
mungeOpPaths0%
translateArrayResults0%
translateSrcParams0%
getDB0%
getThumbUrlFromCache0%
nameForThumb0%
getZonePath0%
getQueryInfo0%
getMetadataForDb0%
getMetadataItems0%
getMetadataArray0%
getMetadata0%
getHeight0%
getWidth0%
getGroup0%
getStorageKey0%
getKey0%
exists0%
getID0%
getName0%
getTitle0%
loadFromRow0%
newFromRow0%
loadMetadataFromDbFieldValue0%
load0%
__construct0%
maybeNormalizeRel404Path0%
getTempRepo0%
clearCache0%
getFileProps0%
splitVirtualUrl0%
newCustomLocalRepo0%
canCacheThumbs0%
getRepoByName0%
getRepo0%
findBySha1s0%
findBySha10%
findFileFromKey0%
getJsonMetadata0%
loadMetadataFromString0%
findFiles0%
compare0%
isVectorized0%
getLength0%
getHeight0%
getWidth0%
addToShellboxCommand0%
getLocalRefPath0%
getPath0%
getViewURL0%
getCanonicalUrl0%
getFullUrl0%
getDescriptionShortUrl0%
getOriginalTitle0%
getTitle0%
getExtension0%
splitMime0%
getSize0%
upgradeRow0%
checkExtensionCompatibility0%
normalizeExtension0%
__get0%
userCan0%
isDeleted0%
getVisibility0%
getSha10%
getTimestamp0%
getMediaType0%
pageCount0%
getHandler0%
getMimeType0%
getBits0%
checkRedirect0%
getLocalRepo0%
getDBFactory0%
hiddenFileHasKey0%
findFilesByPrefix0%
getReplicaDB0%
getReplicaDB0%
findBySha1s0%
findBySha10%
findFile0%
findFiles0%
deletedFileHasKey0%
isJsonMetadataEnabled0%
getDBFactory0%
assertWritableRepo0%
getBlobStore0%
__construct0%
getInfo0%
getPrimaryDB0%
assertWritableRepo0%
getDbProvider0%
__construct0%
getPrimaryDB0%
getSplitMetadataThreshold0%
enumFiles0%
getUserAgent0%
getInfo0%
httpGet0%
getIIProps0%
isMetadataUpdateEnabled0%
isSplitMetadataEnabled0%
isMetadataReserializeEnabled0%
httpGetCached0%
assertWritableRepo0%
getBlobStore0%
__construct0%
assertWritableRepo0%
cleanupDeletedBatch12%
unlock16%
prerenderThumbnails30%
findFile37%
getHeight38%
getWidth38%
getLazyCacheFields40%
getDBFactory40%
getZoneUrl40%
getCacheFields50%
assertTitleDefined50%
assertRepoDefined50%
newFile50%
publishTo53%
getNameFromTitle57%
loadExtraFieldsWithTimestamp57%
maybeStreamExistingThumbnail58%
getBackendPaths62%
upgradeRow63%
getDescriptionText64%
reserializeMetadata65%
getMetadataForDb66%
loadExtraFromDB69%
purgeThumbnails72%
getThumbnails72%
purgeThumbList73%
generateThumbName75%
loadFromRow75%
setProps75%
getThumbnailSource77%
getImageLimitsFromOption77%
proxyThumbnailRequest78%
thumbError79%
skipWriteOperationIfSha180%
upload80%
recordUpload380%
generateThumbnail82%
getMetadata83%
load83%
forEachForeignRepo83%
initialiseRepos85%
maybeUpgradeRow86%
getJsonMetadata87%
unprefixRow87%
streamThumb87%
invalidateCache88%
getFileInfo89%

Project Risks

Method CRAP
execute1892
findFiles1056
transform420
findFile380
publishBatch182
generateAndSaveThumb182
getThumbUrlFromCache182
adjustThumbWidthForSteps182
findFileFromKey182
fileExistsBatch156
findFile128
getHashes110
storeBatch110
load110
doDBInserts110
doDBDeletes110
getHistory110
getJsonMetadata90
__construct90
__construct90
execute90
execute72
getIsSafeFileUncached72
quickImportBatch72
findFiles56
getMetadataItems56
__construct56
loadMetadataFromString56
getImageInfo42
__construct42
getDescriptionText42
getDescriptionText42
findFiles42
getMetadataFromBlobStore42
transform42
getZoneUrl37
recordUpload333
streamThumb31
cleanupDeletedBatch30
removeNonexistentFiles30
nextHistoryLine30
httpGet30
checkRedirect30
enumFilesInStorage30
findFileFromKey30
removeNonexistentFiles30
deleteBatch30
move30
deleteFile30
cachePageDimensions30
getMetadataForDb30
resolveVirtualUrl30
addOlds30
mungeOpPaths30
removeNonexistentFiles30
publishTo23
generateThumbnail22
getBackendPaths21
getInfo20
createThumb20
concatenate20
isMetadataOversize20
maybeNormalizeRel404Path20
cleanupBatch20
getDescriptionRenderUrl20
getDescriptionUrl20
transformErrorOutput20
getZonePath20
loadExtraFromDB20
restore20
pageCount20
getTransformScript20
getDescriptionShortUrl20
getDescriptionTouched20
canRender20
lock20
getLocalRefPath20
initDirectory20
httpGetCached20
removeNonexistentFromCleanup20
acquireFileIdFromName20
getThumbUrl20
getRepoByName20
getErrorCleanupFunction20
getFileTypeId20
findBySha120
getThumbError20
pageCount20
findBySha1s20
getZoneUrl20
getDescriptionShortUrl20
maybeUpgradeRow19
prerenderThumbnails18
upload14
setProps14
getThumbnailSource12
purgeThumbnails12
getDescriptionShortUrl12
getThumbnails12
parseMetadataValue12
initFileNew12
parseMetadata12
deleteOldFile12
getStorageKey12
newFromKey12
getRedirectedTitle12
newFromTitle12
initArchivedFile12
streamFile12
getThumbDisposition12
iconThumb12
initOldFileOld12
initFileOld12
initOldFileNew12
verifyDBUpdates12
getThumbPath12
uploadOld12
findBySha112
getMimeType12
findBySha1s12
getHashPathForLevel12
findBySha1s12
exists12
recordOldUpload12
cleanupFailedBatch12
getFileProps12
upgradeRow12
fetchImageQuery12
newFromKey12
getDeletedHashPath12
getTempRepo12
nameForThumb12
__construct12
getRepo12
splitVirtualUrl12
clearCache12
acquireTargetLock12
getViewURL12
getExtension12
splitMime12
normalizeExtension12
doDBUpdates12
acquireSourceLock12
translateSrcParams12
releaseLocks12
getMetadata12
getSizeAndMetadata12
loadFromRow12
initZones12
loadFromDB12
getHeight10
getWidth10
getFileInfo10
thumbError9
unlock8
getDescriptionText6
getURL6
buildQueryBuilderForLoad6
getMetadata6
isVisible6
getOldRels6
getFileIdFromName6
cleanupTarget6
isCacheable6
getDescriptionUrl6
addCurrent6
getTargetFile6
getMediaType6
getMoveTriplets6
resetHistory6
getArchiveName6
cleanupSource6
cleanup6
purgeOldThumbnails6
addOlds6
jsonEncode6
newFromTitle6
isMissing6
purgeCache6
getArchiveThumbRel6
getMimeType6
__get6
isSplitMetadataEnabled6
getBlobStore6
getTitle6
getName6
getMetadataArray6
getJsonMetadata6
getHandler6
userCan6
checkExtensionCompatibility6
findBySha16
getOriginalTitle6
getPath6
getLength6
isVectorized6
getAvailableLanguages6
getMatchedLanguage6
getDefaultRenderLanguage6
getCommonMetaArray6
getTimestamp6
findFilesByPrefix6
hiddenFileHasKey6
isSafeFile6
freeTemp6
getPathForSHA16
getDB6
translateArrayResults6
getVirtualUrl6
getZoneLocation6
newFile6
makeUrl6
getDescriptionStylesheetUrl6
quickPurgeBatch6
publish6
deletedFileHasKey6
fileExistsBatch6
resolveToStoragePathIfVirtual6
getFileProps6
streamFileWithStatus6
validateFilename6
newFile6
getZonePath6
getPrimaryDB6
getDBFactory6
mustRender6
convertMetadataVersion6
exists6
getMetadataArray6
isExpensiveToThumbnail6
getMetadata6
getDimensionsString6
getShortDesc6
getLongDesc6
getContentHeaders6
getUnscaledThumb6
getUrl6
getDescriptionUrl6
getUploader6
getDescription6
getSha16
scaleHeight6
wasDeleted6
getFilePageThumbUrl6
purgeDescription6
purgeEverything6
getArchiveRel6
getThumbRel6
getArchiveThumbUrl6
getZoneUrl6
getVirtualUrl6
getRepoName6
isLocal6
getSize6
getMetadataForDb5
loadExtraFromDB5
purgeThumbnails5
getThumbnails5
purgeThumbList5
loadFromRow5
load5
generateThumbName4
proxyThumbnailRequest4
forEachForeignRepo4
getNameFromTitle3
loadExtraFieldsWithTimestamp3
maybeStreamExistingThumbnail3
upgradeRow3
reserializeMetadata3
getImageLimitsFromOption3
getMetadata3
initialiseRepos3
unprefixRow3
getLazyCacheFields2
getDBFactory2
getCacheFields2
assertTitleDefined2
assertRepoDefined2
skipWriteOperationIfSha12
invalidateCache2
getJsonMetadata2