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: 3.15 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 86 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #10: de, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #10: de, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 1 st)
- `< script>` in: #32: dafbb23f-156275, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #32: dafbb23f-156275, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #32: dafbb23f-156275, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #32: dafbb23f-156275, antal fel: 1490 ( 1.00 betyg )
- X is not defined. (totalt 1135 st)
- X is defined but never used. (totalt 265 st)
- Unexpected console statement. (totalt 70 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #45: nr-1184.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #45: nr-1184.min.js, antal fel: 61 ( 1.00 betyg )
- X is defined but never used. (totalt 49 st)
- X is not defined. (totalt 12 st)
- `content-type=".*javascript.*"` in: #46: iframe-api, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #46: iframe-api, antal fel: 63 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- X is not defined. (totalt 12 st)
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal fel: 80 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #50: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #50: analytics.js, antal fel: 110 ( 1.00 betyg )
- X is defined but never used. (totalt 88 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 5 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 499 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 274 st)
- Expected X and instead saw X. (totalt 217 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script src="...">` in: #10: de, antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #10: de, antal fel: 394 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 153 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #32: dafbb23f-156275, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #32: dafbb23f-156275, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #32: dafbb23f-156275, antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #32: dafbb23f-156275, antal fel: 7093 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3572 st)
- Expected X and instead saw X. (totalt 3179 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Comparing to itself is potentially pointless. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Unnecessary escape character: \-. (totalt 26 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- The Function constructor is eval. (totalt 15 st)
- X is not modified in this loop. (totalt 11 st)
- Unsafe usage of ReturnStatement. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 7 st)
- Unnecessary escape character: \(. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \_. (totalt 2 st)
- X is assigned to itself. (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)
- `content-type=".*javascript.*"` in: #45: nr-1184.min.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #45: nr-1184.min.js, antal fel: 144 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 101 st)
- Expected X and instead saw X. (totalt 37 st)
- X is not modified in this loop. (totalt 2 st)
- Do not access Object.prototype method X from target object. (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: #46: iframe-api, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #46: iframe-api, antal fel: 152 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 101 st)
- Expected X and instead saw X. (totalt 37 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal fel: 359 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 200 st)
- Expected X and instead saw X. (totalt 127 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: analytics.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #50: analytics.js, antal fel: 789 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 434 st)
- Expected X and instead saw X. (totalt 305 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)