Javascript
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.16 av 5
- JS är ok.Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 228 ( 1.00 betyg )
- X is defined but never used. (totalt 159 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #28: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #28: crossdomain.htm, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #22: cmp.php, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: cmp-final.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: cmp-final.min.j, antal fel: 661 ( 1.00 betyg )
- X is not defined. (totalt 557 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: cmp.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: cmp.php, antal fel: 664 ( 1.00 betyg )
- X is not defined. (totalt 559 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #27: bV8xLndfMTA4NTM, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: bV8xLndfMTA4NTM, antal fel: 679 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #45: shim.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: shim.js, antal fel: 679 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #46: line-clamp.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: line-clamp.js, antal fel: 679 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #53: line-clamp.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: line-clamp.js, antal fel: 679 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #54: twind.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: twind.js, antal fel: 680 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #55: style-vendorize, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: style-vendorize, antal fel: 680 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #56: shim.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: shim.js, antal fel: 680 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #57: observe.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: observe.js, antal fel: 680 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #58: twind.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: twind.js, antal fel: 681 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #59: style-vendorize, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: style-vendorize, antal fel: 681 ( 1.00 betyg )
- X is not defined. (totalt 574 st)
- X is defined but never used. (totalt 91 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #60: ujs.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: ujs.js, antal fel: 692 ( 1.00 betyg )
- X is not defined. (totalt 579 st)
- X is defined but never used. (totalt 97 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2251 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1106 st)
- Expected X and instead saw X. (totalt 878 st)
- Unnecessary escape character: \/. (totalt 181 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ReturnStatement. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `< script>` in: #28: crossdomain.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #28: crossdomain.htm, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #22: cmp.php, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #22: cmp.php, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: cmp-final.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #23: cmp-final.min.j, antal fel: 2058 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2054 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: cmp.php, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: cmp.php, antal fel: 2078 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2055 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: bV8xLndfMTA4NTM, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: bV8xLndfMTA4NTM, antal fel: 2345 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2057 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: shim.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: shim.js, antal fel: 2345 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2057 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: line-clamp.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: line-clamp.js, antal fel: 2345 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2057 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: line-clamp.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #53: line-clamp.js, antal fel: 2345 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2057 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: twind.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #54: twind.js, antal fel: 2461 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2142 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: style-vendorize, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #55: style-vendorize, antal fel: 2461 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2142 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: shim.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #56: shim.js, antal fel: 2466 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2144 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: observe.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #57: observe.js, antal fel: 2473 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2148 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 36 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: twind.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #58: twind.js, antal fel: 2592 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2235 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 67 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: style-vendorize, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: style-vendorize, antal fel: 2592 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2235 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 67 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: ujs.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #60: ujs.js, antal fel: 2646 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2272 st)
- Unnecessary escape character: \/. (totalt 287 st)
- Expected an assignment or function call and instead saw an expression. (totalt 84 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)