How to create wordpress plugin
Here, we are going to create a polular post plugin in wordpress.
1. first step is to create a popular-posts.php file inside wp-content/plugins directory and paste the following header.
Plugin Name: NewTechInfo's Popular Posts
Description: A simple plugin that tracks popular posts based on views and displays them in a widget
Author: Padam Raj Gurung
Author URI: http://padamrajgurung.com.np
License URI: https://www.gnu.org/licenses/gpl-2.0.html
2. You can now activate from wordpress admin dashboard.