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.30 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 273 ( 1.00 betyg )
- X is not defined. (totalt 144 st)
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #36: 5gyywflq7olaytl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: 5gyywflq7olaytl, antal fel: 62 ( 1.00 betyg )
- X is not defined. (totalt 34 st)
- X is defined but never used. (totalt 16 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #50: chatPanel.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: chatPanel.js, antal fel: 399 ( 1.00 betyg )
- X is defined but never used. (totalt 281 st)
- Unexpected console statement. (totalt 65 st)
- X is not defined. (totalt 46 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #51: kariSvgAnimator, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: kariSvgAnimator, antal fel: 425 ( 1.00 betyg )
- X is defined but never used. (totalt 300 st)
- Unexpected console statement. (totalt 67 st)
- X is not defined. (totalt 50 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #52: halden.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: halden.js, antal fel: 427 ( 1.00 betyg )
- X is defined but never used. (totalt 301 st)
- Unexpected console statement. (totalt 67 st)
- X is not defined. (totalt 50 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #53: kari.install.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: kari.install.js, antal fel: 464 ( 1.00 betyg )
- X is defined but never used. (totalt 303 st)
- X is not defined. (totalt 79 st)
- Unexpected console statement. (totalt 67 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #56: extern2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: extern2.min.js, antal fel: 501 ( 1.00 betyg )
- X is defined but never used. (totalt 326 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 68 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #57: vfact2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: vfact2.min.js, antal fel: 660 ( 1.00 betyg )
- X is defined but never used. (totalt 350 st)
- X is not defined. (totalt 218 st)
- Unexpected console statement. (totalt 72 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #58: extern2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: extern2.min.js, antal fel: 697 ( 1.00 betyg )
- X is defined but never used. (totalt 373 st)
- X is not defined. (totalt 228 st)
- Unexpected console statement. (totalt 73 st)
- X is assigned a value but never used. (totalt 23 st)
- `content-type=".*javascript.*"` in: #59: vfact2.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: vfact2.min.js, antal fel: 856 ( 1.00 betyg )
- X is defined but never used. (totalt 397 st)
- X is not defined. (totalt 357 st)
- Unexpected console statement. (totalt 77 st)
- X is assigned a value but never used. (totalt 25 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- Expected X and instead saw X. (totalt 7 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1222 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 807 st)
- Expected X and instead saw X. (totalt 351 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 20 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: 5gyywflq7olaytl, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: 5gyywflq7olaytl, antal fel: 53 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 37 st)
- Expected X and instead saw X. (totalt 15 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: chatPanel.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #50: chatPanel.js, antal fel: 4020 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2001 st)
- Expected X and instead saw X. (totalt 1878 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: kariSvgAnimator, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #51: kariSvgAnimator, antal fel: 4232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2186 st)
- Expected X and instead saw X. (totalt 1902 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (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: #52: halden.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #52: halden.js, antal fel: 4232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2186 st)
- Expected X and instead saw X. (totalt 1902 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (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: #53: kari.install.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #53: kari.install.js, antal fel: 4285 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2187 st)
- Expected X and instead saw X. (totalt 1907 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: extern2.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: extern2.min.js, antal fel: 5050 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2598 st)
- Expected X and instead saw X. (totalt 2246 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: vfact2.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #57: vfact2.min.js, antal fel: 5171 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2682 st)
- Expected X and instead saw X. (totalt 2281 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: extern2.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #58: extern2.min.js, antal fel: 5936 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3093 st)
- Expected X and instead saw X. (totalt 2620 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: vfact2.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #59: vfact2.min.js, antal fel: 6057 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3177 st)
- Expected X and instead saw X. (totalt 2655 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Do not access Object.prototype method X from target object. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)