Playground

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


Input

Output

  • FTA Score: 8 (Lower is better)
  • OK - Considered Maintainable
ItemResult
Num. lines4
Cyclomatic Complexity1
Halstead
Unique / Total Operators5 (7)
Unique / Total Operands5 (8)
Length10
Vocab Size15
Volume39.07
Difficulty1.88
Effort73.25
Time4.07
Bugs0.01
💡
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