Code health of alexlib/openptv2
Repowise scores alexlib/openptv2 at 6.6 out of 10 for code health, which reads as fair, alongside maintainability 7.0 and static performance 9.5 on the same scale. There are 2,580 open findings across the three pillars, and the lowest-scoring file is pyptv_gui.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
167 critical, 459 high, 1,129 medium, 730 low.
Hotspots
68 files are flagged as hotspots. The top 5:
- src/openptv2/plugins/two_phase_tracking.py: 36 commits in the last 90 days from 1 contributor with 8 recent bug fixes
- src/openptv2/algorithms/correspondences.py: 11 commits in the last 90 days from 2 contributors with 7 recent bug fixes
- src/openptv2/gui/ptv.py: 33 commits in the last 90 days from 1 contributor with 16 recent bug fixes
- src/openptv2/algorithms/track_kernels.py: 6 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- src/openptv2/algorithms/multimed.py: 8 commits in the last 90 days from 2 contributors with 4 recent bug fixes
Lowest-scoring files
- src/openptv2/gui/pyptv_gui.py: 1.0 out of 10 with 14 bug fixes in the last 180 days
- src/openptv2/algorithms/track_kernels_corr.py: 1.0 out of 10 with 7 bug fixes in the last 180 days
- src/openptv2/algorithms/track_kernels_track3d.py: 1.0 out of 10 with 5 bug fixes in the last 180 days
- src/openptv2/algorithms/correspondences.py: 1.0 out of 10 with 7 bug fixes in the last 180 days
- src/openptv2/gui/calibration_gui.py: 1.0 out of 10 with 10 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 18 had a bug fix in the last 180 days. Across all 601 scored files, 16.1% had a bug fix in that window.
Dead code and refactoring
Repowise found 4 unused exports. 151 refactoring targets across 151 files would raise the score.
More on openptv2: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language