Skip to content

Instantly share code, notes, and snippets.

@Munter
Created July 16, 2014 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Munter/24459f7739cd8aeb9502 to your computer and use it in GitHub Desktop.
Save Munter/24459f7739cd8aeb9502 to your computer and use it in GitHub Desktop.
munter at Peters-MacBook-Air in ~/git/cardio on master
$ cardio http://www.lonelyplanet.com/ > report.json
✔ http://www.lonelyplanet.com/
✔ https://www.lonelyplanet.com/favicon.ico
✔ http://assets.staticlp.com/assets/icons/critical-601e7308f8b9de6ff4e5959ddc66cf40.css
✔ http://assets.staticlp.com/assets/common_core_no_font-928186620565d22d6ead4a614e110d0a.css
✔ http://assets.staticlp.com/assets/common_core_no_font_ie-08e8af4b81dd4d19840ba438c16cf48b.css
✔ http://assets.staticlp.com/assets/application-efb1d5aff5fcab6c6eb3d5c9b713cca6.css
✔ http://assets.staticlp.com/assets/application_ie-e96cb99e9b418b52e1c70786b86a7d84.css
✔ http://media.lonelyplanet.com/a/g/hi/t/f1df0ac7e602b5111d3aaefa29949491-store.jpg
✔ http://media.lonelyplanet.com/a/g/hi/t/b2efe8c0a249becb1551682f372fed20-spotlight-on-vietnam.jpg
✔ http://media.lonelyplanet.com/a/g/hi/t/567926758b7e5361bf69d0cb7145a604-totally-like-bogus-the-world-s-worst-travel-advice.jpg
✔ http://media.lonelyplanet.com/a/g/hi/t/d1f3a8ba5b6d0f331ee38a7236f4a771-honeymoons.jpg
✔ http://media.lonelyplanet.com/a/g/hi/t/db16d70605df0028dc01b9f3216d203a-adventure-travel.jpg
✔ http://media.lonelyplanet.com/a/g/hi/t/97fed8afa40d7c1d4b7df5f380a0275f-islands.jpg
✔ http://assets.staticlp.com/assets/icons/png/bold.png
✔ http://assets.staticlp.com/assets/icons/png/by.png
✔ http://assets.staticlp.com/assets/icons/png/cc.png
✔ http://assets.staticlp.com/assets/icons/png/cross.png
✔ http://assets.staticlp.com/assets/icons/png/entertainment.png
✔ http://assets.staticlp.com/assets/icons/png/facebook.png
✔ http://assets.staticlp.com/assets/icons/png/flickr.png
✔ http://assets.staticlp.com/assets/icons/png/google-plus.png
✔ http://assets.staticlp.com/assets/icons/png/hamburger.png
✔ http://assets.staticlp.com/assets/icons/png/italics.png
✔ http://assets.staticlp.com/assets/icons/png/link.png
✔ http://assets.staticlp.com/assets/icons/png/lp-logo.png
✔ http://assets.staticlp.com/assets/icons/png/lp-reviewed.png
✔ http://assets.staticlp.com/assets/icons/png/nd.png
✔ http://assets.staticlp.com/assets/icons/png/pen.png
✔ http://assets.staticlp.com/assets/icons/png/pinterest.png
✔ http://assets.staticlp.com/assets/icons/png/quote.png
✔ http://assets.staticlp.com/assets/icons/png/report-flag.png
✔ http://assets.staticlp.com/assets/icons/png/rss.png
✔ http://assets.staticlp.com/assets/icons/png/sa.png
✔ http://assets.staticlp.com/assets/icons/png/search.png
✔ http://assets.staticlp.com/assets/icons/png/shop-basket.png
✔ http://assets.staticlp.com/assets/icons/png/stumbleupon.png
✔ http://assets.staticlp.com/assets/icons/png/top-choice.png
✔ http://assets.staticlp.com/assets/icons/png/trash.png
✔ http://assets.staticlp.com/assets/icons/png/twitter.png
✔ http://assets.staticlp.com/assets/icons/png/youtube.png
✔ http://assets.staticlp.com/assets/shared/lp-checkout-efa673be23ee85e140228b4f643a26a5.png
✔ http://assets.staticlp.com/assets/icons/interest/adventure-travel-6169b95f02a936afd0ffcd2d043d054e.svg
✔ http://assets.staticlp.com/assets/cards/overlays/best-places-3662fdb3e67f6d7bc860ae60f184a609.png
✔ http://assets.staticlp.com/assets/icons/interest/beaches-bdfbef42593494fa964d5a7bdbeb90b4.svg
✔ http://assets.staticlp.com/assets/cards/symbol-noimage-3ef14fe28ff4f4114c91e1b77c6adf70.png
✔ http://assets.staticlp.com/assets/icons/interest/budget-travel-c0a71fefee9fddd6cbb524b147793ee4.svg
✔ http://assets.staticlp.com/assets/shared/top-choice-0a841b7cc790e28d3239e0adf91c4f0f.png
✔ http://assets.staticlp.com/assets/icons/interest/coasts-and-islands-269cfceb972d091f349d34959ba2673c.svg
✔ http://assets.staticlp.com/assets/shared/top-choice-2x-241cd2f2817f44486f8ab2d81f2b639f.png
✔ http://assets.staticlp.com/assets/icons/interest/family-travel-5093a316b232c2e33479b5f634cb8fda.svg
✔ http://assets.staticlp.com/assets/partners/gadventures.png
✔ http://assets.staticlp.com/assets/icons/interest/festivals-and-events-2d569fc5d25db10b0971ee7b8f97b6ea.svg
✔ http://assets.staticlp.com/assets/partners/gadventures.svg
✔ http://assets.staticlp.com/assets/icons/interest/food-and-drink-e57f2dab0432a0536c0d26bd9ede7718.svg
✔ http://assets.staticlp.com/assets/partners/intrepid.png
✔ http://assets.staticlp.com/assets/icons/interest/gear-and-tech-893996cf9aed973f8b7e44ab2b8f5843.svg
✔ http://assets.staticlp.com/assets/partners/intrepid.svg
✔ http://assets.staticlp.com/assets/icons/interest/honeymoons-and-romance-61eda281859a961e8e9e879fb535ae9a.svg
✔ http://assets.staticlp.com/assets/partners/viator.png
✔ http://assets.staticlp.com/assets/icons/interest/luxury-travel-0f40360cb4bacd30e843644d4106631e.svg
✔ http://assets.staticlp.com/assets/partners/viator.svg
✔ http://assets.staticlp.com/assets/icons/interest/road-trips-b2670e95c126d33eececf9c5358cc05c.svg
✔ http://assets.staticlp.com/assets/partners/worldexpeditions.png
✔ http://assets.staticlp.com/assets/icons/interest/round-the-world-travel-ee5cf4c7bf8e95e26596445f3c6ed5b3.svg
✔ http://assets.staticlp.com/assets/partners/worldexpeditions.svg
✔ http://assets.staticlp.com/assets/icons/interest/travel-photography-28e172d53a6c2f96a938a798c47d6f3b.svg
✔ http://assets.staticlp.com/assets/icons/interest/wildlife-and-nature-70f48c60360a4826905f56dda283e2b5.svg
✘ complexity-report: Error while processing JavaScript Asset inline JavaScript in http://www.lonelyplanet.com/
if (!/https/.test(location.protocol)) {
<!-- BEGIN Tynt Script -->
var Tynt=Tynt||[];Tynt.push('dSm5i4oRer4BQKacwqm_6l');
(function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
And the verdict's in:
{
"assetCount": {
"Css": 5,
"Html": 1,
"Ico": 1,
"Jpeg": 6,
"Png": 36,
"Svg": 18
},
"assetSizes": {
"Css": 499968,
"Html": 69030,
"Ico": 318,
"Jpeg": 346406,
"Png": 204478,
"Svg": 214837
},
"css": {
"countByColor": {
"#0077cc": 2,
"#093367": 12,
"#0fdecf": 12,
"#114f3a": 6,
"#12293b": 4,
"#124385": 2,
"#13202c": 2,
"#142b44": 2,
"#16c98d": 16,
"#1c3043": 2,
"#1d508d": 8,
"#206fac": 36,
"#23394b": 10,
"#288ad6": 10,
"#2c3643": 10,
"#2fc2ef": 4,
"#333333": 2,
"#3b444f": 74,
"#47a899": 2,
"#4c66a4": 4,
"#57636b": 2,
"#582c2b": 2,
"#67747c": 22,
"#684e79": 2,
"#81bbe3": 2,
"#841e1b": 2,
"#99a9b3": 10,
"#bccee3": 6,
"#bf538d": 2,
"#c7e6aa": 2,
"#cb2027": 2,
"#cbd9e4": 6,
"#cfcbaf": 2,
"#d8c413": 6,
"#d9e3e6": 2,
"#dbe6ec": 46,
"#dd4b39": 4,
"#e7ebee": 4,
"#ecf2f5": 2,
"#edf2f5": 2,
"#eef1f3": 28,
"#f2f6fa": 18,
"#f4e565": 2,
"#f4fbfe": 2,
"#f58025": 1,
"#f8a537": 1,
"#f8fbfd": 2,
"#f9fbfc": 6,
"#fa5e5b": 16,
"#feef6d": 14,
"#ff4522": 2,
"#ff708e": 4,
"#ffc83f": 2,
"rgba(0,0,0,0.2)": 8,
"rgba(0,0,0,0.3)": 4,
"rgba(0,0,0,0.35)": 4,
"rgba(0,0,0,0.4)": 10,
"rgba(0,0,0,0.5)": 12,
"rgba(0,0,0,0.65)": 1,
"rgba(0,0,0,0.8)": 2,
"rgba(20,43,68,0.1)": 4,
"rgba(255,255,255,0)": 42,
"rgba(255,255,255,0.9)": 18,
"rgba(3,46,92,0.1)": 4,
"rgba(3,46,92,0.2)": 4,
"rgba(44,54,67,0.1)": 4,
"rgba(44,54,67,0.15)": 4,
"rgba(44,54,67,0.35)": 2,
"rgba(44,54,67,0.5)": 18,
"transparent": 30,
"white": 112
},
"numCssRulesByType": {
"media": 108,
"style": 2473
},
"numImportants": 14,
"numStyleDeclarations": 11410,
"numStyleDeclarationsByProperty": {
"*display": 2,
"*line-height": 4,
"*vertical-align": 2,
"-moz-appearance": 2,
"-moz-box-sizing": 30,
"-moz-hyphens": 2,
"-moz-osx-font-smoothing": 6,
"-ms-filter": 1,
"-ms-hyphens": 2,
"-ms-interpolation-mode": 2,
"-ms-text-size-adjust": 2,
"-ms-touch-action": 2,
"-ms-transform": 10,
"-webkit-appearance": 4,
"-webkit-backface-visibility": 8,
"-webkit-background-size": 22,
"-webkit-box-shadow": 32,
"-webkit-box-sizing": 30,
"-webkit-filter": 10,
"-webkit-font-smoothing": 6,
"-webkit-hyphens": 2,
"-webkit-overflow-scrolling": 2,
"-webkit-tap-highlight-color": 2,
"-webkit-text-size-adjust": 2,
"-webkit-transform": 14,
"-webkit-transition": 24,
"appearance": 2,
"backface-visibility": 8,
"background": 141,
"background-color": 162,
"background-image": 65,
"background-position": 44,
"background-position-x": 2,
"background-position-y": 2,
"background-repeat": 39,
"background-size": 22,
"border": 70,
"border-bottom": 36,
"border-bottom-left-radius": 10,
"border-bottom-right-radius": 10,
"border-collapse": 2,
"border-color": 8,
"border-left": 4,
"border-left-color": 2,
"border-left-width": 2,
"border-radius": 42,
"border-right": 8,
"border-spacing": 2,
"border-top": 30,
"border-top-left-radius": 18,
"border-top-right-radius": 20,
"bottom": 68,
"box-shadow": 32,
"box-sizing": 30,
"clear": 16,
"clip": 4,
"color": 258,
"content": 40,
"cursor": 38,
"direction": 4,
"display": 365,
"filter": 15,
"float": 109,
"font": 1,
"font-family": 4,
"font-size": 344,
"font-smoothing": 6,
"font-style": 12,
"font-weight": 98,
"height": 336,
"hyphens": 2,
"is-continuation": 290,
"left": 156,
"letter-spacing": 6,
"line-height": 96,
"list-style": 8,
"list-style-type": 4,
"margin": 106,
"margin-bottom": 92,
"margin-left": 84,
"margin-right": 50,
"margin-top": 40,
"max-height": 36,
"max-width": 32,
"min-height": 28,
"min-width": 32,
"opacity": 42,
"outline": 6,
"overflow": 68,
"overflow-y": 2,
"padding": 240,
"padding-bottom": 24,
"padding-left": 66,
"padding-right": 24,
"padding-top": 44,
"pointer-events": 16,
"position": 248,
"right": 89,
"stop-color": 2,
"text-align": 78,
"text-decoration": 38,
"text-indent": 32,
"text-overflow": 10,
"text-rendering": 2,
"text-shadow": 2,
"text-transform": 36,
"top": 188,
"transform": 14,
"transition": 24,
"vertical-align": 34,
"visibility": 4,
"white-space": 12,
"width": 463,
"word-spacing": 2,
"word-wrap": 8,
"z-index": 62,
"zoom": 7
},
"numStyleDeclarationsByPropertyName": {},
"sumOfSelectorComplexity": 9890
},
"html": {
"countByAttributeName": {
"action": 3,
"aria-label": 6,
"autocomplete": 2,
"charset": 1,
"class": 400,
"content": 9,
"data-form-submit": 1,
"data-lpa-action": 1,
"data-lpa-category": 1,
"data-size-mapping": 3,
"data-targeting": 2,
"data-toggle-class": 1,
"data-toggle-target": 1,
"data-topic": 4,
"data-uncomment": 18,
"for": 9,
"href": 125,
"id": 20,
"itemprop": 176,
"itemscope": 5,
"itemtype": 5,
"lang": 4,
"maxlength": 1,
"media": 4,
"method": 2,
"name": 13,
"placeholder": 2,
"property": 2,
"rel": 7,
"required": 1,
"role": 7,
"src": 6,
"tabindex": 1,
"title": 3,
"type": 20,
"value": 273
},
"countByNodeType": {
"COMMENT_NODE": 42,
"DOCUMENT_NODE": 7,
"DOCUMENT_TYPE_NODE": 1,
"ELEMENT_NODE": 824,
"TEXT_NODE": 1430
},
"countByTagName": {
"a": 118,
"article": 24,
"body": 1,
"button": 1,
"div": 200,
"form": 3,
"h1": 24,
"h6": 5,
"head": 1,
"html": 4,
"i": 8,
"img": 6,
"input": 12,
"label": 11,
"link": 7,
"meta": 10,
"nav": 5,
"noscript": 3,
"option": 268,
"p": 2,
"script": 17,
"select": 2,
"span": 89,
"strong": 2,
"title": 1
},
"nestingLevels": [
3,
3,
0,
1,
1,
1,
3,
1,
1,
1,
1,
5,
5,
5,
5,
6,
5,
8,
8,
4,
5,
5,
6,
6,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
6,
6,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
5,
5,
5,
5,
6,
6,
8,
8,
8,
8,
8,
5,
5,
2,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
8,
9,
5,
3,
5,
6,
6,
6,
6,
6,
6,
7,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
6,
5,
6,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
5,
6,
7,
7,
7,
7,
7,
7,
7,
5,
6,
7,
7,
7,
7,
7,
5,
6,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
5,
6,
7,
7,
7,
7,
5,
6,
7,
7,
7,
7,
7,
7,
6,
7,
9,
9,
9,
9,
9,
9,
9,
9,
9,
5,
6,
9,
10,
10,
10,
10,
10,
10,
10,
10,
9,
2,
2,
2,
2,
1,
1,
1,
1,
1,
1,
1,
1
]
},
"js": {
"complexityReports": [
{
"aggregate": {
"cyclomatic": 1,
"cyclomaticDensity": 10,
"halstead": {
"bugs": 0.06345591536762672,
"difficulty": 2.5,
"effort": 475.9193652572004,
"length": 50,
"operands": {
"distinct": 12,
"identifiers": [
"\"header\"",
"document",
"createElement",
"\"nav\"",
"\"section\"",
"\"article\"",
"\"aside\"",
"\"footer\"",
"\"figure\"",
"\"figurecap\"",
"\"hgroup\"",
"\"time\""
],
"total": 30
},
"operators": {
"distinct": 2,
"identifiers": [
"()",
"."
],
"total": 20
},
"time": 26.439964736511133,
"vocabulary": 14,
"volume": 190.36774610288018
},
"line": 2,
"params": 0,
"sloc": {
"logical": 10,
"physical": 10
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [],
"maintainability": 112.6129718315647,
"params": 0
},
{
"aggregate": {
"cyclomatic": 6,
"cyclomaticDensity": 16.666666666666664,
"halstead": {
"bugs": 0.522728505157898,
"difficulty": 19.490909090909092,
"effort": 30565.361319778185,
"length": 255,
"operands": {
"distinct": 55,
"identifiers": [
"window",
"lp",
"<anonymous>",
"tracking",
"supports",
"analytics",
"dataLayer",
"eventBuffer",
"api",
"trackEvent",
"data",
"push",
"getCookie",
"name",
"\"(?:(?:^|.*;)\\s*\"",
{},
"\"\\$&\"",
"escape",
"replace",
"\"\\s*\\=\\s*([^;]*).*$)|^.*$\"",
"RegExp",
"\"$1\"",
"document",
"cookie",
"unescape",
null,
"localStorage",
"\"localStorage\"",
"\"test\"",
"setItem",
"removeItem",
true,
"e",
false,
"_trackJs",
"customer",
"\"3cd28f4c5df14f6e9fffa815ed7712b0\"",
"globalAlias",
"consoleDisplay",
"userId",
"\"lpUid\"",
"documentElement",
"H",
"className",
{},
"\"js\"",
"fs",
"buffer",
"log",
"x",
"this",
"time",
"performance",
"now",
"t"
],
"total": 134
},
"operators": {
"distinct": 16,
"identifiers": [
"=",
".",
"||",
"{}",
":",
"[]",
"function",
"()",
"return",
"new",
"+",
"&&",
"in",
"catch",
"var",
"! (prefix)"
],
"total": 121
},
"time": 1698.0756288765658,
"vocabulary": 71,
"volume": 1568.185515473694
},
"line": 3,
"params": 5,
"sloc": {
"logical": 36,
"physical": 49
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.012,
"difficulty": 1.1666666666666667,
"effort": 42,
"length": 12,
"operands": {
"distinct": 6,
"identifiers": [
"data",
"window",
"lp",
"analytics",
"eventBuffer",
"push"
],
"total": 7
},
"operators": {
"distinct": 2,
"identifiers": [
"()",
"."
],
"total": 5
},
"time": 2.3333333333333335,
"vocabulary": 8,
"volume": 36
},
"line": 13,
"name": "trackEvent",
"params": 1,
"sloc": {
"logical": 1,
"physical": 3
}
},
{
"cyclomatic": 2,
"cyclomaticDensity": 200,
"halstead": {
"bugs": 0.03823134762099227,
"difficulty": 3.4615384615384612,
"effort": 397.017840679535,
"length": 27,
"operands": {
"distinct": 13,
"identifiers": [
"name",
"\"(?:(?:^|.*;)\\s*\"",
{},
"\"\\$&\"",
"escape",
"replace",
"\"\\s*\\=\\s*([^;]*).*$)|^.*$\"",
"RegExp",
"\"$1\"",
"document",
"cookie",
"unescape",
null
],
"total": 15
},
"operators": {
"distinct": 6,
"identifiers": [
"return",
"||",
"()",
"new",
"+",
"."
],
"total": 12
},
"time": 22.05654670441861,
"vocabulary": 19,
"volume": 114.6940428629768
},
"line": 20,
"name": "<anonymous>.getCookie",
"params": 1,
"sloc": {
"logical": 1,
"physical": 3
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 16.666666666666664,
"halstead": {
"bugs": 0.019603445838944685,
"difficulty": 2.857142857142857,
"effort": 168.02953576238303,
"length": 17,
"operands": {
"distinct": 7,
"identifiers": [
"\"test\"",
"localStorage",
"setItem",
"removeItem",
true,
"e",
false
],
"total": 10
},
"operators": {
"distinct": 4,
"identifiers": [
"()",
".",
"return",
"catch"
],
"total": 7
},
"time": 9.33497420902128,
"vocabulary": 11,
"volume": 58.81033751683406
},
"line": 25,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 6,
"physical": 9
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.013,
"difficulty": 2.4000000000000004,
"effort": 93.60000000000001,
"length": 13,
"operands": {
"distinct": 5,
"identifiers": [
"H",
"className",
{},
"\"js\"",
"replace"
],
"total": 8
},
"operators": {
"distinct": 3,
"identifiers": [
"=",
".",
"()"
],
"total": 5
},
"time": 5.2,
"vocabulary": 8,
"volume": 39
},
"line": 44,
"name": "<anonymous>",
"params": 1,
"sloc": {
"logical": 1,
"physical": 1
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 50,
"halstead": {
"bugs": 0.013287712379549451,
"difficulty": 2.3333333333333335,
"effort": 93.01398665684617,
"length": 12,
"operands": {
"distinct": 6,
"identifiers": [
"x",
"<anonymous>",
"e",
"this",
"buffer",
"push"
],
"total": 7
},
"operators": {
"distinct": 4,
"identifiers": [
"()",
"{}",
":",
"."
],
"total": 5
},
"time": 5.167443703158121,
"vocabulary": 10,
"volume": 39.863137138648355
},
"line": 49,
"name": "log",
"params": 1,
"sloc": {
"logical": 2,
"physical": 1
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 33.33333333333333,
"halstead": {
"bugs": 0.04533333333333334,
"difficulty": 4.800000000000001,
"effort": 652.8000000000001,
"length": 34,
"operands": {
"distinct": 10,
"identifiers": [
"x",
"window",
"performance",
"now",
"<anonymous>",
"e",
"t",
"this",
"buffer",
"push"
],
"total": 16
},
"operators": {
"distinct": 6,
"identifiers": [
"&&",
"! (prefix)",
".",
"()",
"{}",
":"
],
"total": 18
},
"time": 36.26666666666667,
"vocabulary": 16,
"volume": 136
},
"line": 50,
"name": "time",
"params": 1,
"sloc": {
"logical": 3,
"physical": 1
}
}
],
"maintainability": 138.479223476139,
"params": 0.8333333333333334
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 28.57142857142857,
"halstead": {
"bugs": 0.1337829485591189,
"difficulty": 8.8125,
"effort": 3536.8867025317063,
"length": 90,
"operands": {
"distinct": 16,
"identifiers": [
"\"summaryTag\"",
"window",
"lp",
"analytics",
"dataLayer",
"_hasOwnProperty",
"summaryTag",
"<anonymous>",
"context",
"\"homepage\"",
"context_id",
"\"\"",
"content_topic",
"content_type",
"\"landing page\"",
"content_id"
],
"total": 47
},
"operators": {
"distinct": 6,
"identifiers": [
"if",
"! (prefix)",
"()",
".",
"=",
"{}"
],
"total": 43
},
"time": 196.4937056962059,
"vocabulary": 22,
"volume": 401.34884567735673
},
"line": 2,
"params": 0,
"sloc": {
"logical": 7,
"physical": 1
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [],
"maintainability": 111.37200435816186,
"params": 0
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 28.57142857142857,
"halstead": {
"bugs": 0.09743252743760857,
"difficulty": 5.913043478260869,
"effort": 1728.3683128062735,
"length": 59,
"operands": {
"distinct": 23,
"identifiers": [
"document",
"\"script\"",
"Date",
"<anonymous>",
"d",
"t",
"c",
"filepath",
{},
"cookie",
"match",
"\"analytics.dev.js?\"",
"getTime",
"\"analytics.min.js\"",
"g",
"createElement",
"s",
"getElementsByTagName",
0,
"src",
"\"//assets.staticlp.com/analytics/\"",
"parentNode",
"insertBefore"
],
"total": 34
},
"operators": {
"distinct": 8,
"identifiers": [
"()",
"new",
"function",
"var",
"=",
":?",
".",
"+"
],
"total": 25
},
"time": 96.02046182257075,
"vocabulary": 31,
"volume": 292.2975823128257
},
"line": 3,
"params": 3,
"sloc": {
"logical": 7,
"physical": 7
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 2,
"cyclomaticDensity": 40,
"halstead": {
"bugs": 0.08049350728942856,
"difficulty": 4.7368421052631575,
"effort": 1143.8551035866162,
"length": 52,
"operands": {
"distinct": 19,
"identifiers": [
"d",
"t",
"c",
"filepath",
{},
"cookie",
"match",
"\"analytics.dev.js?\"",
"getTime",
"\"analytics.min.js\"",
"g",
"createElement",
"s",
"getElementsByTagName",
0,
"src",
"\"//assets.staticlp.com/analytics/\"",
"parentNode",
"insertBefore"
],
"total": 30
},
"operators": {
"distinct": 6,
"identifiers": [
"var",
"=",
":?",
"()",
".",
"+"
],
"total": 22
},
"time": 63.547505754812015,
"vocabulary": 25,
"volume": 241.48052186828568
},
"line": 3,
"name": "<anonymous>",
"params": 3,
"sloc": {
"logical": 5,
"physical": 7
}
}
],
"maintainability": 120.68349645578701,
"params": 3
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 40,
"halstead": {
"bugs": 0.06634557535550285,
"difficulty": 5.25,
"effort": 1044.94281184917,
"length": 44,
"operands": {
"distinct": 16,
"identifiers": [
"\"querySelector\"",
"document",
"\"localStorage\"",
"window",
"\"addEventListener\"",
"\"classList\"",
"documentElement",
"<anonymous>",
"H",
"className",
{},
"\"enhanced\"",
"replace",
"lp",
"enhanced",
true
],
"total": 24
},
"operators": {
"distinct": 7,
"identifiers": [
"if",
"&&",
"in",
".",
"()",
"function",
"="
],
"total": 20
},
"time": 58.052378436065005,
"vocabulary": 23,
"volume": 199.03672606650858
},
"line": 2,
"params": 1,
"sloc": {
"logical": 5,
"physical": 7
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.013,
"difficulty": 2.4000000000000004,
"effort": 93.60000000000001,
"length": 13,
"operands": {
"distinct": 5,
"identifiers": [
"H",
"className",
{},
"\"enhanced\"",
"replace"
],
"total": 8
},
"operators": {
"distinct": 3,
"identifiers": [
"=",
".",
"()"
],
"total": 5
},
"time": 5.2,
"vocabulary": 8,
"volume": 39
},
"line": 6,
"name": "<anonymous>",
"params": 1,
"sloc": {
"logical": 1,
"physical": 1
}
}
],
"maintainability": 155.47651608848628,
"params": 1
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 18.181818181818183,
"halstead": {
"bugs": 0.13644611534953321,
"difficulty": 5.866666666666666,
"effort": 2401.4516301517842,
"length": 78,
"operands": {
"distinct": 30,
"identifiers": [
"window",
"lp",
"enhanced",
"\"_lpfont\"",
"localStorage",
"getItem",
"\"true\"",
"ss",
"\"link\"",
"document",
"createElement",
"firstLink",
"getElementsByTagName",
0,
"fontPath",
"\"http://assets.staticlp.com/assets/fonts-8cdd99b4158873197229ae4641e9f9d6.css\"",
"href",
"rel",
"\"stylesheet\"",
"type",
"\"text/css\"",
"parentNode",
"insertBefore",
"documentElement",
"<anonymous>",
"H",
"className",
{},
"\"freight\"",
"replace"
],
"total": 44
},
"operators": {
"distinct": 8,
"identifiers": [
"if",
"&&",
".",
"==",
"()",
"var",
"=",
"function"
],
"total": 34
},
"time": 133.4139794528769,
"vocabulary": 38,
"volume": 409.33834604859965
},
"line": 2,
"params": 1,
"sloc": {
"logical": 11,
"physical": 14
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.013,
"difficulty": 2.4000000000000004,
"effort": 93.60000000000001,
"length": 13,
"operands": {
"distinct": 5,
"identifiers": [
"H",
"className",
{},
"\"freight\"",
"replace"
],
"total": 8
},
"operators": {
"distinct": 3,
"identifiers": [
"=",
".",
"()"
],
"total": 5
},
"time": 5.2,
"vocabulary": 8,
"volume": 39
},
"line": 14,
"name": "<anonymous>",
"params": 1,
"sloc": {
"logical": 1,
"physical": 1
}
}
],
"maintainability": 155.47651608848628,
"params": 1
},
{
"aggregate": {
"cyclomatic": 3,
"cyclomaticDensity": 12,
"halstead": {
"bugs": 0.3518331730465508,
"difficulty": 12.980769230769232,
"effort": 13701.19568113972,
"length": 174,
"operands": {
"distinct": 52,
"identifiers": [
"<anonymous>",
"docElement",
"document",
"documentElement",
"activePath",
"\"http://assets.staticlp.com/assets/icons/active-53eca36edb06cae3187964f770e8c53b.css\"",
"criticalPath",
"\"http://assets.staticlp.com/assets/icons/critical-601e7308f8b9de6ff4e5959ddc66cf40.css\"",
"styleSheet",
"path",
"link",
"\"link\"",
"createElement",
"rel",
"\"stylesheet\"",
"type",
"\"text/css\"",
"href",
"supportsSVG",
"hasBgSize",
"\"background-size\"",
"style",
"\"backgroundSize\"",
"hasSvg",
"window",
"createElementNS",
"\"http://www.w3.org/2000/svg\"",
"\"svg\"",
"createSVGRect",
"\"http://www.w3.org/TR/SVG11/feature#Image\"",
"\"1.1\"",
"implementation",
"hasFeature",
"opera",
"\"Chrome\"",
"navigator",
"userAgent",
"indexOf",
1,
"enhanced",
"lp",
"script",
"\"script\"",
"getElementsByTagName",
0,
"head",
"parentNode",
"insertBefore",
"className",
"\" supports-svg\"",
"\" no-background-size\"",
"setTimeout"
],
"total": 90
},
"operators": {
"distinct": 15,
"identifiers": [
"()",
"function",
"var",
"=",
".",
"return",
"||",
"in",
"&&",
"! (prefix)",
"===",
"- (prefix)",
"if",
"else",
"+="
],
"total": 84
},
"time": 761.1775378410955,
"vocabulary": 67,
"volume": 1055.4995191396524
},
"line": 2,
"params": 1,
"sloc": {
"logical": 25,
"physical": 36
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 16.666666666666664,
"halstead": {
"bugs": 0.03196942501105773,
"difficulty": 2.5,
"effort": 239.77068758293296,
"length": 23,
"operands": {
"distinct": 13,
"identifiers": [
"docElement",
"document",
"documentElement",
"activePath",
"\"http://assets.staticlp.com/assets/icons/active-53eca36edb06cae3187964f770e8c53b.css\"",
"criticalPath",
"\"http://assets.staticlp.com/assets/icons/critical-601e7308f8b9de6ff4e5959ddc66cf40.css\"",
"styleSheet",
"supportsSVG",
"<anonymous>",
0,
"window",
"setTimeout"
],
"total": 13
},
"operators": {
"distinct": 5,
"identifiers": [
"var",
"=",
".",
"function",
"()"
],
"total": 10
},
"time": 13.320593754607387,
"vocabulary": 18,
"volume": 95.90827503317318
},
"line": 2,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 6,
"physical": 36
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 20,
"halstead": {
"bugs": 0.033859718495273826,
"difficulty": 3.75,
"effort": 380.9218330718306,
"length": 26,
"operands": {
"distinct": 10,
"identifiers": [
"path",
"link",
"\"link\"",
"document",
"createElement",
"rel",
"\"stylesheet\"",
"type",
"\"text/css\"",
"href"
],
"total": 15
},
"operators": {
"distinct": 5,
"identifiers": [
"var",
"=",
"()",
".",
"return"
],
"total": 11
},
"time": 21.162324059546144,
"vocabulary": 15,
"volume": 101.57915548582149
},
"line": 7,
"name": "styleSheet",
"params": 1,
"sloc": {
"logical": 5,
"physical": 7
}
},
{
"cyclomatic": 2,
"cyclomaticDensity": 50,
"halstead": {
"bugs": 0.12994183642927248,
"difficulty": 8.25,
"effort": 3216.060451624494,
"length": 76,
"operands": {
"distinct": 24,
"identifiers": [
"hasBgSize",
"\"background-size\"",
"docElement",
"style",
"\"backgroundSize\"",
"hasSvg",
"window",
"document",
"createElementNS",
"\"http://www.w3.org/2000/svg\"",
"\"svg\"",
"createSVGRect",
"\"http://www.w3.org/TR/SVG11/feature#Image\"",
"\"1.1\"",
"implementation",
"hasFeature",
"opera",
"\"Chrome\"",
"navigator",
"userAgent",
"indexOf",
1,
"enhanced",
"lp"
],
"total": 36
},
"operators": {
"distinct": 11,
"identifiers": [
"var",
"=",
"||",
"in",
".",
"&&",
"! (prefix)",
"()",
"===",
"- (prefix)",
"return"
],
"total": 40
},
"time": 178.67002509024965,
"vocabulary": 35,
"volume": 389.82550928781745
},
"line": 15,
"name": "supportsSVG",
"params": 0,
"sloc": {
"logical": 4,
"physical": 10
}
},
{
"cyclomatic": 2,
"cyclomaticDensity": 25,
"halstead": {
"bugs": 0.06936128332620753,
"difficulty": 5.46875,
"effort": 1137.9585545705922,
"length": 46,
"operands": {
"distinct": 16,
"identifiers": [
"script",
"\"script\"",
"document",
"getElementsByTagName",
0,
"head",
"parentNode",
"supportsSVG",
"activePath",
"styleSheet",
"insertBefore",
"docElement",
"className",
"\" supports-svg\"",
"criticalPath",
"\" no-background-size\""
],
"total": 25
},
"operators": {
"distinct": 7,
"identifiers": [
"var",
"=",
".",
"()",
"if",
"else",
"+="
],
"total": 21
},
"time": 63.21991969836623,
"vocabulary": 23,
"volume": 208.0838499786226
},
"line": 26,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 8,
"physical": 11
}
}
],
"maintainability": 118.19937258356828,
"params": 0.25
},
{
"aggregate": {
"cyclomatic": 1,
"cyclomaticDensity": 7.6923076923076925,
"halstead": {
"bugs": 0.06801173393178601,
"difficulty": 2.08,
"effort": 424.39321973434477,
"length": 42,
"operands": {
"distinct": 25,
"identifiers": [
"require",
"<anonymous>",
"baseUrl",
"\"/assets\"",
"paths",
"flamsteed",
"\"flamsteed/lib/javascripts/flamsteed\"",
"hogan",
"\"hogan/dist/hogan-3.0.0.amd\"",
"jplugs",
"\"jquery-plugins\"",
"jquery",
"\"jquery/jquery\"",
"sailthru",
"\"sailthru/v1\"",
"sCode",
"\"omniture/s_code\"",
"trackjs",
"\"trackjs/trackjs\"",
"dfp",
"\"jquery.dfp.js/jquery.dfp\"",
"autocomplete",
"\"autocomplete/dist/autocomplete\"",
"waitSeconds",
30
],
"total": 26
},
"operators": {
"distinct": 4,
"identifiers": [
"var",
"=",
"{}",
":"
],
"total": 16
},
"time": 23.57740109635249,
"vocabulary": 29,
"volume": 204.03520179535806
},
"line": 2,
"params": 0,
"sloc": {
"logical": 13,
"physical": 15
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [],
"maintainability": 108.75456173684239,
"params": 0
},
{
"aggregate": {
"cyclomatic": 3,
"cyclomaticDensity": 25,
"halstead": {
"bugs": 0.11870746629584127,
"difficulty": 5.314814814814815,
"effort": 1892.7246014948023,
"length": 70,
"operands": {
"distinct": 27,
"identifiers": [
"document",
"\"script\"",
"<anonymous>",
"d",
"s",
"ie",
{},
"documentElement",
"className",
"match",
"window",
"lp",
"enhanced",
"firstJs",
"js",
"getElementsByTagName",
0,
"createElement",
"async",
true,
"src",
"\"http://assets.staticlp.com/assets/requirejs/require-df4c7f151993597367cecd98f28164db.js\"",
"\"data-main\"",
"\"http://assets.staticlp.com/assets/app_homepage-e018393f9fcff3321e91e2a5414d232f.js\"",
"setAttribute",
"parentNode",
"insertBefore"
],
"total": 41
},
"operators": {
"distinct": 7,
"identifiers": [
"()",
"function",
"var",
"=",
".",
"if",
"||"
],
"total": 29
},
"time": 105.15136674971124,
"vocabulary": 34,
"volume": 356.1223988875238
},
"line": 2,
"params": 2,
"sloc": {
"logical": 12,
"physical": 12
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 3,
"cyclomaticDensity": 30,
"halstead": {
"bugs": 0.1073409200583823,
"difficulty": 4.5600000000000005,
"effort": 1468.42378639867,
"length": 65,
"operands": {
"distinct": 25,
"identifiers": [
"d",
"s",
"ie",
{},
"document",
"documentElement",
"className",
"match",
"window",
"lp",
"enhanced",
"firstJs",
"js",
"getElementsByTagName",
0,
"createElement",
"async",
true,
"src",
"\"http://assets.staticlp.com/assets/requirejs/require-df4c7f151993597367cecd98f28164db.js\"",
"\"data-main\"",
"\"http://assets.staticlp.com/assets/app_homepage-e018393f9fcff3321e91e2a5414d232f.js\"",
"setAttribute",
"parentNode",
"insertBefore"
],
"total": 38
},
"operators": {
"distinct": 6,
"identifiers": [
"var",
"=",
"()",
".",
"if",
"||"
],
"total": 27
},
"time": 81.57909924437055,
"vocabulary": 31,
"volume": 322.0227601751469
},
"line": 2,
"name": "<anonymous>",
"params": 2,
"sloc": {
"logical": 10,
"physical": 12
}
}
],
"maintainability": 108.50698927891786,
"params": 2
},
{
"aggregate": {
"cyclomatic": 1,
"cyclomaticDensity": 6.666666666666667,
"halstead": {
"bugs": 0.07739760316291208,
"difficulty": 3.0476190476190474,
"effort": 707.6352289180533,
"length": 50,
"operands": {
"distinct": 21,
"identifiers": [
"window",
"lp",
"tracking",
"<anonymous>",
"pageName",
"\"homepage\"",
"channel",
"prop1",
"prop7",
"\"lp homepage\"",
"prop8",
"eVar2",
"eVar11",
"\"homepage-v2\"",
"eVar12",
"eVar13",
"oun",
"\"lonelyplanet-global\"",
"un",
"server",
"\"www.lonelyplanet.com\""
],
"total": 32
},
"operators": {
"distinct": 4,
"identifiers": [
"=",
".",
"{}",
":"
],
"total": 18
},
"time": 39.313068273225184,
"vocabulary": 25,
"volume": 232.19280948873623
},
"line": 2,
"params": 0,
"sloc": {
"logical": 15,
"physical": 17
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [],
"maintainability": 104.68779042558094,
"params": 0
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 20,
"halstead": {
"bugs": 0.1057618082852673,
"difficulty": 8.289473684210526,
"effort": 2630.129179725726,
"length": 66,
"operands": {
"distinct": 19,
"identifiers": [
"<anonymous>",
"window",
"lp",
"enhanced",
"supports",
"localStorage",
"\"_lpfont\"",
"getItem",
"\"true\"",
"onload",
"xhr",
"XMLHttpRequest",
"fontPath",
"\"http://assets.staticlp.com/assets/fonts-8cdd99b4158873197229ae4641e9f9d6.css\"",
"\"GET\"",
"open",
"e",
"setItem",
"send"
],
"total": 35
},
"operators": {
"distinct": 9,
"identifiers": [
"()",
"function",
"if",
"&&",
".",
"!=",
"=",
"var",
"new"
],
"total": 31
},
"time": 146.11828776254032,
"vocabulary": 28,
"volume": 317.28542485580186
},
"line": 2,
"params": 1,
"sloc": {
"logical": 10,
"physical": 21
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 2,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.040874628412503396,
"difficulty": 5.25,
"effort": 643.7753974969285,
"length": 30,
"operands": {
"distinct": 10,
"identifiers": [
"window",
"lp",
"enhanced",
"supports",
"localStorage",
"\"_lpfont\"",
"getItem",
"\"true\"",
"onload",
"<anonymous>"
],
"total": 15
},
"operators": {
"distinct": 7,
"identifiers": [
"if",
"&&",
".",
"!=",
"()",
"=",
"function"
],
"total": 15
},
"time": 35.76529986094047,
"vocabulary": 17,
"volume": 122.6238852375102
},
"line": 2,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 2,
"physical": 20
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 20,
"halstead": {
"bugs": 0.03125512476486815,
"difficulty": 4.333333333333333,
"effort": 406.3166219432859,
"length": 24,
"operands": {
"distinct": 9,
"identifiers": [
"xhr",
"XMLHttpRequest",
"fontPath",
"\"http://assets.staticlp.com/assets/fonts-8cdd99b4158873197229ae4641e9f9d6.css\"",
"\"GET\"",
"open",
"onload",
"<anonymous>",
"send"
],
"total": 13
},
"operators": {
"distinct": 6,
"identifiers": [
"var",
"=",
"new",
"()",
".",
"function"
],
"total": 11
},
"time": 22.573145663515884,
"vocabulary": 15,
"volume": 93.76537429460444
},
"line": 7,
"name": "window.onload",
"params": 0,
"sloc": {
"logical": 5,
"physical": 12
}
},
{
"cyclomatic": 1,
"cyclomaticDensity": 100,
"halstead": {
"bugs": 0.009,
"difficulty": 1,
"effort": 27,
"length": 9,
"operands": {
"distinct": 6,
"identifiers": [
"e",
"\"_lpfont\"",
"\"true\"",
"window",
"localStorage",
"setItem"
],
"total": 6
},
"operators": {
"distinct": 2,
"identifiers": [
"()",
"."
],
"total": 3
},
"time": 1.5,
"vocabulary": 8,
"volume": 27
},
"line": 13,
"name": "xhr.onload",
"params": 1,
"sloc": {
"logical": 1,
"physical": 3
}
}
],
"maintainability": 134.92314446181967,
"params": 0.3333333333333333
},
{
"aggregate": {
"cyclomatic": 1,
"cyclomaticDensity": 10,
"halstead": {
"bugs": 0.12833333333333333,
"difficulty": 5.739999999999999,
"effort": 2209.8999999999996,
"length": 77,
"operands": {
"distinct": 25,
"identifiers": [
"<anonymous>",
"url",
"window",
"location",
"href",
"referrer",
"document",
"username",
"\"lpCookie\"",
"lp",
"getCookie",
"\"#\"",
"split",
0,
"country",
"\"country\"",
"viewport",
"documentElement",
"clientWidth",
"variant",
"\"_v\"",
"schema",
"\"0.1\"",
"fs",
"log"
],
"total": 41
},
"operators": {
"distinct": 7,
"identifiers": [
"()",
"function",
"return",
"{}",
":",
".",
"&&"
],
"total": 36
},
"time": 122.7722222222222,
"vocabulary": 32,
"volume": 385
},
"line": 2,
"params": 0,
"sloc": {
"logical": 10,
"physical": 11
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 12.5,
"halstead": {
"bugs": 0.1068755818928066,
"difficulty": 4.695652173913044,
"effort": 1505.5516753595366,
"length": 66,
"operands": {
"distinct": 23,
"identifiers": [
"<anonymous>",
"url",
"window",
"location",
"href",
"referrer",
"document",
"username",
"\"lpCookie\"",
"lp",
"getCookie",
"\"#\"",
"split",
0,
"country",
"\"country\"",
"viewport",
"documentElement",
"clientWidth",
"variant",
"\"_v\"",
"schema",
"\"0.1\""
],
"total": 36
},
"operators": {
"distinct": 6,
"identifiers": [
"return",
"{}",
":",
".",
"&&",
"()"
],
"total": 30
},
"time": 83.64175974219648,
"vocabulary": 29,
"volume": 320.6267456784198
},
"line": 2,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 8,
"physical": 11
}
}
],
"maintainability": 112.28919884751679,
"params": 0
},
{
"aggregate": {
"cyclomatic": 4,
"cyclomaticDensity": 28.57142857142857,
"halstead": {
"bugs": 0.155,
"difficulty": 12.571428571428571,
"effort": 5845.714285714285,
"length": 93,
"operands": {
"distinct": 21,
"identifiers": [
"window",
"lp",
"enhanced",
"<anonymous>",
"firstScript",
"\"script\"",
"document",
"getElementsByTagName",
0,
"js",
"createElement",
"src",
"\"http://assets.staticlp.com/assets/omniture/s_code-502062e069214e341913486091bc22aa.js\"",
"onload",
"property",
"s",
"tracking",
"t",
"\"function\"",
"parentNode",
"insertBefore"
],
"total": 48
},
"operators": {
"distinct": 11,
"identifiers": [
"if",
"! (prefix)",
".",
"()",
"function",
"var",
"=",
"&&",
"forin",
"===",
"typeof (prefix)"
],
"total": 45
},
"time": 324.76190476190476,
"vocabulary": 32,
"volume": 465
},
"line": 2,
"params": 0,
"sloc": {
"logical": 14,
"physical": 23
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [
{
"cyclomatic": 1,
"cyclomaticDensity": 20,
"halstead": {
"bugs": 0.05003910001730774,
"difficulty": 3.8461538461538463,
"effort": 577.3742309689355,
"length": 36,
"operands": {
"distinct": 13,
"identifiers": [
"firstScript",
"\"script\"",
"document",
"getElementsByTagName",
0,
"js",
"createElement",
"src",
"\"http://assets.staticlp.com/assets/omniture/s_code-502062e069214e341913486091bc22aa.js\"",
"onload",
"<anonymous>",
"parentNode",
"insertBefore"
],
"total": 20
},
"operators": {
"distinct": 5,
"identifiers": [
"var",
"=",
".",
"()",
"function"
],
"total": 16
},
"time": 32.076346164940865,
"vocabulary": 18,
"volume": 150.11730005192322
},
"line": 3,
"name": "<anonymous>",
"params": 0,
"sloc": {
"logical": 5,
"physical": 21
}
},
{
"cyclomatic": 3,
"cyclomaticDensity": 50,
"halstead": {
"bugs": 0.06266666666666666,
"difficulty": 15.428571428571427,
"effort": 2900.5714285714284,
"length": 47,
"operands": {
"distinct": 7,
"identifiers": [
"property",
"window",
"s",
"lp",
"tracking",
"t",
"\"function\""
],
"total": 24
},
"operators": {
"distinct": 9,
"identifiers": [
"var",
"if",
"&&",
".",
"forin",
"=",
"===",
"typeof (prefix)",
"()"
],
"total": 23
},
"time": 161.14285714285714,
"vocabulary": 16,
"volume": 188
},
"line": 10,
"name": "js.onload",
"params": 0,
"sloc": {
"logical": 6,
"physical": 11
}
}
],
"maintainability": 117.706866429799,
"params": 0
},
{
"aggregate": {
"cyclomatic": 2,
"cyclomaticDensity": 20,
"halstead": {
"bugs": 0.0842213372765769,
"difficulty": 5.217391304347826,
"effort": 1318.2470182420732,
"length": 51,
"operands": {
"distinct": 23,
"identifiers": [
"window",
"lp",
"ads",
"<anonymous>",
"\"channels\"",
"\"homepage dt-main-4stack\"",
"\"hints\"",
"\"travel\"",
"\"keyValues\"",
"\"layers\"",
"\"2009.lonelyplanet\"",
"\"homepage\"",
"\"networkCode\"",
4817,
"\"toDisplay\"",
"\"mpu\"",
"\"trafficDriver\"",
"\"adSense\"",
"\"adZone\"",
"isMobile",
"\"leaderboard\"",
"toDisplay",
"push"
],
"total": 30
},
"operators": {
"distinct": 8,
"identifiers": [
"=",
".",
"{}",
":",
"[]",
"if",
"! (prefix)",
"()"
],
"total": 21
},
"time": 73.23594545789295,
"vocabulary": 31,
"volume": 252.66401182973067
},
"line": 2,
"params": 0,
"sloc": {
"logical": 10,
"physical": 13
}
},
"dependencies": [],
"fileName": "inline JavaScript in http://www.lonelyplanet.com/",
"functions": [],
"maintainability": 108.96921888353164,
"params": 0
}
]
},
"timestamp": 1405532291
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment