To create a widget, you only need to extend the standard WP_Widget class and some of its functions.

read more