New greener region discount. Save 3% on Upsun resource usage. Learn how.
LoginFree trial
FeaturesPricingBlogAbout us
Blog

Meeting Jonny Harris: WordPress performance optimization with Blackfire

open sourceWordPressperformanceBlackfireobservability
Thomas di Luccio
Thomas di Luccio
DevRel Engineer

Note: Blackfire is the Upsun observability solution included with every PHP and Python project on the Upsun PaaS and powering the continuous profiling of your Go and Node.js applications.

Jonny Harris is a WordPress core contributor and committer based in the UK and a member of the WordPress Performance Initiative. This group teams up with Google and Blackfire to optimize the performance of the PHP framework that powers an estimated 43% of the world’s applications. Click to use the helloWorld() function. asdf

Jonny has been coding with WordPress since 2006 when, at the age of 16, he wanted to start blogging. He gave WordPress a try as it was then and still is today, the leading open-source blogging framework.

hello world

As a teenager with limited resources, the first motivation to choose open source was the cost. It was the opportunity to start something new for free. Then, Jonny figured out the power of open-source contribution. He realized that the problems impacting many users could be fixed all at once.

As a coder and a maker, Jonny installed a local version of WordPress 1.5 and started playing around with it. He explored WordPress’s codebase and its documentation, taught himself how to code along the way, and wrote his first template, which was the beginning of a lasting relationship with WordPress.

Career path in web development

Quite often, the journey ends up being more important than the destination. Beyond simply blogging, Jonny built his own path toward web development and open-source contribution. He was looking for a hobby and found a career.

After graduating with a degree in Computer Network Management and Design, he joined Xanda, a small London-based web agency, still coding with and advocating for WordPress today. The company grew steadily until there were over 12 WordPress developers on the team.

It was then time for a new chapter in his professional journey. He joined The Times, the UK’s largest magazine publisher with over 80 titles at the time. There, Jonny took on the challenge of WordPress Multisite and numerous WordPress applications self-hosted on Amazon Web Services (AWS).

Addressing performance issues: optimizing WordPress Multisite core code

The performance issues faced by Jonny and his team were as important as the stakes for this publisher were high—all of those WordPress websites were the cornerstone of their online editorial strategy. They were quite unhappy with the results and the process of New Relic, which they were using at the time. And too many of the performance issues originated in the WordPress Multisite core code.

Jonny then started opening Trac issues and writing patches. He contributed to the code base and helped optimize its performance. About a year later, he was promoted to maintainer of WordPress Multisite, and over the years, he oversaw the users, site health, and the REST API.

In 2021, the WordPress Performance Initiative was created and driven by Google and Yoast. XWP, the agency he then worked for, specialized in performant WordPress applications—there was a global effort to optimize and speed up WordPress, and Jonny was given a new way to contribute to the open-source framework.

Empowered by commitment: WordPress’s global impact

As of now, Jonny Harris has been working with and on WordPress for over nine years. And that relationship got even stronger when he was made Core Committer which is a maintainer of an open-source project with merge access. That means they have permission to update the code base, not only to suggest changes or make requests.

This is quite an honor and the recognition of a long and amazing track record of contributions. It’s not only great power, it’s also a great responsibility as each update made on the code base impacts so many people, developers, and web users around the world.

WordPress takes pride in guaranteeing long-lasting backward compatibility. This not only means that all changes being made and new features added have to be compatible with older versions of PHP, but they also need to work with already existing plugins and themes that rely on older functions and hooks.

This makes the work of the WordPress Performance Initiative even more challenging and exciting. It’s about laying new grounds for WordPress without forgetting its past or leaving people behind.

Pioneering progress: optimizing WordPress performance with Blackfire

Now Jonny, as part of the WordPress Performance Initiative, finally has the opportunity to work on issues he encountered over the past seven years. Those issues act sort of like time capsules, notes left by a past self for when the time comes and the proper tool is finally made to solve them. That tool is Blackfire, available with Upsun.

Jonny Harris used Blackfire extensively when working on the WordPress 6.1 Misha release. There were quite a few performance issues to figure out, including new regressions that had also been identified in the translations management as well as a nasty recursive loop while parsing the theme.json file.

Blackfire Profiler played a decisive role in the identification of these issues. Jonny and his team were able to pinpoint them down to the precise function calls. They also identified which lines of which files to look for the origin of those performance problems. And they shared those findings with other WordPress developers.

Those issues were identified and fixed throughout WordPress 6.1’s betas and release candidates. In fact, the 6.1 release note states over 25 performance-related tickets closed. A comprehensive breakdown also reveals breakthroughs in WP_QUERY, the REST, and CACHE APIs, among others.

The work of Jonny Harris and the WordPress Performance Initiative continues—these amazing improvements are just the beginning. If many tools on the WordPress market aim at speeding up applications, WordPress should be among the most efficient PHP frameworks.

And in this case, being the most efficient doesn’t just mean faster page load times or speedier infrastructures—although that’s certainly a major part of it. It also means reducing our energy consumption to better protect the health of our world.

We are grateful to have crossed paths with Jonny Harris and to be part of the WordPress Performance Initiative journey. Blackfire and Upsun are committed to supporting all open-source contributors who aim at making the world a better and more efficient place—one commit at a time.

Article originally published by Thomas di Luccio on Blackfire.io.

Upsun Logo
Join the community