Broadstreet_Utility D

Total Complexity 234
Dependencies 9
Dependents 6
Total lines 1,348
Lines of code 828
Logical lines of code 530
Comment lines 239
Methods 60
Properties 4

Methods 60

Method Rating Maintainability Complexity Lines of code
getWrappedZoneCode()
A
45 14 37
getAllAdSlugs()
A
47 12 36
getZoneCode()
A
46 11 37
getAMPZoneCode()
A
46 11 35
writeInitCode()
A
47 11 34
getAdsTxt()
A
44 10 46
buildAddressFromMeta()
A
52 9 26
getAllPostMeta()
A
55 9 19
getNetwork()
A
49 8 31
getTargets()
A
52 8 25
getAllAdKeywordsString()
A
53 8 22
writeAdsTxt()
S
50 6 27
importBusiness()
S
51 6 25
setVideoWidth()
S
51 5 29
checkApiKey()
S
52 5 28
refreshZoneCache()
S
54 5 22
pageHasCategory()
S
61 5 12
sendInstallReportIfNew()
S
54 4 22
getZoneCache()
S
55 4 20
importImage()
S
55 4 19
isBusinessEnabled()
S
60 4 14
isGutenberg()
S
59 4 13
getAdCode()
S
53 3 26
getAvailableTargets()
S
55 3 19
shouldShowTimes()
S
63 4 9
getBroadstreetClient()
S
62 3 11
featuredBusinessImage()
S
64 3 10
isClassicEditor()
S
65 3 9
getAdserverURL()
S
66 3 8
inExcerpt()
S
68 3 7
getBroadstreetDashboardURL()
S
66 3 8
getMaxWidthWrap()
S
70 3 5
flushRewrites()
S
69 3 7
setOption()
S
62 2 12
getApiKey()
S
69 2 7
isAMPEndpoint()
S
79 2 3
useLocalBSA()
S
74 2 4
getPostMeta()
S
71 2 5
setPostMeta()
S
64 2 10
getOption()
S
72 2 5
getPlacementSettings()
S
70 2 6
arrayGet()
S
70 2 6
fixURL()
S
72 2 5
getStaticAdCode()
S
71 1 5
getNetworkId()
S
80 1 3
isNewspack()
S
80 1 3
getServiceTag()
S
78 1 3
getStaticZoneCode()
S
70 1 5
getCSSBaseURL()
S
79 1 3
broadstreetLink()
S
69 1 6
getJSBaseURL()
S
79 1 3
toTime()
S
78 1 3
sendReport()
S
63 1 10
handleException()
S
78 1 3
handleError()
S
77 1 3
registerLogErrorHandlers()
S
75 1 4
getSiteBaseURL()
S
80 1 3
getBroadstreetBaseURL()
S
75 1 4
getVendorBaseURL()
S
79 1 3
getImageBaseURL()
S
79 1 3