BlogArticlesHow we work

How we test a WordPress plugin before you ever see it

Every Perforks plugin starts as a fix for our own client work, runs on our sites for weeks, and passes automated tests against a real WordPress site before each release.

2 min readPerforks

The three steps a Perforks plugin passes before a release: a fix for our own client work, weeks on our own sites and automated tests on a real WordPress site

Most WordPress problems do not happen on the developer's laptop. They happen on a shared host with a 30-second time limit, an old PHP version, a caching plugin that nobody remembers installing, and a client who pressed Update on a Friday evening. That is where our plugins have to work, so that is where we test them.

1. It starts with a problem we had

We have built more than 120 websites since 2018 and still look after around 25 of them every day. Every product we sell started as a tool we needed for that work: backups that kept timing out on shared hosting became Restora; clients asking for a dark dashboard became Adminight. We do not start from a gap in the market. We start from a problem we already had to solve.

2. It runs on our sites first

Before a version reaches anyone else, it runs for weeks on the sites we look after. Real content, real hosts, real plugins next to it. If something breaks, it breaks for us first, and we would rather find a problem on our own client's site, with a backup at hand, than hear about it from you.

3. Automated tests against a real WordPress site

Every release goes through automated test suites that run against an actual WordPress installation, not mocked functions. For a backup plugin that means doing the dangerous things on purpose:

  • back up and restore, then compare every file and table with what was there before;
  • break the site in different ways (a crashing plugin, a missing file, a corrupt archive) and check that the restore either finishes or puts everything back as it was;
  • try the attacks we can think of: tampered archives, path tricks in file names, requests without permission;
  • move a site to another address and check that it answers.

The same release also has to pass WordPress.org's Plugin Check, the tool the plugin directory uses for its own reviews.

4. Written for the hosting most sites actually use

We assume the worst server, not the best. Long jobs are cut into short steps that pick up where they stopped. Nothing depends on a service of ours being online: no accounts with us, no API in between, your data stays on your server or on storage you choose.

5. Kept up in the open

Every change goes into the changelog. When something is not supported, the documentation says so. And when you write to us, the person who answers is the person who wrote the code.