repowisemicrosoft/tokeneconomizer

Code health of microsoft/tokeneconomizer

Repowise scores microsoft/tokeneconomizer at 6.4 out of 10 for code health, which reads as fair, alongside maintainability 7.1 and static performance 9.2 on the same scale. There are 848 open findings across the three pillars, and the lowest-scoring file is controller.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

39 critical, 111 high, 393 medium, 305 low.

Hotspots

39 files are flagged as hotspots. The top 5:

  • tests/test_live_hooks.py: 18 commits in the last 90 days from 7 contributors with 2 recent bug fixes
  • tokeneconomizer/plugin/hosts.py: 25 commits in the last 90 days from 9 contributors with 1 recent bug fix
  • tests/test_live_core.py: 23 commits in the last 90 days from 8 contributors with 2 recent bug fixes
  • tokeneconomizer/plugin/cli.py: 19 commits in the last 90 days from 9 contributors with 2 recent bug fixes
  • tokeneconomizer/plugin/sidecall.py: 20 commits in the last 90 days from 8 contributors with 1 recent bug fix

Lowest-scoring files

  • tokeneconomizer/plugin/controller.py: 1.0 out of 10 with 1 bug fix in the last 180 days
  • tokeneconomizer/microskills/observe.py: 1.0 out of 10 with 1 bug fix in the last 180 days
  • tokeneconomizer/plugin/hosts.py: 1.0 out of 10 with 1 bug fix in the last 180 days
  • tokeneconomizer/plugin/cli.py: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • tokeneconomizer/plugin/fold.py: 1.4 out of 10 with 1 bug fix 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 171 scored files, 15.8% had a bug fix in that window.

Dead code and refactoring

Repowise found 4 unused exports. 50 refactoring targets across 50 files would raise the score.

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