Why You NEED to Update PHP to the Recommended Version for WordPress

Why You NEED to Update PHP to the Recommended Version for WordPress
Photo by Ben Griffiths / Unsplash
When you buy through links on our site, we may earn a small commission at no additional cost to you. As an Amazon Affiliate I earn from qualifying purchases. I only recommend products and services that I think will help you on your Mompreneur journey and all opinions expressed here are our own. You can read my full disclaimer here.
decorative divider
How to Update PHP to the Recommended Version for WordPress

Using an outdated version of WordPress core, plugins or themes isn’t ideal. PHP is no different. As of June 2019, the current recommended PHP version for WordPress is 7.3 or greater. If there is a notice similar to this on your WordPress Dashboard then you need to update your PHP!!

PHP and Your Hosting Environment

PHP Elephant
Vincent Pontier GPL, via Wikimedia Commons

Many hosting providers will encourage you and make sure you use the latest version of PHP in order to use their servers. They will help make sure that your site does not break your site. When WP Engine upgraded PHP for their customers, they staged a separate server where you could see if your site broke before upgrading. Doing things like this really helps to make you feel more comfortable upgrading the underlying code of your site.

Some less reputable cheap hosts do not take the same initiative and as a cheaper host the amount of support is less and they depend on their customers to upgrade on their own when they see the notice above. If the site crashes and breaks then it is not their fault and they do not have the manpower many times to provide the support to fix your site. Therefore, they will just leave your site to use an outdated version of PHP and hope you don’t notice. The issue with this is that eventually, WordPress will require an updated version of PHP and plugins will depend on the new functionality. Unfortunately, though it is quite common practice and most WordPress sites aren’t using the most recent versions of PHP.

Look at these WordPress statistics:

  • 13.4% of WordPress sites are using PHP version 7.3
  • 23% of WordPress sites are using PHP version 7.2
  • 13% of WordPress sites are using PHP version 7.1
  • 14.7% of WordPress sites are using PHP version 7.0
  • 35.8% of WordPress sites are using a PHP version BELOW 7.0

Why PHP Matters To You

PHP is the underlining code that runs your site. It is a coding language that runs a large part of the web. Like WordPress, it is also Open Source and developed by a large community of developers. That means changes and developments can happen quickly and new features can drastically change how systems like WordPress take advantage of the underlying code.

How does PHP 7 Help My Site?

PHP 7 Is FAST

Updated versions of PHP require fewer resources and time to deliver the same number of requests. It is up to 3x faster than older versions of PHP. There is a huge speed improvement when there are fewer requests needed to load your website. A faster site equals a better user experience for your visitors!

Ensuring Compatibility is Costly

The plugin developers and theme developers that provide so much for the WordPress community, spend a lot of their time maintaining backward compatibility with older versions of PHP. So many cheered when WordPress founder Matt Mullenweg proposed a plan to make PHP 7.0 the minimum version as early as December 2019. It is a big deal and takes hours of work to keep up the backward compatibility. With these new rules, plugin and theme developers can concentrate on bringing new functionality to their plugins and not work so hard to just ensure it works with older versions of PHP.

Vulnerabilities

Your computer gets updates, plugins, themes and WordPress core get updates, and PHP also has security vulnerabilities that need to be watched. Updating the version of PHP that runs

Just like plugins, themes and WordPress core get updates to fix security vulnerabilities, so does PHP. This is also why using a PHP version that is still getting updates is so important, as it protects you from vulnerabilities such as SQL injection, XSS and Dos attacks.

According to security vulnerability data source CVE Details, there were 18 known vulnerabilities found in PHP in 2018. Compare this to the 43 vulnerabilities discovered in 2017 and the 107 found in 2016 and you can see why updating can help protect you from a lot known security exploits.

As a matter of fact, some hackers look to see what version of PHP you’re running in order to know what kind of attack would be effective.

SmartStack Hive

Choose The Plan For You & Your Business

Your go-to productivity hive for mastering the tech, systems, and automations that keep your business buzzing without overwhelm. In SmartStack Hive, we stack the smartest tools, workflows, and strategies so you can work less, flow more, and scale confidently.

✨ Buzz into SmartStack Hive today — stack smart, soar higher!

Become a Member

Why Should I Care to Update the PHP Version of My Site?

