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.44 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 176 ( 1.00 betyg )
- X is defined but never used. (totalt 118 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 7 st)
- `< script>` in: #47: a45605763623157, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #47: a45605763623157, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: gtm.js, antal fel: 453 ( 1.00 betyg )
- X is defined but never used. (totalt 354 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: ai.3.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: ai.3.gbl.min.js, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 463 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: chat-se.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: chat-se.js, antal fel: 572 ( 1.00 betyg )
- X is defined but never used. (totalt 464 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: otSDKStub.js, antal fel: 578 ( 1.00 betyg )
- X is defined but never used. (totalt 468 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #61: chatPanel.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: chatPanel.js, antal fel: 915 ( 1.00 betyg )
- X is defined but never used. (totalt 733 st)
- X is assigned a value but never used. (totalt 89 st)
- Unexpected console statement. (totalt 60 st)
- X is not defined. (totalt 33 st)
- `content-type=".*javascript.*"` in: #67: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: otBannerSdk.js, antal fel: 980 ( 1.00 betyg )
- X is defined but never used. (totalt 760 st)
- Unexpected console statement. (totalt 97 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 34 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: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2708 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1701 st)
- Expected X and instead saw X. (totalt 731 st)
- Unnecessary escape character: \.. (totalt 105 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \). (totalt 13 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- eval can be harmful. (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)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #47: a45605763623157, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #47: a45605763623157, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #44: gtm.js, antal fel: 1760 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1266 st)
- Expected X and instead saw X. (totalt 235 st)
- Unnecessary escape character: \/. (totalt 132 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: ai.3.gbl.min.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: ai.3.gbl.min.js, antal fel: 2409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1810 st)
- Expected X and instead saw X. (totalt 286 st)
- Unnecessary escape character: \/. (totalt 136 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: chat-se.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: chat-se.js, antal fel: 2412 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1811 st)
- Expected X and instead saw X. (totalt 288 st)
- Unnecessary escape character: \/. (totalt 136 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: otSDKStub.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: otSDKStub.js, antal fel: 2482 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1869 st)
- Expected X and instead saw X. (totalt 300 st)
- Unnecessary escape character: \/. (totalt 136 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: chatPanel.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: chatPanel.js, antal fel: 6449 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3833 st)
- Expected X and instead saw X. (totalt 2163 st)
- Do not access Object.prototype method X from target object. (totalt 141 st)
- Unnecessary escape character: \/. (totalt 140 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- X is assigned to itself. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: otBannerSdk.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: otBannerSdk.js, antal fel: 7525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4739 st)
- Expected X and instead saw X. (totalt 2323 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- Unnecessary escape character: \/. (totalt 140 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- X is assigned to itself. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary escape character: \(. (totalt 10 st)
- Unnecessary escape character: \@. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)