The Author

Miguel Muscat

Miguel is a passionate software developer who loves to tinker, reverse-engineer, and learn new skills. He has spent the past 10 years working with RebelCode to build amazing WordPress plugins that serve thousands of users worldwide.

Articles written by Miguel Muscat

HTMX Might Be a Big Deal for WordPress

HTMX Might Be a Big Deal for WordPress

A brief overview of what HTMX is, how it challenges the we way we build modern user interfaces on the web, and the potential impact it could have on WordPress plugin development.

Unit Testing with PHPUnit

The term, quite simply, refers to the process ofΒ dividing software into the smallest testable components, called units, that can be tested independently to assert whether they fulfill their requirements and operate as intended.

There are manyΒ benefits that come withΒ unit testing. One of the most important is that itΒ allows you (and perhaps even your stakeholders) to determine the completeness of your software. By simply running your tests cases, you can easily confirm that the code works as expected.

WordPress Heartbeat vs AJAX Polling

WordPress 3.6 introduced the “Heartbeat API”. This API is used internally by WordPress to keep track of logged in users and their active sessions. If you’ve ever been asked to log into WordPress while navigating the admin panel, then you’ve already experienced the API at work.

The API uses Javascript polling, to constantly send data from our dashboard to WordPress’ PHP backend.Β Developers are also allowed to hook in, adding and modifying the data sent through various filters.

But when should you use the Heartbeat API in contrast to regular AJAX polling? To make an informed decision, we’ll need to look at both approaches, understand how they work and how to use them, and the advantages and disadvantages for both.

Hosting Survey 2024

Are you happy with your hosting provider or are you over-paying for too little? Have your say below!

"*" indicates required fields

What's the main reason you picked this host?*
How happy are you with your host?*

OPTIONAL: If you'd like to receive the results of this survey, please enter your details below.