repowiserockbenben/subtitle-translator

Code health of rockbenben/subtitle-translator

Repowise scores rockbenben/subtitle-translator at 5.8 out of 10 for code health, which reads as fair, alongside maintainability 7.7 and static performance 10.0 on the same scale. There are 213 open findings across the three pillars, and the lowest-scoring file is pipeline.ts at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

41 critical, 64 high, 96 medium, 12 low.

Hotspots

22 files are flagged as hotspots. The top 5:

  • src/app/lib/translation/registry.ts: 20 commits in the last 90 days from 4 contributors with 2 recent bug fixes
  • src/app/hooks/useTranslationState.tsx: 9 commits in the last 90 days from 3 contributors with 4 recent bug fixes
  • src/app/lib/translation/services/llm.ts: 15 commits in the last 90 days from 3 contributors with 1 recent bug fix
  • src/app/[locale]/SubtitleTranslator.tsx: 13 commits in the last 90 days from 2 contributors with 5 recent bug fixes
  • src/app/components/TranslationSettings.tsx: 11 commits in the last 90 days from 2 contributors with 2 recent bug fixes

Lowest-scoring files

  • src/app/lib/translation/pipeline.ts: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • src/app/lib/translation/formats/subtitle.ts: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • src/app/hooks/useTranslationState.tsx: 1.3 out of 10 with 4 bug fixes in the last 180 days
  • src/app/[locale]/SubtitleTranslator.tsx: 1.4 out of 10 with 5 bug fixes in the last 180 days
  • src/app/components/TranslationSettings.tsx: 2.1 out of 10 with 2 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 11 had a bug fix in the last 180 days. Across all 121 scored files, 20.7% had a bug fix in that window.

Dead code and refactoring

Repowise found 7 unused exports. 8 refactoring targets across 8 files would raise the score.

More on subtitle-translator: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language