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.79 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: Unexpected token ! (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 998 ( 1.00 betyg )
- X is not defined. (totalt 801 st)
- X is defined but never used. (totalt 173 st)
- Unexpected console statement. (totalt 23 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #67: 66cfdf397df78d1, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #67: 66cfdf397df78d1, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `< script>` in: #68: dab3101f4f0b3df, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #68: dab3101f4f0b3df, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: tag.php, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #62: tag.php, antal fel: 81 ( 1.00 betyg )
- X is not defined. (totalt 76 st)
- X is defined but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #70: ReadSpeaker.Doc, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #70: ReadSpeaker.Doc, antal fel: 83 ( 1.00 betyg )
- X is not defined. (totalt 76 st)
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: 356.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #75: 356.js, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 76 st)
- X is defined but never used. (totalt 14 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: slideshow-plugi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #77: slideshow-plugi, antal fel: 109 ( 1.00 betyg )
- X is not defined. (totalt 84 st)
- X is defined but never used. (totalt 24 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: svg4everybody.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #81: svg4everybody.m, antal fel: 111 ( 1.00 betyg )
- X is not defined. (totalt 86 st)
- X is defined but never used. (totalt 24 st)
- X is assigned a value but never used. (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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2081 st)
- Expected X and instead saw X. (totalt 1093 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary X. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 13 st)
- The Function constructor is eval. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #67: 66cfdf397df78d1, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #67: 66cfdf397df78d1, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script>` in: #68: dab3101f4f0b3df, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #68: dab3101f4f0b3df, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #62: tag.php, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: tag.php, antal fel: 5 ( 4.00 betyg )
- Expected X and instead saw X. (totalt 3 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: ReadSpeaker.Doc, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #70: ReadSpeaker.Doc, antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- Expected X and instead saw X. (totalt 4 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: 356.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #75: 356.js, antal fel: 64 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Expected X and instead saw X. (totalt 24 st)
- X is assigned to itself. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: slideshow-plugi, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #77: slideshow-plugi, antal fel: 174 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 122 st)
- Expected X and instead saw X. (totalt 40 st)
- X is assigned to itself. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: svg4everybody.m, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #81: svg4everybody.m, antal fel: 184 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 130 st)
- Expected X and instead saw X. (totalt 42 st)
- X is assigned to itself. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)