Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 96 of 219)

Articles, tips, and resources for WordPress-based development.

Unit Test Existing Code in WordPress Projects

In following-up with yesterday’s post on unit testing WordPress code, I ended up wanting to say more than I did. There are are a lot of things to talk about (entire books cover TDD so what could a single post offer, anyway?).

Rather than try and tackle so many things in a handful of posts, I’ll stick with writing shorter posts on a handful of these topics.

Unit Test Existing Code (or Red-Green-Refactor)

Unit Test Existing Code (or Red-Green-Refactor)

One of the things that I wanted to discuss is the how unit testing can help drive architectural decisions. The challenge with the latter, though, is that part of writing tests often comes with retrofitting tests (or how we can unit test existing code).

And this is a topic all its own.

Continue reading

Architecture and Unit Testing WordPress Code

In a few recent projects, I’ve been unit testing WordPress code and doing more general test-driven development than normal. I’m no stranger to TDD, but it’s not something I am religious about using. For me, it depends on the nature of the project.

There’s a lot of writing on TDD and its advantages, and a lot of people who use it swear by it. It builds a level of quality into a project and helps with adding new features, solving bugs, and modularizing code.

Unit Testing WordPress

Unit testing WordPress code is a bit of a mixed bag, and it comes down to the fact that object-oriented code in WordPress is often tightly coupled to both the business logic and the WordPress API.

Since TDD can help designing the architecture of a project, it can help guide how we can create more testable classes.

Continue reading

How To Checkout WordPress via Subversion

If you want to contribute, you’re going to need to know how to use Subversion to checkout WordPress from its Subversion repository.

Before looking into how to do that, I’d say that source control is but one of the tools that a professional developer (let alone a WordPress developer) should have at his or her disposal.

So why not use this open source project to learn how to do just that?

Continue reading

Debug WordPress with Kint PHP Debugger

When working to debug WordPress projects, I’m personally a fan of using Codebug (something I should probably write about a bit later), but it’s more of a general debugger than one specifically tailored for WordPress.

If you’re looking for the later, then there’s a solid plugin available from Tonya Mork (of Know The Code) that brings the features of Kint Debugger into a WordPress plugin.

For those who have never used a professional-grade debugger, this is a great way to get started with going beyond the standard print_r and var_dump statements that so many often use to locate problems.

Continue reading

A Look at Freemius Checkout

At the end of last year, I had the chance to meet Vova Feldman and see what he was working on with Freemius. It was a cool product, to be sure, and it’s been neat to see it take off over the last few months.

Just as I did with Freemius, I had a chance to see what else Vova has been working on and this time it’s something geared towards those who are selling products via their site.

Thus, there’s the aptly named Freemius Checkout. This product is geared specifically to those who are looking to sell plugins or themes.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