Broadstreet_Utility D

Total Complexity 247
Dependencies 9
Dependents 6
Total lines 1,391
Lines of code 860
Logical lines of code 556
Comment lines 241
Methods 61
Properties 4

Methods 61

Method Rating Maintainability Complexity Lines of code
getWrappedZoneCode()
A
45 14 37
getInitCode()
A
46 12 36
getAllAdSlugs()
A
47 12 36
getZoneCode()
A
46 11 37
getAMPZoneCode()
A
46 11 37
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
getTrackerCode()
S
56 7 19
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
isAMPEndpoint()
S
63 5 10
getAdserverURL()
S
62 5 10
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
isClassicEditor()
S
65 3 9
getMaxWidthWrap()
S
70 3 5
inExcerpt()
S
68 3 7
getBroadstreetDashboardURL()
S
66 3 8
featuredBusinessImage()
S
64 3 10
flushRewrites()
S
69 3 7
setOption()
S
62 2 12
fixURL()
S
72 2 5
getApiKey()
S
69 2 7
useLocalBSA()
S
74 2 4
getOption()
S
72 2 5
getPlacementSettings()
S
70 2 6
arrayGet()
S
70 2 6
setPostMeta()
S
64 2 10
getPostMeta()
S
71 2 5
getImageBaseURL()
S
79 1 3
getStaticZoneCode()
S
70 1 5
getSiteBaseURL()
S
80 1 3
getBroadstreetBaseURL()
S
75 1 4
isNewspack()
S
80 1 3
getServiceTag()
S
78 1 3
getNetworkId()
S
80 1 3
getCSSBaseURL()
S
79 1 3
registerLogErrorHandlers()
S
75 1 4
getStaticAdCode()
S
71 1 5
getJSBaseURL()
S
79 1 3
getVendorBaseURL()
S
79 1 3
broadstreetLink()
S
69 1 6
toTime()
S
78 1 3
handleException()
S
78 1 3
handleError()
S
77 1 3
sendReport()
S
63 1 10