Playground

See how FTA analyzes an individual piece of TypeScript code by entering it below.


Input

Output

  • FTA Score: 7 (Lower is better)
  • OK - Considered Maintainable
ItemResult
Num. lines4
Cyclomatic Complexity1
Halstead
Unique / Total Operators5 (7)
Unique / Total Operands5 (8)
Length15
Vocab Size10
Volume49.83
Difficulty3.20
Effort159.45
Time8.86
Bugs0.02
💡
Lower scores for individual files are achieved by:
  • Keeping the number of logical paths to a minimum
  • Reducing the number of entities or operations in the code
  • Avoiding single files that contain 1000s of lines
Last updated on