I love quick commits and push ;], now the code for one-file plugin is here :)
Also I have added code for class based plugin