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.04 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 512 ( 1.00 betyg )
- X is not defined. (totalt 394 st)
- X is defined but never used. (totalt 72 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 20 st)
- `< script>` in: #57: en-av-fyra, antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #57: en-av-fyra, antal fel: 49 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #57: en-av-fyra, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #57: en-av-fyra, antal fel: 769 ( 1.00 betyg )
- X is not defined. (totalt 565 st)
- X is defined but never used. (totalt 176 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 11 st)
- `< script>` in: #69: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #69: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #69: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #69: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #70: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #70: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #70: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #70: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #81: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #81: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: gtm-29c571f1813, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: gtm-29c571f1813, antal fel: 80 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #66: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: js, antal fel: 535 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 74 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #68: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: main.js, antal fel: 542 ( 1.00 betyg )
- X is defined but never used. (totalt 442 st)
- X is assigned a value but never used. (totalt 74 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #74: recaptcha--en.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: recaptcha--en.j, antal fel: 642 ( 1.00 betyg )
- X is defined but never used. (totalt 521 st)
- X is assigned a value but never used. (totalt 75 st)
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #75: nr-rum-1.291.0., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: nr-rum-1.291.0., antal fel: 676 ( 1.00 betyg )
- X is defined but never used. (totalt 555 st)
- X is assigned a value but never used. (totalt 75 st)
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #82: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: out-4.5.44.js, antal fel: 810 ( 1.00 betyg )
- X is defined but never used. (totalt 664 st)
- X is assigned a value but never used. (totalt 76 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 5 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1516 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1132 st)
- Expected X and instead saw X. (totalt 364 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `< script>` in: #57: en-av-fyra, antal grupperade fel: 5 ( 4.00 betyg )
- `< script>` in: #57: en-av-fyra, antal fel: 97 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 66 st)
- Expected X and instead saw X. (totalt 28 st)
- X is not modified in this loop. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script src="...">` in: #57: en-av-fyra, antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #57: en-av-fyra, antal fel: 6444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4176 st)
- Expected X and instead saw X. (totalt 1988 st)
- Do not access Object.prototype method X from target object. (totalt 128 st)
- X is assigned to itself. (totalt 60 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 16 st)
- Unnecessary escape character: \[. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script src="...">` in: #69: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #69: anchor, antal fel: 2419 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1745 st)
- Expected an assignment or function call and instead saw an expression. (totalt 624 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (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 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script src="...">` in: #70: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #70: anchor, antal fel: 2419 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1745 st)
- Expected an assignment or function call and instead saw an expression. (totalt 624 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (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 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script src="...">` in: #79: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #79: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script>` in: #81: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #81: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #65: gtm-29c571f1813, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #65: gtm-29c571f1813, antal fel: 756 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 507 st)
- Expected X and instead saw X. (totalt 171 st)
- Do not access Object.prototype method X from target object. (totalt 69 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #66: js, antal fel: 2306 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1696 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 166 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: main.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #68: main.js, antal fel: 2360 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1714 st)
- Expected X and instead saw X. (totalt 457 st)
- Do not access Object.prototype method X from target object. (totalt 166 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: recaptcha--en.j, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #74: recaptcha--en.j, antal fel: 4779 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2338 st)
- Expected X and instead saw X. (totalt 2202 st)
- Do not access Object.prototype method X from target object. (totalt 170 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)
- `content-type=".*javascript.*"` in: #75: nr-rum-1.291.0., antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #75: nr-rum-1.291.0., antal fel: 5002 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2514 st)
- Expected X and instead saw X. (totalt 2248 st)
- Do not access Object.prototype method X from target object. (totalt 170 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)
- `content-type=".*javascript.*"` in: #82: out-4.5.44.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #82: out-4.5.44.js, antal fel: 5426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2767 st)
- Expected X and instead saw X. (totalt 2413 st)
- Do not access Object.prototype method X from target object. (totalt 170 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)