A WordPress site that has outgrown its theme usually gets one of two verdicts: patch it forever, or rewrite it in something modern. Both are expensive guesses made before anyone has measured the problem. When I was asked to move a Miami tattoo studio off WordPress, I did the measuring first, and the number I found changed the whole plan. If you are weighing how to migrate a WordPress theme to plain PHP , or whether to leave WordPress at all, this is the method, with the trade-offs.
The short version: the theme was huge, but the part of it that actually depended on WordPress was tiny. Finding that out took an afternoon and saved weeks.
The number that changed the plan
The Tattoo Panda rebuild started from a site built as a custom child theme on top of a commercial parent theme. It carried thousands of lines of CSS, a 2,500-line home page template and a multi-step booking modal.…