Writing a widget is the same as writing a plugin, but with a few additional rules added. In this section we will look at the steps to create a widget and you will see how easy it is, especially if you've already mastered plugins.
A widget is just a plugin with special needs
As you read the chapter, you'll notice that there are a lot of similarities between our plugin code and widget code. This is because a widget is a type of plugin. It just has some additional requirements so that it can function properly as a widget.
In this section, we will see how to write a widget that displays the top searched words in the sidebar. The user will be able to choose whether or not to show the counts and how many searched words ...