WpdiscuzHelperUpload D

Total Complexity 268
Dependencies 1
Dependents 1
Total lines 1,017
Lines of code 857
Logical lines of code 555
Comment lines 31
Methods 49
Properties 10

Methods 49

Method Rating Maintainability Complexity Lines of code
uploadFiles()
D
28
39 119
getAttachedImages()
B
34 18 87
removeAttachmentPreview()
B
41 17 49
addAttachments()
A
53 12 21
uploadSingleFile()
A
43 8 43
deleteAttachment()
A
50 9 26
imageFixOrientation()
A
53 9 21
exportPersonalData()
A
53 9 21
isUploadingAllowed()
A
56 8 16
getFileName()
A
56 8 16
deleteLinkedAttachments()
S
59 8 14
deleteAttachmentIdFromMeta()
S
53 7 23
getAttachments()
S
53 7 20
getMimeType()
S
55 7 18
generateThumbnails()
S
46 5 41
getMimeTypeFromContent()
S
57 6 15
isAllowedFileType()
S
60 6 13
hasAttachments()
S
62 6 12
canUserUpload()
S
59 5 14
__construct()
S
46 3 35
getImageSizes()
S
57 4 16
getWpdiscuzMedia()
S
62 5 10
getThumbnailSizes()
S
64 5 10
includeImageFunctions()
S
63 4 11
deleteUnattachedFiles()
S
54 3 21
isAllowedPostType()
S
73 4 4
commentText()
S
69 4 6
canEditAttachments()
S
63 4 9
uploadButtons()
S
57 3 14
decrypt()
S
58 3 14
wpdiscuzMediaFiler()
S
59 3 13
deregisterJobThumbnailsViaCron()
S
72 3 5
combineArray()
S
66 3 9
wpdiscuzMediaCommentColumn()
S
70 3 6
commentListArgs()
S
67 2 8
getDeleteHtml()
S
69 2 5
initUploadsFolderVars()
S
62 2 10
registerJobThumbnailsViaCron()
S
73 2 5
uploadPreview()
S
65 2 9
setCurrentUser()
S
81 1 3
getDefaultPostTypes()
S
79 1 3
getDefaultRoles()
S
78 1 3
isImage()
S
79 1 3
encrypt()
S
62 1 10
setIntervalThumbnailsViaCron()
S
68 1 7
wmuImageCallbacks()
S
76 1 4
generateAttachmentMetadata()
S
68 1 7
postComment()
S
73 1 5
afterReadMore()
S
79 1 3