Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 2.88 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1396 ( 1.00 betyg )
- X is defined but never used. (totalt 652 st)
- X is not defined. (totalt 567 st)
- X is assigned a value but never used. (totalt 126 st)
- Unexpected console statement. (totalt 51 st)
- `< script>` in: #167: generateWidget., antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #167: generateWidget., antal fel: 19 ( 1.20 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #168: generateWidget., antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #168: generateWidget., antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #147: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #147: gtm.js, antal fel: 529 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #156: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #156: js, antal fel: 965 ( 1.00 betyg )
- X is defined but never used. (totalt 772 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #157: track.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #157: track.js, antal fel: 1038 ( 1.00 betyg )
- X is defined but never used. (totalt 797 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 82 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal fel: 1059 ( 1.00 betyg )
- X is defined but never used. (totalt 812 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #165: button.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #165: button.php, antal fel: 1060 ( 1.00 betyg )
- X is defined but never used. (totalt 812 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #171: bundle-8b8f563a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #171: bundle-8b8f563a, antal fel: 1063 ( 1.00 betyg )
- X is defined but never used. (totalt 815 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #172: stringutils-d4d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #172: stringutils-d4d, antal fel: 1085 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #173: track-visit.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #173: track-visit.php, antal fel: 1090 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 90 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #177: postmessage-bun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #177: postmessage-bun, antal fel: 1100 ( 1.00 betyg )
- X is defined but never used. (totalt 838 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 96 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #178: pushstream-bund, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #178: pushstream-bund, antal fel: 1115 ( 1.00 betyg )
- X is defined but never used. (totalt 853 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 96 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #179: bus-bundle.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #179: bus-bundle.js, antal fel: 1134 ( 1.00 betyg )
- X is defined but never used. (totalt 856 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 110 st)
- Unexpected console statement. (totalt 12 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5622 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3738 st)
- Expected X and instead saw X. (totalt 1575 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 29 st)
- Unnecessary X. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \%. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \;. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `< script>` in: #167: generateWidget., antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #167: generateWidget., antal fel: 17 ( 1.60 betyg )
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `< script>` in: #168: generateWidget., antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #168: generateWidget., antal fel: 17 ( 1.60 betyg )
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #147: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #147: gtm.js, antal fel: 1273 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 894 st)
- Expected X and instead saw X. (totalt 239 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #156: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #156: js, antal fel: 2832 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2114 st)
- Expected X and instead saw X. (totalt 470 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #157: track.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #157: track.js, antal fel: 3152 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2254 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 204 st)
- Unnecessary escape character: \-. (totalt 46 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #158: lftracker-v1-3P, antal fel: 3315 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2361 st)
- Expected X and instead saw X. (totalt 641 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #165: button.php, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #165: button.php, antal fel: 3315 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2361 st)
- Expected X and instead saw X. (totalt 641 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #171: bundle-8b8f563a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #171: bundle-8b8f563a, antal fel: 3499 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2486 st)
- Expected X and instead saw X. (totalt 697 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #172: stringutils-d4d, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #172: stringutils-d4d, antal fel: 3752 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2700 st)
- Expected X and instead saw X. (totalt 734 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #173: track-visit.php, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #173: track-visit.php, antal fel: 3752 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2700 st)
- Expected X and instead saw X. (totalt 734 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #177: postmessage-bun, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #177: postmessage-bun, antal fel: 3769 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2708 st)
- Expected X and instead saw X. (totalt 743 st)
- Do not access Object.prototype method X from target object. (totalt 208 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #178: pushstream-bund, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #178: pushstream-bund, antal fel: 3862 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2788 st)
- Expected X and instead saw X. (totalt 747 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 25 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #179: bus-bundle.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #179: bus-bundle.js, antal fel: 3880 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2795 st)
- Expected X and instead saw X. (totalt 756 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)