The wp_functions_compatibility check uses a generated dataset:
includes/Vars/wp-functions-since.json
That file maps WordPress function names to the WordPress version where they were introduced (@since).
The check compares those versions with the plugin's minimum supported WordPress version (Requires at least).
From this plugin root:
php tools/generate-wp-function-since-data.php \
--wordpress-dir=/absolute/path/to/wordpress \
--output=includes/Vars/wp-functions-since.jsonExample for this repository's standard local layout:
php tools/generate-wp-function-since-data.php \
--wordpress-dir=../../../ \
--output=includes/Vars/wp-functions-since.jsonThe GitHub workflow:
.github/workflows/generate-wp-functions-since-data.yml
regenerates this file on a schedule and via manual dispatch, and opens a pull request when the dataset changes.