To test a WordPress plugin properly before it goes live, run it on a staging copy of the real site, on every PHP version that site could be running, with debugging switched on, with the site's actual plugins active and its real data volume, and with a written rollback plan agreed before anything is deployed. […]

