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.74 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: 43 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `< script>` in: #28: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #28: page.php, antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #28: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #28: page.php, antal fel: 1052 ( 1.00 betyg )
- X is not defined. (totalt 694 st)
- X is defined but never used. (totalt 354 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: dSV4gHhljOL.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: dSV4gHhljOL.js, antal fel: 69 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: renderer, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: renderer, antal fel: 70 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: X in strict mode (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: logging, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: logging, antal fel: 71 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: M2iEZBLUWK5.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #45: M2iEZBLUWK5.js, antal fel: 148 ( 1.00 betyg )
- X is not defined. (totalt 86 st)
- X is defined but never used. (totalt 58 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 4Dwm6VxrUr0.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #46: 4Dwm6VxrUr0.js, antal fel: 207 ( 1.00 betyg )
- X is not defined. (totalt 123 st)
- X is defined but never used. (totalt 80 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 8Dvk-eDMQTC.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: 8Dvk-eDMQTC.js, antal fel: 239 ( 1.00 betyg )
- X is not defined. (totalt 144 st)
- X is defined but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: ie38mp0O07P.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #48: ie38mp0O07P.js, antal fel: 244 ( 1.00 betyg )
- X is not defined. (totalt 147 st)
- X is defined but never used. (totalt 93 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (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: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 556 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 252 st)
- Expected X and instead saw X. (totalt 199 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (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: #28: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #28: page.php, antal fel: 898 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 881 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 6 st)
- `< script src="...">` in: #28: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #28: page.php, antal fel: 2630 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1518 st)
- Expected X and instead saw X. (totalt 976 st)
- Unnecessary X. (totalt 46 st)
- X is assigned to itself. (totalt 37 st)
- Unnecessary escape character: \". (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \'. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \< . (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)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: dSV4gHhljOL.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #40: dSV4gHhljOL.js, antal fel: 1172 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 947 st)
- Expected X and instead saw X. (totalt 215 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: renderer, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #41: renderer, antal fel: 1173 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 947 st)
- Expected X and instead saw X. (totalt 215 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: logging, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #42: logging, antal fel: 1174 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 947 st)
- Expected X and instead saw X. (totalt 215 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: M2iEZBLUWK5.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #45: M2iEZBLUWK5.js, antal fel: 1380 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1107 st)
- Expected X and instead saw X. (totalt 257 st)
- X is assigned to itself. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 4Dwm6VxrUr0.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #46: 4Dwm6VxrUr0.js, antal fel: 1489 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1191 st)
- Expected X and instead saw X. (totalt 277 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 8Dvk-eDMQTC.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: 8Dvk-eDMQTC.js, antal fel: 1553 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1234 st)
- Expected X and instead saw X. (totalt 297 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: ie38mp0O07P.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #48: ie38mp0O07P.js, antal fel: 1808 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1353 st)
- Expected X and instead saw X. (totalt 412 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \". (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)