·

Strict type everything


In the age of LLMs, writing code is easier than ever. Spend most of your time planning and designing architecture.

It’s easier than ever to fix strict types; add guards.

What it means for PHP?

Add this to each file:

declare(strict_types=1);

Adding PHPCS is no-brainer with WordPress coding standards if project has WordPress.

Adding PHPStan to your code. If you’re using WordPress there is supported extension available.

Add Psalm; Add WordPress extension for WordPress context.

JS

For JS use TS preferably or use TS with JS docs if you do not want to convert entire project to TS.

Tests

Don’t stop there; Add more unit-test to everything – cross verify coverage and add basic smoke e2e atleast.

More coverage the better.