Web Development

When Should You Rebuild an Old WordPress Website Instead of Fixing It?

When is the right time to rebuild an old WordPress website instead of continuing to fix it?

I recently faced this decision with a website I had originally built for a client about 22 years ago. The website made him lots of money over the years. His customers liked it, and he was reluctant to make major changes.

I later built the website with WordPress, but its layout still had an early-2000s look. I had suggested rebuilding it multiple times, but my client always had reasons for keeping it as it was.

For years, we had been adding new features and improving its back-end code. But the older setup was beginning to create problems.

An old-looking website isn’t always a reason to rebuild

I don’t think you should rebuild a website simply because it looks old.

If the website is bringing business, working properly and running safely on the current setup, changing everything for the sake of appearance can create problems that didn’t exist before.

In our case, most of my work involved writing back-end code. We had built some complex features using PHP programming and MySQL.

My client handled most of the front-end himself. He would change the layout, update content and manage other parts of the website. He normally asked me to get involved only when something required PHP and JavaScript programming.

So while we kept improving the back-end, the front-end remained largely the same.

My client liked the old text-only layout. He believed many of his older customers preferred it. He was also worried that rebuilding the website might affect his Google rankings.

These were reasonable concerns.

How years of WordPress customization made the website difficult to maintain

One of the biggest problems was the amount of old code that had accumulated over the years.

My client and I had both been making changes to the website for more than two decades.

We didn’t use version control during most of those years. Before making a major change, I normally saved a backup copy. We also had a habit of commenting out old code instead of deleting it.

At the time, that felt safer.

If something stopped working after a change, we could return to an older version of the code.

But over the years, old code kept piling up.

Some PHP files became extremely large. In one case, a file containing around 20,000 lines had roughly 12,000 lines of commented-out code.

Much of this code belonged to older features or previous ways of doing things.

As a result, making changes became difficult. We had to figure out which parts of the code were still being used and which parts were no longer needed.

The more features we added, the more invested we became in the old system.

The PHP upgrade we couldn’t make

Another serious problem was that we couldn’t upgrade WordPress and PHP without breaking the website.

The theme had been built on an old framework.

When we tried upgrading PHP, the theme crashed. And because we couldn’t move to the required PHP version, upgrading WordPress also became difficult.

Many of the plugins couldn’t work properly with the outdated theme and a version of WordPress that hadn’t been updated for a few years.

There was also a security concern.

The website was running older versions of WordPress and PHP because we couldn’t safely upgrade them. This exposed the website to security risks.

We could still fix individual problems through PHP programming and WordPress customization. But every new fix had to work around the limits of the old theme and code.

These were all good reasons to consider rebuilding the website.

Still, something or other always took precedence.

A new CMS finally made rebuilding necessary

The situation changed when my client hired a project manager to build a new CMS for the business.

The project manager brought a fresh perspective.

He hadn’t spent years working with the existing website. He looked at what the business needed next and how the website would work with the new CMS.

He also supported my earlier suggestion that we should rebuild the website.

My client was still reluctant, but this time there was a stronger reason to move ahead.

The new CMS needed to communicate with the website in both directions. It would send information to the website and collect information from it.

Our existing system relied heavily on a local MySQL database.

The new system would use remote API calls.

Instead of getting most of its data from the local database, the website would exchange data with the CMS through APIs.

This meant that some of the old PHP code would no longer be needed. Other parts would have to be rewritten.

We would have to make major changes to the back-end anyway.

The new figma design created another problem

Around the same time, we had hired a UX design company to create a new website layout in Figma.

The design company focused on how the website should look and how visitors would use it. I would handle the programming needed to turn that design into a working website.

The new design was quite different from the existing layout.

The old theme couldn’t support the new design without major changes.

We could have tried changing the existing theme, but that would have meant working around its old framework once again.

At this stage, we had three major requirements:

  • We needed a website that could run on supported versions of PHP and WordPress.
  • We needed to connect the website to the new CMS using remote API calls.
  • We needed to build the new Figma design without being restricted by the old theme.

