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.36 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1301 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is not defined. (totalt 263 st)
- X is assigned a value but never used. (totalt 164 st)
- Unexpected console statement. (totalt 37 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #128: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #128: js, antal fel: 406 ( 1.00 betyg )
- X is defined but never used. (totalt 329 st)
- X is assigned a value but never used. (totalt 66 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #129: conversations-e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #129: conversations-e, antal fel: 441 ( 1.00 betyg )
- X is defined but never used. (totalt 353 st)
- X is assigned a value but never used. (totalt 66 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #130: leadflows.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #130: leadflows.js, antal fel: 442 ( 1.00 betyg )
- X is defined but never used. (totalt 353 st)
- X is assigned a value but never used. (totalt 66 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 11 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #131: web-interactive, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #131: web-interactive, antal fel: 463 ( 1.00 betyg )
- X is defined but never used. (totalt 366 st)
- X is assigned a value but never used. (totalt 70 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 11 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #132: 6753120.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #132: 6753120.js, antal fel: 512 ( 1.00 betyg )
- X is defined but never used. (totalt 389 st)
- X is assigned a value but never used. (totalt 70 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 15 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #133: fb.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #133: fb.js, antal fel: 522 ( 1.00 betyg )
- X is defined but never used. (totalt 390 st)
- X is assigned a value but never used. (totalt 70 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 15 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #134: banner.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #134: banner.js, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 398 st)
- X is assigned a value but never used. (totalt 70 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 22 st)
- Parsing error: X in strict mode (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: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4329 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3125 st)
- Expected X and instead saw X. (totalt 833 st)
- Do not access Object.prototype method X from target object. (totalt 183 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \.. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is not modified in this loop. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 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)
- 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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #128: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #128: js, antal fel: 1609 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1266 st)
- Expected X and instead saw X. (totalt 232 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: conversations-e, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #129: conversations-e, antal fel: 1786 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1382 st)
- Expected X and instead saw X. (totalt 293 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #130: leadflows.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #130: leadflows.js, antal fel: 1787 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1382 st)
- Expected X and instead saw X. (totalt 293 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #131: web-interactive, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #131: web-interactive, antal fel: 1991 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1570 st)
- Expected X and instead saw X. (totalt 309 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #132: 6753120.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #132: 6753120.js, antal fel: 2255 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1729 st)
- Expected X and instead saw X. (totalt 407 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #133: fb.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #133: fb.js, antal fel: 2274 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1743 st)
- Expected X and instead saw X. (totalt 407 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #134: banner.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #134: banner.js, antal fel: 2506 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1861 st)
- Expected X and instead saw X. (totalt 515 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: X in strict mode (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)