Quickstart
This guide gets you from zero to your first analysis in under 2 minutes.
-
Install the package
Terminal window composer require codemetry/laravel --dev -
Run your first analysis
Terminal window php artisan codemetry:analyze --days=7 -
View the results
You’ll see a table showing the mood proxy for each day:
Date Mood Score Confidence Top Reasons 2024-01-15 good 78 0.80 Low churn; stable patterns 2024-01-14 medium 55 0.70 Elevated scatter
-
Install the package
Terminal window # Via WP-CLI package managerwp package install codemetry/wordpress# Or via Composercomposer require codemetry/wordpress --dev -
Run your first analysis
Terminal window wp codemetry analyze --days=7 -
View the results
You’ll see a table showing the mood proxy for each day:
Date Mood Score Confidence Top Reasons 2024-01-15 good 78 0.80 Low churn; stable patterns 2024-01-14 medium 55 0.70 Elevated scatter
That’s it! Codemetry analyzed your Git history and produced quality metrics for the last 7 days.
What Just Happened?
Codemetry:
- Read your Git log for the specified time range
- Collected signals: churn, file scatter, follow-up fixes, commit patterns
- Compared signals against a 56-day baseline (your repo’s normal patterns)
- Computed a score (0-100) and label (bad/medium/good) for each day
- Identified the top reasons contributing to each day’s score
Next Steps
- Configure the analysis (baseline days, keywords, etc.)
- Understand the signals being measured
- Enable AI explanations for human-readable summaries