
How to Refactor a Legacy PHP Application With No Tests
Learn how to refactor a legacy PHP application with no tests by building a safety net, finding seams, and changing one observable behavior at a time.
WordPress, PHP, and practical AI consulting
I help founders and product teams solve difficult software problems, modernize codebases, and ship reliable products.
More than 25 years across PHP, WordPress, product engineering, and remote team leadership, including building the original WishList Member and continuing that work at Caseproof.
Learn how to refactor a legacy PHP application with no tests by building a safety net, finding seams, and changing one observable behavior at a time.
I took mikelopez.com from 67 mobile and 93 desktop to a 100 PageSpeed Insights score on both using static HTML, responsive images, AI-assisted diagnosis, and Cloudflare Pages.
Compare cursor pagination vs OFFSET in PHP and MySQL, then build a stable, secure PDO implementation that keeps large result sets fast.
PHP 8.6 for WordPress developers is now in beta with safer session defaults, closure optimizations, new syntax, and compatibility changes plugin teams should test before release.
Refactor legacy PHP code with PhpStorm by mapping dependencies, preserving dynamic WordPress contracts, using AI within clear limits, and verifying every change.
Review AI-generated PHP code with a disciplined checklist for assumptions, WordPress security, data access, compatibility, tests, and maintainability in production.
WordPress delayed real-time collaboration after finding architectural and performance risks. The decision offers practical lessons for software teams before they ship.
I support Pax Silica Philippines for its potential to create skilled jobs, attract future-tech investment, and strengthen security, but only with safeguards and accountability.
PHP 8.5 adds cleaner URI handling, pipelines, safer return values, improved cloning, and useful performance tools. Here is what matters for WordPress developers.
WordPress 7.1 expands the Abilities and SVG Icon APIs, enforces the iframed editor, adds browser-side media processing, and brings compatibility changes plugin developers should test.








