Skip to content

Add trend tracking for metrics over time #1

@dereuromark

Description

@dereuromark

Overview

Track how framework metrics change over time/versions to see improvements or regressions.

Proposed Implementation

1. Store historical snapshots

reports/
├── data/           # Current run
├── history/
│   ├── 2025-11-30/
│   │   ├── phpstan_cakephp.json
│   │   └── ...
│   ├── 2025-12-15/
│   └── ...

2. Track key metrics per version

// reports/history/index.json
{
  "cakephp": [
    {"date": "2025-11-30", "version": "5.2.9", "phpstan": 16, "psalm": 3095},
    {"date": "2025-12-15", "version": "5.2.10", "phpstan": 12, "psalm": 2980}
  ]
}

3. Generate trend table in report

## PHPStan Trends

| Framework | Nov 2025 | Dec 2025 | Change |
|-----------|----------|----------|--------|
| CakePHP   | 16       | 12       | -25%   |
| Laravel   | 11782    | 11500    | -2%    |

Implementation Options

Approach Effort Notes
Manual snapshots Low Run monthly, commit history folder
GitHub Actions Medium Auto-run on schedule, store in repo
Separate index.json Medium Append to index each run

Value

  • See if frameworks are improving type safety over time
  • Compare version-to-version progress
  • Spot regressions after major releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions