MyPlugin
Plugin
MyPlugin

As mentioned above, you class should extend the Plugin base class.

Functions
__construct
public function __construct()

Make sure that you provide a constructor for your class.  The constructor should not take any arguments and should set the plugin_desc and plugin_version properties.  Anything else in the constructor is purely optional.  Note, however, that the constructor absolutely MUST NOT perform any output, as this will muck up the entire plugin system.