repowiseslaker19/webkvm

Code health of slaker19/webkvm

Repowise scores slaker19/webkvm at 7.1 out of 10 for code health, which reads as good, alongside maintainability 7.9 and static performance 9.9 on the same scale. There are 2,337 open findings across the three pillars, and the lowest-scoring file is host_disks.go at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

197 critical, 388 high, 1,376 medium, 376 low.

Hotspots

102 files are flagged as hotspots. The top 5:

  • backend/internal/libvirt/domain.go: 20 commits in the last 90 days from 1 contributor with 4 recent bug fixes
  • frontend/src/lib/i18n.svelte.js: 38 commits in the last 90 days from 1 contributor with 4 recent bug fixes
  • frontend/src/routes/VmDetail.svelte: 21 commits in the last 90 days from 1 contributor with 4 recent bug fixes
  • backend/internal/api/host_disks.go: 18 commits in the last 90 days from 1 contributor with 7 recent bug fixes
  • frontend/src/routes/VmList.svelte: 13 commits in the last 90 days from 1 contributor with 2 recent bug fixes

Lowest-scoring files

  • backend/internal/api/host_disks.go: 1.0 out of 10 with 7 bug fixes in the last 180 days
  • backend/internal/api/xterm.mjs: 1.0 out of 10
  • backend/internal/libvirt/domain.go: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • backend/internal/api/novnc.mjs: 1.0 out of 10
  • backend/internal/api/vms.go: 1.0 out of 10 with 6 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 17 had a bug fix in the last 180 days. Across all 1,071 scored files, 9.8% had a bug fix in that window.

Dead code and refactoring

Repowise found 21 unused exports. 220 refactoring targets across 220 files would raise the score.

More on webkvm: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language