Code health of rmyndharis/openwa
Repowise scores rmyndharis/openwa at 6.2 out of 10 for code health, which reads as fair, alongside maintainability 8.5 and static performance 9.9 on the same scale. There are 1,735 open findings across the three pillars, and the lowest-scoring file is plugin.interfaces.ts at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
226 critical, 323 high, 522 medium, 453 low.
Hotspots
203 files are flagged as hotspots. The top 5:
- src/modules/session/session.service.spec.ts: 79 commits in the last 90 days from 8 contributors with 49 recent bug fixes
- src/engine/adapters/whatsapp-web-js.adapter.spec.ts: 62 commits in the last 90 days from 6 contributors with 33 recent bug fixes
- src/engine/adapters/baileys.adapter.spec.ts: 65 commits in the last 90 days from 13 contributors with 24 recent bug fixes
- src/engine/adapters/whatsapp-web-js.adapter.ts: 84 commits in the last 90 days from 15 contributors with 46 recent bug fixes
- src/engine/adapters/baileys.adapter.ts: 83 commits in the last 90 days from 14 contributors with 34 recent bug fixes
Lowest-scoring files
- src/core/plugins/plugin.interfaces.ts: 1.0 out of 10 with 6 bug fixes in the last 180 days
- src/modules/plugins/plugins.service.ts: 1.6 out of 10 with 7 bug fixes in the last 180 days
- src/core/plugins/plugin-storage.service.ts: 1.6 out of 10 with 4 bug fixes in the last 180 days
- src/main.ts: 1.6 out of 10 with 24 bug fixes in the last 180 days
- src/modules/infra/infra.controller.ts: 1.9 out of 10 with 28 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 20 had a bug fix in the last 180 days. Across all 1,052 scored files, 46.8% had a bug fix in that window.
Dead code and refactoring
Repowise found 21 unused exports. 64 refactoring targets across 64 files would raise the score.
More on openwa: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language