Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
getSha10%
isCacheable0%
isMissing0%
redirectedFrom0%
getRedirectedTitle0%
getRedirected0%
getDimensionsString0%
getShortDesc0%
getLongDesc0%
getContentHeaders0%
userCan0%
getStorageKey0%
getDescriptionTouched0%
isTransformedLocally0%
getTimestamp0%
getDescription0%
getUploader0%
getDescriptionText0%
getDescriptionUrl0%
scaleHeight0%
pageCount0%
restore0%
deleteFile0%
move0%
wasDeleted0%
getVisibility0%
isExpensiveToThumbnail0%
__construct0%
getRepo0%
getHeight0%
getTimestamp0%
getSha10%
getDescription0%
getUploader0%
getDescriptionShortUrl0%
getUrl0%
getSize0%
parseMetadataValue0%
parseMetadata0%
getExtendedMetadata0%
getMetadataArray0%
getMetadata0%
getWidth0%
newForFile0%
transform0%
getPath0%
exists0%
getRepo0%
getProps0%
newFromTitle0%
__construct0%
initArchivedFile0%
initOldFile0%
initFile0%
newForArchivedFile0%
newForOldFile0%
isOld0%
getRepoName0%
getMediaType0%
allowInlineDisplay0%
generateThumbName0%
thumbName0%
getUnscaledThumb0%
getTransformScript0%
isVisible0%
exists0%
load0%
isTrustedFile0%
getIsSafeFileUncached0%
getIsSafeFile0%
isSafeFile0%
mustRender0%
transformErrorOutput0%
getInternalBackend0%
canRender0%
getMediaType0%
getMimeType0%
getSize0%
getBitDepth0%
convertMetadataVersion0%
getCommonMetaArray0%
getMetadataItems0%
getMetadataArray0%
getMetadata0%
getDefaultRenderLanguage0%
createThumb0%
transform0%
isLocal0%
getArchiveRel0%
publish0%
readOnlyError0%
isHashed0%
getVirtualUrl0%
getTranscodedUrl0%
getFilePageThumbUrl0%
getZoneUrl0%
getArchiveThumbUrl0%
getTranscodedPath0%
getArchiveThumbPath0%
getArchiveThumbRel0%
getThumbRel0%
resetHistory0%
generateAndSaveThumb0%
nextHistoryLine0%
getHistory0%
purgeEverything0%
purgeDescription0%
purgeCache0%
getThumbnails0%
getLastError0%
iconThumb0%
getThumbDisposition0%
makeTransformTmpFile0%
getBucketThumbName0%
getBucketThumbPath0%
getMimeType0%
getDescriptionUrl0%
getAvailableLanguages0%
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%
getThumbPath0%
newFromRow0%
nextHistoryLine0%
getHistory0%
purgeOldThumbnails0%
purgeCache0%
isMetadataOversize0%
getDescriptionShortUrl0%
isMissing0%
getUpgraded0%
loadFromFile0%
getQueryInfo0%
newFromKey0%
getDescriptionShortUrl0%
move0%
getDescriptionText0%
getDescriptionUrl0%
move0%
deleteFile0%
restore0%
publish0%
getRepo0%
isTransformedLocally0%
purgeThumbnails0%
purgeDescriptionPage0%
purgeCache0%
getThumbnails0%
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%
getMatchedLanguage0%
getCanRender0%
isVectorized0%
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%
getThumbUrl0%
findBySha10%
getImageInfo0%
fetchImageQuery0%
getFileProps0%
fileExistsBatch0%
newFile0%
__construct0%
supportsSha1URLs0%
getUploadStash0%
getTempRepo0%
getLength0%
getFileSize0%
invalidateImageRedirect0%
checkRedirect0%
newGood0%
newFatal0%
passThrough0%
paranoidClean0%
getErrorCleanupFunction0%
validateFilename0%
enumFilesInStorage0%
enumFiles0%
streamFileWithStatus0%
getFileSha10%
getDescriptionUrl0%
getHashLevels0%
getThumbUrlFromCache0%
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%
getThumbError0%
nameForThumb0%
getZoneUrl0%
getQueryInfo0%
getMetadataItems0%
getMetadataArray0%
getMetadata0%
getHeight0%
getWidth0%
getGroup0%
getStorageKey0%
getKey0%
exists0%
getID0%
getName0%
getTitle0%
loadFromRow0%
newFromRow0%
getJsonMetadata0%
load0%
__construct0%
maybeNormalizeRel404Path0%
getTempRepo0%
clearCache0%
getFileProps0%
splitVirtualUrl0%
newCustomLocalRepo0%
getLocalRepo0%
getZonePath0%
getRepo0%
findBySha1s0%
findBySha10%
findFileFromKey0%
getMetadataForDb0%
loadMetadataFromDbFieldValue0%
findFiles0%
splitMime0%
getHeight0%
getWidth0%
addToShellboxCommand0%
getLocalRefPath0%
getPath0%
getViewURL0%
getCanonicalUrl0%
getFullUrl0%
getDescriptionShortUrl0%
getOriginalTitle0%
getTitle0%
getExtension0%
compare0%
upgradeRow0%
loadMetadataFromString0%
checkExtensionCompatibility0%
normalizeExtension0%
__get0%
userCan0%
isDeleted0%
getVisibility0%
getSha10%
getTimestamp0%
getMediaType0%
pageCount0%
getHandler0%
getMimeType0%
getBits0%
getSize0%
checkRedirect0%
getRepoByName0%
findFile0%
assertWritableRepo0%
assertWritableRepo0%
deletedFileHasKey0%
getInfo0%
assertWritableRepo0%
getDbProvider0%
getDBFactory0%
getReplicaDB0%
getPrimaryDB0%
__construct0%
getBlobStore0%
getDBFactory0%
findBySha10%
getReplicaDB0%
getPrimaryDB0%
__construct0%
assertWritableRepo0%
enumFiles0%
httpGetCached0%
getIIProps0%
httpGet0%
getInfo0%
getUserAgent0%
canCacheThumbs0%
findFiles0%
hiddenFileHasKey0%
isSplitMetadataEnabled0%
isJsonMetadataEnabled0%
__construct0%
findFilesByPrefix0%
findBySha1s0%
getBlobStore0%
isMetadataReserializeEnabled0%
isMetadataUpdateEnabled0%
getSplitMetadataThreshold0%
cleanupDeletedBatch12%
unlock16%
prerenderThumbnails30%
findFile37%
getHeight38%
getWidth38%
getZoneUrl40%
getLazyCacheFields40%
getDBFactory40%
getCacheFields50%
newFile50%
assertTitleDefined50%
assertRepoDefined50%
publishTo53%
loadExtraFieldsWithTimestamp57%
getNameFromTitle57%
maybeStreamExistingThumbnail58%
getDescriptionText64%
getMetadataForDb66%
loadExtraFromDB69%
purgeThumbnails72%
getThumbnails72%
purgeThumbList73%
loadFromRow75%
setProps75%
getThumbnailSource77%
getImageLimitsFromOption77%
proxyThumbnailRequest78%
thumbError79%
skipWriteOperationIfSha180%
upload80%
generateThumbnail82%
getBackendPaths82%
load83%
getMetadata83%
forEachForeignRepo83%
initialiseRepos85%
maybeUpgradeRow86%
getJsonMetadata87%
unprefixRow87%
streamThumb87%
invalidateCache88%
getFileInfo89%

Project Risks

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