Based on wp-coding-standards/wpcs.
- Declarations Sniffs
- WP Sniffs
Checks for mandatory declare(strict_types=1); after <?php. Takes into account other parameters besides strict_types
Looking for a mandatory defined('ABSPATH') || exit; check after namespace so that you can't go to the file directly from the url