Rebuilding was no longer just about improving the website’s appearance. We needed a website that could support the new CMS and make future changes easier.

Rebuilding also gave us an opportunity to remove unwanted code

There was another benefit.

We could finally get rid of years of unwanted code.

This didn’t mean that everything we had developed over the previous 22 years was useless.

The website had supported the business for a long time. Much of the code was written to meet the client’s needs as his business grew.

But we no longer needed to carry forward every old function, every workaround and every commented-out section.

Some features would be handled by the new CMS. Some code would need to be rewritten to work with APIs. Other features could be built using newer PHP and WordPress code.

Old code isn’t necessarily bad code. If it works reliably, remains secure and doesn’t prevent necessary changes, there may be no reason to replace it.

In our case, removing unwanted code was another benefit. The new business requirements were what made the rebuild necessary.

Protecting google rankings during the rebuild

One of my client’s biggest concerns was losing his existing Google rankings.

A website that has been online for many years may have earned good search rankings, links from other websites and regular visitors from Google.

Rebuilding it without taking care of these things can affect its search traffic.

I needed to reassure my client that protecting his existing rankings would be an important part of the rebuild.

Some steps are particularly important:

  • Keep existing URLs wherever possible.
  • Use permanent 301 redirects when URLs need to change.
  • Keep important content that already brings search traffic.
  • Make sure internal links point to the correct pages.
  • Check that Google can crawl and index the new website.
  • Monitor search traffic after the new website goes live.

Even with these steps, nobody can guarantee that search rankings will remain exactly the same after a major rebuild.

But careful planning can reduce the risk.

When should you fix a website instead of rebuilding it?

There are many situations where fixing an existing website makes more sense.

If your website is running on supported versions of WordPress and PHP, most of its functions work properly and you only need a few changes, rebuilding it may be an unnecessary expense.

For example, you may only need WordPress customization if you want to change a contact form, modify a page layout, add a new feature or fix a plugin problem.

Even if the theme is outdated, replacing the theme doesn’t always mean rebuilding the entire website.

Sometimes you can replace one part of an old website while the rest continues working.

If a few changes can solve the problem safely, make those changes.

A practical checklist: fix or rebuild your WordPress website?

Before deciding whether to fix or rebuild an old WordPress website, go through the following questions.

  • PHP and WordPress upgrades: Can you upgrade to supported versions of PHP and WordPress without breaking the website?
  • Theme and plugins: Does your existing theme work properly with the plugins and features you need?
  • Old code: Can your developer make changes without spending hours understanding or fixing old code?
  • Security: Is your website running on supported software that still receives security updates?
  • New features: Can you add new features without making major changes to the existing code?
  • External systems: Can your website exchange data with other systems, such as a CMS or CRM, without major changes?
  • Design changes: Can you make the required design changes without replacing the entire theme?
  • Cost of maintenance: Are you spending less on fixing old problems than you would spend on replacing the code that causes them?

If you can answer yes to most of these questions, you probably don’t need to rebuild the website.

If several answers are no, ask your developer to compare the cost of fixing the existing website with the cost of rebuilding it.

You don’t necessarily need to replace everything. Sometimes replacing the theme, rewriting a few PHP files or changing how the website exchanges data can solve the problem.

Also, some problems are more serious than others. An old-looking design isn’t necessarily a problem, but running an unsupported PHP version that prevents security updates needs attention even if the website appears to work.

When should you rebuild an old WordPress website?

There isn’t one answer that applies to every website.

In our case, we had lived with outdated code, an old theme, plugin problems and PHP upgrade issues for years.

None of these problems had been enough to convince my client that rebuilding was necessary.

The decision changed when the business needed something different.

So when is the right time to rebuild an old WordPress website instead of fixing it?

When patching starts making the problem worse instead of solving it.

In our case, the old problems had been there for years. It took new requirements to make us see that rebuilding was the better option.