Matrix for maintaining, refactoring or rewriting a PHP application
There is no universal answer. This matrix forces comparison of risk, knowledge, data, coverage, change cost and continuity before choosing a path.
From context to a verifiable outcome
We connect each need to a decision, evidence and a review condition. The matrix does not replace analysis: it makes visible the assumptions that must be confirmed before scope expands.
| Context | Decision | Expected evidence | Review |
|---|---|---|---|
| 01System criteria: What shapes technical feasibility. | Clarity of business rules and boundaries. · Test coverage and regression capability. | Coupling to data, integrations and infrastructure. · Incident frequency and ease of diagnosis. | Score independently across business, product, engineering and operations. |
| 02Delivery criteria: What the organization can sustain. | Downtime tolerance and data migration. · Team capacity and available knowledge. | Need to deliver features during change. · Budget, horizon and cost of running two systems. | Attach evidence and confidence level. |
| 03Options: Four paths that may be combined. | Maintain: stabilize and reduce risk without broad structural change. · Refactor: improve boundaries within the existing system. | Progressive replacement: extract capabilities while both bases coexist. · Rewrite: build another foundation and plan a full migration. | Compare phased options, not only end states. |
| 04Warning signs: When to challenge a quick decision. | Rewrite driven only by dislike of the code. · Refactoring without an observable boundary or outcome. | Maintenance ignoring unsupported versions or critical risk. · Migration without a data, user and rollback strategy. | Review the decision as constraints or knowledge change. |
Agree the problem, its users, constraints and consequences.
Choose a proportionate intervention and state what remains outside it.
Produce a usable capability together with its technical evidence.
Review behaviour, risk and the next decision against real data.
Complete the resource with evidence, not ideal answers
A checkbox helps when it represents a verified situation and leads to a conversation or decision.
Bring together people who understand product, development and operations. For each section, identify repositories, configuration, metrics, incidents, screenshots or examples that justify the answer. If evidence does not exist, record the uncertainty: it may matter more than completing the checkbox.
At the end, group findings by impact and dependency. Separate immediate controls, required investigation and structural improvements. The result should state what will be done, who can decide it and how it will be verified, avoiding a wish list without priority.
- EvidenceSource or example supporting each answer.
- ImpactConsequence for users, business or operations.
- PriorityOrder based on risk, dependency and effort.
- ActionOwner, boundary and outcome verification.
System criteria
What shapes technical feasibility.
Delivery criteria
What the organization can sustain.
Options
Four paths that may be combined.
Warning signs
When to challenge a quick decision.
Turn answers into decisions
- Score independently across business, product, engineering and operations.
- Attach evidence and confidence level.
- Compare phased options, not only end states.
- Review the decision as constraints or knowledge change.
Content connected to this decision
Continue with diagnosis, execution or related experience.