Most "it does not work" tickets are not about your code. They are about the server it landed on. A short set of checks at install time turns those into a message the buyer can act on without you.
Check the language version, precisely
Not "PHP 8 or higher" in the docs. An actual comparison in the installer that stops with "This needs PHP 8.1 or newer. This server has 7.4." A buyer can take that straight to their host.
Check the extensions you use
Every extension you call, checked by name, listed all at once rather than failing one at a time. Nothing is more demoralising than fixing a missing extension four times in a row.
Check what you write to
- Directories you need writable, tested by actually writing
- The upload directory, with a real file, not just a permission bit
- Whether your cache or session path exists at all
Permission bits lie under some hosting setups. Writing a byte and deleting it does not.
Check the database properly
Connecting is not enough. Confirm the engine version, the character set, and that the user can create tables. A buyer whose database user only has SELECT will otherwise get a confusing failure half way through your migration.
Show it as a list
Every check, with a tick or a cross and one line of explanation each. Buyers screenshot that page and send it to you, which turns a vague conversation into a specific one, and often means they never have to send it at all.