Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 254 of 258)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Introduction To WordPress Unit Testing

WordPress Unit Testing

Unit Testing (or other testing methodologies) is one of those things that’s often relegated to larger software applications or enterprise-level projects and seems to be often overlooked in the context of WordPress.

Why is that?

WordPress is a web application and the tools, themes, plugins, and extensions that we build are software that run on top of said platform and the platform as well as the certain themes and/or plugins can be used anywhere from just a few hundred people up to several million people.

In some cases, I think this qualifies it as enterprise-grade. Regardless, WordPress should not be excluded from the best practices in software development. As such, I’m contributing a series of articles on Envato that is meant to help you get started with WordPress unit testing.

It’s targeted at beginners but aims to lay a foundation on which more experienced developers can build. Additionally, I’m providing working examples of plugins and themes both of which have been built using unit tests:

  1. What Is Unit Testing?
  2. Building a Testable Plugin
  3. Building Testable Themes

Throughout the series, I walk you through how to setup your local development environment to include both PHPUnit and the WordPress Testing framework along with giving a background of unit testing, what it is, why it matters, how it can improve plugin architecture and theme development.

All of the code is also available on my GitHub page:

My Career, Software Engineering, and WordPress

When I graduated school, I had one objective in mind: obtain a development position where I could apply software engineering principles in the context of web application development.

Then I made the jump to self-employment at the end of 2010 and was dividing my time between two things: serving as lead developer at 8BIT and developing and sites and software for others out of my own business.

Initially, I was doing work ranging anything from vanilla PHP projects, Ruby on Rails projects, some typical client-side projects, and custom JavaScript work.

Achievement Unlocked

As time as passed, I’ve ended up spending more and more time working exclusively with WordPress so much so that I’m currently doing nothing but WordPress-based projects (save for a single Rails application).

Continue reading

Building Premium WordPress Projects

Managing Premium WordPress Projects

If you’re in the business of building premium WordPress products, odds are you have a process in place. After all, processes scale from a single-person shop up to major teams – they can help improve our ability to produce quality work.

That said, if you’re just getting started with building WordPress-based products, perhaps you haven’t considered adopting a system that will help guide you through the project.

Though there are a number of different ways a person can approach their work, I offer points to consider when building premium WordPress products.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