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.54 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: 531 ( 1.00 betyg )
- X is defined but never used. (totalt 413 st)
- X is not defined. (totalt 68 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #40: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #40: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #41: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: gtm.js, antal fel: 618 ( 1.00 betyg )
- X is defined but never used. (totalt 499 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 31 st)
- `content-type=".*javascript.*"` in: #45: 8b42aa2.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: 8b42aa2.js, antal fel: 622 ( 1.00 betyg )
- X is defined but never used. (totalt 501 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 33 st)
- `content-type=".*javascript.*"` in: #47: nautjs.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: nautjs.js, antal fel: 623 ( 1.00 betyg )
- X is defined but never used. (totalt 501 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 33 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: default.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: default.js, antal fel: 624 ( 1.00 betyg )
- X is defined but never used. (totalt 501 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 34 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: search-script.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #50: search-script.j, antal fel: 690 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 34 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: type-slagelse3, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #51: type-slagelse3, antal fel: 692 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 34 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: cludo-search.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #52: cludo-search.js, antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 34 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: rightclick.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #72: rightclick.js, antal fel: 725 ( 1.00 betyg )
- X is defined but never used. (totalt 529 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 68 st)
- Unexpected console statement. (totalt 34 st)
- Parsing error: Binding arguments in strict mode (totalt 1 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2864 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1789 st)
- Expected X and instead saw X. (totalt 1003 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- `< script>` in: #40: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #40: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #41: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #41: gtm.js, antal fel: 1077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 769 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 8b42aa2.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #45: 8b42aa2.js, antal fel: 1098 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: nautjs.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #47: nautjs.js, antal fel: 1099 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: default.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #48: default.js, antal fel: 1099 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: search-script.j, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #50: search-script.j, antal fel: 1212 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 809 st)
- Expected X and instead saw X. (totalt 305 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: type-slagelse3, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #51: type-slagelse3, antal fel: 1213 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 809 st)
- Expected X and instead saw X. (totalt 306 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: cludo-search.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #52: cludo-search.js, antal fel: 1217 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 813 st)
- Expected X and instead saw X. (totalt 306 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: rightclick.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #72: rightclick.js, antal fel: 1236 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 813 st)
- Expected X and instead saw X. (totalt 325 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Binding arguments in strict mode (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)