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.62 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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 171 ( 1.00 betyg )
- X is defined but never used. (totalt 115 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 533 ( 1.00 betyg )
- X is defined but never used. (totalt 427 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: ReadSpeaker.Cor, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: ReadSpeaker.Cor, antal fel: 747 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 217 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: ReadSpeaker.pub, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: ReadSpeaker.pub, antal fel: 767 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 237 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: ReadSpeaker.lib, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: ReadSpeaker.lib, antal fel: 830 ( 1.00 betyg )
- X is defined but never used. (totalt 440 st)
- X is not defined. (totalt 299 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: ReadSpeaker.Bas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: ReadSpeaker.Bas, antal fel: 2817 ( 1.00 betyg )
- X is not defined. (totalt 2261 st)
- X is defined but never used. (totalt 465 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 1 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1343 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 767 st)
- Expected X and instead saw X. (totalt 517 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 1162 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 800 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 63 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #21: ReadSpeaker.Cor, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #21: ReadSpeaker.Cor, antal fel: 1336 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 899 st)
- Expected X and instead saw X. (totalt 257 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 65 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #22: ReadSpeaker.pub, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #22: ReadSpeaker.pub, antal fel: 1351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 906 st)
- Expected X and instead saw X. (totalt 264 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 65 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #23: ReadSpeaker.lib, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #23: ReadSpeaker.lib, antal fel: 1362 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 912 st)
- Expected X and instead saw X. (totalt 269 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 65 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #24: ReadSpeaker.Bas, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #24: ReadSpeaker.Bas, antal fel: 2014 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1326 st)
- Expected X and instead saw X. (totalt 482 st)
- Do not access Object.prototype method X from target object. (totalt 120 st)
- Unnecessary escape character: \/. (totalt 65 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)