When developing a plugin, should I includes the blank
index.php file and then add my functions in the
plugin-name.php? Or is that unnecessary? What file structure is recommended?
From doing some research on WPSE, I have found a Q&A related to my own question:
However, this question is over four years ago and I wanted to know if this is still a recommendation for ethical plugin development nowadays.
- For: security through obscurity works, bots compile the plugin lists right off WordPress.org and crawl the plugin's URL directly
- Against: unused PHP files in that directory are wasting time and memory when WordPress is searching for plugins
Are these two statements true? What's the latest update?