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.74 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 797 ( 1.00 betyg )
- X is defined but never used. (totalt 608 st)
- X is assigned a value but never used. (totalt 128 st)
- Unexpected console statement. (totalt 39 st)
- X is not defined. (totalt 22 st)
- `< script>` in: #63: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #63: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: e2d874b.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #33: e2d874b.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #41: 11f238e.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #41: 11f238e.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #42: 02ef396.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #42: 02ef396.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: a6d4eb9.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #43: a6d4eb9.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: 210fd5f.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #44: 210fd5f.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: 102f5a0.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #45: 102f5a0.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #46: cfa9fe7.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #46: cfa9fe7.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #50: b4c8b74.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #50: b4c8b74.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: 2ba5135.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #51: 2ba5135.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: ee2293f.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #52: ee2293f.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #53: 842a052.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #53: 842a052.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: 8e6674f.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #54: 8e6674f.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: 9ba47d2.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #58: 9ba47d2.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #59: 779359d.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #59: 779359d.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #60: b1d9691.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #60: b1d9691.js, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #61: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: uc.js, antal fel: 49 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- X is assigned a value but never used. (totalt 15 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: js, antal fel: 489 ( 1.00 betyg )
- X is defined but never used. (totalt 373 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #64: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: cc.js, antal fel: 517 ( 1.00 betyg )
- X is defined but never used. (totalt 385 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #70: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: destination, antal fel: 1066 ( 1.00 betyg )
- X is defined but never used. (totalt 813 st)
- X is assigned a value but never used. (totalt 193 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 12 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5033 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3543 st)
- Expected X and instead saw X. (totalt 1035 st)
- Unnecessary escape character: \/. (totalt 254 st)
- Do not access Object.prototype method X from target object. (totalt 128 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \:. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Async method X has no X expression. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \;. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- eval can be harmful. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- `< script>` in: #63: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #63: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: e2d874b.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #33: e2d874b.js, antal fel: 11 ( 2.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #41: 11f238e.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #41: 11f238e.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #42: 02ef396.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #42: 02ef396.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #43: a6d4eb9.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #43: a6d4eb9.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #44: 210fd5f.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #44: 210fd5f.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #45: 102f5a0.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #45: 102f5a0.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #46: cfa9fe7.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #46: cfa9fe7.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #50: b4c8b74.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #50: b4c8b74.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #51: 2ba5135.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: 2ba5135.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #52: ee2293f.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #52: ee2293f.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #53: 842a052.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: 842a052.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #54: 8e6674f.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: 8e6674f.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #58: 9ba47d2.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #58: 9ba47d2.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #59: 779359d.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #59: 779359d.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #60: b1d9691.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #60: b1d9691.js, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #61: uc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #61: uc.js, antal fel: 364 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 248 st)
- Expected X and instead saw X. (totalt 107 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #62: js, antal fel: 1907 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1459 st)
- Expected X and instead saw X. (totalt 336 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 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)
- Unnecessary X. (totalt 1 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: #64: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #64: cc.js, antal fel: 2254 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1765 st)
- Expected X and instead saw X. (totalt 372 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 1 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)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: destination, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #70: destination, antal fel: 3430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2650 st)
- Expected X and instead saw X. (totalt 577 st)
- Do not access Object.prototype method X from target object. (totalt 162 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)