repowisechatwoot/chatwoot

Code health of chatwoot/chatwoot

Repowise scores chatwoot/chatwoot at 9.4 out of 10 for code health, which reads as excellent, alongside maintainability 9.6 and static performance 9.9 on the same scale. There are 2,487 open findings across the three pillars, and the lowest-scoring file is ReplyBox.vue at 1.9. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

281 critical, 440 high, 1,016 medium, 750 low.

Hotspots

316 files are flagged as hotspots. The top 5:

  • app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue: 10 commits in the last 90 days from 26 contributors with 9 recent bug fixes
  • spec/enterprise/jobs/captain/conversation/response_builder_job_spec.rb: 5 commits in the last 90 days from 7 contributors with 7 recent bug fixes
  • spec/enterprise/services/captain/assistant/agent_runner_service_spec.rb: 8 commits in the last 90 days from 5 contributors with 6 recent bug fixes
  • app/javascript/dashboard/components-next/captain/pageComponents/customTool/CustomToolForm.vue: 4 commits in the last 90 days from 3 contributors
  • spec/services/whatsapp/incoming_message_whatsapp_cloud_service_spec.rb: 5 commits in the last 90 days from 8 contributors with 6 recent bug fixes

Lowest-scoring files

  • app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue: 1.9 out of 10 with 9 bug fixes in the last 180 days
  • app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue: 2.6 out of 10 with 9 bug fixes in the last 180 days
  • app/javascript/dashboard/components-next/sidebar/Sidebar.vue: 2.7 out of 10 with 3 bug fixes in the last 180 days
  • app/javascript/dashboard/components-next/message/Message.vue: 3.2 out of 10 with 4 bug fixes in the last 180 days
  • app/javascript/dashboard/store/modules/conversations/actions.js: 4.2 out of 10 with 7 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 5,500 scored files, 5.6% had a bug fix in that window.

Dead code and refactoring

Repowise found 455 unused exports. 25 refactoring targets across 25 files would raise the score.

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