Hello Dolly plugin with only 2 files
A very basic and simple plugin is a single PHP file. The plugin PHP file just needs a Plugin Header, a couple of PHP functions and some hooks to attach your functions to it. Also, a readme.txt file would be nice to follow WordPress.org standards.
The Hello Dolly plugin is an example of such a plugin. Hello Dolly plugin is made with only 2 files, hello.php and readme.txt When activated you will randomly see a lyric from “Hello Dolly” in the upper right of your administration screen on every page.