repowisekrisgfx9/wireless-device-battery-monitor

Code health of krisgfx9/wireless-device-battery-monitor

Repowise scores krisgfx9/wireless-device-battery-monitor at 5.9 out of 10 for code health, which reads as fair, alongside maintainability 7.3 and static performance 10.0 on the same scale. There are 442 open findings across the three pillars, and the lowest-scoring file is misc_mice.cpp at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

50 critical, 119 high, 219 medium, 54 low.

Hotspots

20 files are flagged as hotspots. The top 5:

  • src/widget.cpp: 15 commits in the last 90 days from 12 contributors with 4 recent bug fixes
  • src/main.cpp: 15 commits in the last 90 days from 8 contributors with 1 recent bug fix
  • src/drivers/misc_mice.cpp: 16 commits in the last 90 days from 8 contributors with 2 recent bug fixes
  • src/drivers/razer_headset.cpp: 7 commits in the last 90 days from 7 contributors
  • src/drivers/logitech.cpp: 6 commits in the last 90 days from 5 contributors with 1 recent bug fix

Lowest-scoring files

  • src/drivers/misc_mice.cpp: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • src/widget.cpp: 1.0 out of 10 with 4 bug fixes in the last 180 days
  • src/main.cpp: 1.0 out of 10 with 1 bug fix in the last 180 days
  • src/drivers/aula.cpp: 2.2 out of 10
  • src/drivers/hyperx.cpp: 2.3 out of 10 with 3 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 14 had a bug fix in the last 180 days. Across all 117 scored files, 20.5% had a bug fix in that window.

Dead code and refactoring

48 refactoring targets across 48 files would raise the score.

More on wireless-device-battery-monitor: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language