Optimize the code

Hey! good job with your plugin!

This is a very basic pull that remove unnecessary code from the plugin.

I will later look further for more things to do ;)