Repository navigation
Add refactoring, architecture, and standards memo - #149
Merged
Merged
Conversation
Answers the pending leaner-root-file todo and the owner's questions on refactoring, coding standards, metrics, and bloat, with measured size history, runtime cost, and a phased ticket plan. Also corrects the metrics doc's list of includes loaded on every request (ten, not eight). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbVuMPN7YTcV27vwsG3LZ2
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #149 +/- ##
=========================================
Coverage 88.28% 88.28%
Complexity 22 22
=========================================
Files 61 61
Lines 7290 7290
Branches 690 690
=========================================
Hits 6436 6436
Misses 291 291
Partials 563 563 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
docs/planning/refactor-and-standards-memo.md. It answers the pending leaner-root-file todo and the owner's questions on refactoring, architecture, coding standards, metrics and bloat.What it measured:
main:What it recommends:
includes/, byte for byte with the same function names, for maintainability (not performance).PHPCompatibilityWPchecks for PHP 7.4.checkJsonsrc/lib/.It ends with a phased plan (A–E, 16 tickets), each item a no-behavior-change PR.
Also in this PR:
docs/planning/README.mdtable gets the memo;docs/current-metrics.mdnow lists the tenincludes/files loaded on every request (it said eight, missinggoogle-books-key.phpandwrite-abilities.php).Validation
composer verify:metrics: pass.git show;build/;requireof the plugin, 5–6 runs with and without OPcache.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01KbVuMPN7YTcV27vwsG3LZ2
Generated by Claude Code