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.08 av 5
- JS är ok.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- X is not defined. (totalt 3 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: 166 ( 1.00 betyg )
- X is defined but never used. (totalt 130 st)
- X is assigned a value but never used. (totalt 20 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #2: scheduler.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #2: scheduler.js, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: fetch-polyfill., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #3: fetch-polyfill., antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #8: m-Rv3e3d, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #8: m-Rv3e3d, antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: Qeqe9PKuIx0-qEn, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #9: Qeqe9PKuIx0-qEn, antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: m-ERsVff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: m-ERsVff, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: m-aDST8c-R3u7e-, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #29: m-aDST8c-R3u7e-, antal fel: 9 ( 3.20 betyg )
- X is defined but never used. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #38: m-dfXAxf, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #38: m-dfXAxf, antal fel: 10 ( 3.00 betyg )
- X is defined but never used. (totalt 7 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #71: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: base.js, antal fel: 199 ( 1.00 betyg )
- X is defined but never used. (totalt 173 st)
- X is assigned a value but never used. (totalt 14 st)
- Unexpected console statement. (totalt 8 st)
- X is not defined. (totalt 4 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 638 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 627 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 7471 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3688 st)
- Expected an assignment or function call and instead saw an expression. (totalt 3688 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Unnecessary X. (totalt 15 st)
- X is assigned to itself. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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)
- `content-type=".*javascript.*"` in: #2: scheduler.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: scheduler.js, antal fel: 55 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Expected X and instead saw X. (totalt 22 st)
- X is assigned to itself. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: fetch-polyfill., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #3: fetch-polyfill., antal fel: 64 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Expected X and instead saw X. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: m-Rv3e3d, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #8: m-Rv3e3d, antal fel: 462 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 269 st)
- Expected X and instead saw X. (totalt 181 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: Qeqe9PKuIx0-qEn, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #9: Qeqe9PKuIx0-qEn, antal fel: 477 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 272 st)
- Expected X and instead saw X. (totalt 192 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: m-ERsVff, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #13: m-ERsVff, antal fel: 597 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 344 st)
- Expected X and instead saw X. (totalt 240 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: m-aDST8c-R3u7e-, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #29: m-aDST8c-R3u7e-, antal fel: 1648 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1033 st)
- Expected an assignment or function call and instead saw an expression. (totalt 601 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: m-dfXAxf, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #38: m-dfXAxf, antal fel: 1684 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1059 st)
- Expected an assignment or function call and instead saw an expression. (totalt 611 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: base.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #71: base.js, antal fel: 8634 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5492 st)
- Expected X and instead saw X. (totalt 3033 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 15 st)
- Comparing to itself is potentially pointless. (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 3 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)