If you build your WordPress plugin zip with rsync and a .distignore file, this line looks harmless:

tests 

rsync treats an exclude pattern without a leading slash as "match this name at any depth". So tests removes your own /tests folder and also every tests folder inside vendor/. The same goes for docs, bin, README.md and composer.lock.

The worst case is a bare vendor line. Your runtime Composer packages disappear from the zip, and Plugin Check does not notice.

The fix is one character per line. Anchor each entry to the plugin root:

/tests /docs /node_modules 

Now each pattern matches only the folder at the top of your plugin.

We added a check for this to wp-release, our open-source release tool. mmwp-release build warns about unanchored tests, docs, bin, README.md, composer.lock or vendor entries, and fails the build when you run it with --strict. It also fails when your plugin requires runtime packages and their vendor/ directories are missing from the zip.

Full guide: https://mammothwp.com/guides/build-check-deploy-wordpress-plugin-wp-release/

Drafted with AI assistance and reviewed by the MammothWP team.