The reasons above are good reasons to upgrade but if they don’t convince you enough consider that if you don’t upgrade eventually the plugins and themes that you want to use will require a certain version of PHP and if you don’t have that it will completely break your site. Have you heard of the white WordPress screen of death (WSOD)? It is a real thing and when that happens no-one can get to your content, no one can see your contact information and all your work is in vain.

What do I do to Update the PHP Version on My Site?

Vincent Pontier GPL, via Wikimedia Commons

Ok, I am convinced. So how do I go about updating PHP? First, if you are scared of the results and know that you are on a host that might not help you out, consider hiring someone who can help you out! Updating PHP is not a small task and with so many things that can go wrong even having a developer on hand as you do it will be a great benefit.

Many hosts such as Lyrical HostWP EngineFlywheel, and others have the support on hand to be able to guide you through the process or do it themselves. Make sure whatever you do that you have a full backup ready to go before you start the process. A full backup will include the database and all your files. The best backup will not be on the same server as your website consider using off-site storage in cloud storage or a backup service.

How to update PHP to the Recommended Version for WordPress

The process is slightly different for every host and will depend on not only the host but the plan that you currently have. Check their websites for the process that they recommend. Check if they will help you through the process and if you feel comfortable with the steps before you start anything.

Further Reading, Tools, and Resources

Read More Resources on PHP and WordPress

Get a faster, more secure website: update PHP today
Your WordPress site can be faster, and more secure, and you can make this happen! This page will explain why this matters to you, and then how you can fix it. Why PHP Matters To You PHP is the codi…
How to Easily Update the PHP Version of Your WordPress Site
Should you update the PHP version of your WordPress website? Learn the benefits of updating, how to check your sites PHP version and how to upgrade safely.
Supercharge Your Site: How To Update Your PHP in WordPress
Supercharge Your Site with PHP. In this article, we will be going into why PHP is crucial for WordPress, how it works, and how to keep it current
Requirements
Requirements To run WordPress, it’s recommended your host supports: That’s really it. Apache or Nginx is recommended as the most robust and featureful server for running WordPress, but any server that supports PHP and MySQL will do. That said, for the smoothest experience in setting up—and running—your site, each host on the hosting page supports […]
WordPress Hosting | WordPress.org
Blog Tool and Publishing Platform
How to Perform a WordPress Plugin Audit | Site Audit Guide
Run a secure, fast, and efficient WordPress site with a proper plugin audit. Learn how to remove unused plugins, check for updates, test performance, and improve security.
Mompreneurs Keep Your WordPress Site Secure
WordPress Security and Maintenance Releases Last Updated 12-06-23
How to Keep Your WordPress Site Running Smoothly
Site speed and mobile responsiveness are essential ranking factors. Once you’ve mastered blog optimization, your site will run smoothly, be easier to manage, and likely rank higher.
How Often Should WordPress Updates be Applied
The majority of websites run on WordPress today, so it is essential to perform various updates.
Ways to upgrade the security on your WP site
WordPress is the leading CMS, letting you build and customize a site in minutes without coding. But its popularity also makes it a target for hackers. Let’s explore how to strengthen your site’s security and avoid common mistakes.
Why You NEED to Update PHP to the Recommended Version for WordPress
Since June 2019, WordPress recommends PHP 7.3 or higher. Keeping your PHP, core, plugins, and themes updated improves security, speed, and overall site performance.

Offers

Website Maintenance Workbook
These files are: Print Ready - 8.5x11″ Your files will be available to download once payment is confirmed. Print at home, use digitally, or have it printed at a print shop. Print as many copies as you need. These files may not be shared or resold in any way, shape, or form. These are for PERSONAL USE ONLY. *This is
Website Maintenance Checklist
Keep your site running smoothly with these simple maintenance tasks! An easy checklist to follow every week, month, quarter, and even year. This checklist helps you be prepared at every step of the process. Learn how to take care of your site to avoid headaches later. WHAT YOU’LL RECEIVE... Instant access to a 12-page
Top Plugins Checklist
With nearly 60K free WordPress plugins, knowing which plugins to use can be extremely overwhelming. This checklist explores the most needed plugins for different situations, along with some bonus resources. These files are: Print Ready - 8.5x11″ Your files will be available to download once payment is confirmed. Prin