repowisewger-project/wger

Code health of wger-project/wger

Repowise scores wger-project/wger at 7.5 out of 10 for code health, which reads as good, alongside maintainability 8.9 and static performance 9.9 on the same scale. There are 931 open findings across the three pillars, and the lowest-scoring file is sync.py at 1.6. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

62 critical, 174 high, 275 medium, 207 low.

Hotspots

49 files are flagged as hotspots. The top 5:

  • wger/core/api/views.py: 9 commits in the last 90 days from 8 contributors with 9 recent bug fixes
  • wger/measurements/api/serializers.py: 29 commits in the last 90 days from 4 contributors with 1 recent bug fix
  • wger/exercises/api/serializers.py: 4 commits in the last 90 days from 18 contributors with 1 recent bug fix
  • wger/measurements/management/commands/dummy-generator-health-measurements.py: 7 commits in the last 90 days from 1 contributor
  • settings/settings_global.py: 18 commits in the last 90 days from 4 contributors with 4 recent bug fixes

Lowest-scoring files

  • wger/exercises/sync.py: 1.6 out of 10
  • wger/nutrition/sync.py: 2.0 out of 10
  • wger/measurements/api/serializers.py: 2.0 out of 10 with 1 bug fix in the last 180 days
  • wger/core/views/user.py: 2.1 out of 10 with 3 bug fixes in the last 180 days
  • wger/manager/management/commands/dummy-generator-workout-diary.py: 2.1 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 9 had a bug fix in the last 180 days. Across all 755 scored files, 10.3% had a bug fix in that window.

Dead code and refactoring

Repowise found 155 unused exports. 69 refactoring targets across 69 files would raise the score.

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

Related guide: Best dead code detection tools by language