Securimage D

Total Complexity 449
Dependencies 7
Dependents 2
Total lines 3,408
Lines of code 1,663
Logical lines of code 1,138
Comment lines 1,160
Methods 55
Properties 74

Methods 55

Method Rating Maintainability Complexity Lines of code
getCaptchaHtml()
D
22
55 162
__construct()
D
31 37 98
drawWord()
C
30 26 126
doImage()
B
41 18 53
generateWAV()
B
37 16 71
wavToMp3()
A
41 14 52
readCodeFromFile()
A
42 14 49
outputAudioFile()
A
40 13 57
distortedCopy()
A
41 13 54
openDatabase()
A
42 13 49
setBackground()
A
46 13 38
getSoxEffectChain()
A
40 11 58
getCode()
A
46 12 40
validate()
A
45 12 39
rangeDownload()
A
48 11 31
createCode()
A
46 10 39
getCodeFromDatabase()
A
45 10 39
output()
A
48 10 33
checkTablesExist()
A
49 10 30
getAudibleCode()
A
46 8 36
createDatabaseTables()
A
44 6 54
getRandomNoiseFile()
A
55 8 18
saveCodeToDatabase()
A
48 7 31
drawNoise()
S
53 7 21
getDsn()
S
55 6 20
initColor()
S
58 6 15
checkByCaptchaId()
S
54 5 22
saveData()
S
58 5 15
getAudioData()
S
59 5 15
getBackgroundFromDirectory()
S
59 5 13
purgeOldCodesFromDatabase()
S
61 5 11
getSoxNoiseData()
S
48 3 34
saveAudioToDatabase()
S
55 4 19
clearCodeFromDatabase()
S
57 4 17
getCaptchaId()
S
58 4 14
drawLines()
S
49 3 28
allocateColors()
S
47 2 41
isCodeExpired()
S
65 4 9
substr()
S
63 3 11
errorHandler()
S
68 3 7
saveAudioData()
S
67 3 8
ttfFile()
S
64 3 9
show()
S
68 3 7
canSendHeaders()
S
67 3 8
strpos()
S
68 2 7
strlen()
S
69 2 7
check()
S
65 2 9
setNamespace()
S
65 2 9
generateCode()
S
67 2 7
frand()
S
78 1 3
addSignature()
S
66 1 7
getTimeToSolve()
S
82 1 3
getCharacterDimensions()
S
72 1 4
getPath()
S
80 1 3
audioError()
S
78 1 3