easiest way to build wp plugin code example
Example: wp plugin create
<?php
/**
* Plugin Name: My Plugin
* Description: A plugin
* Version: 1.1.1.0
* Author: E.Bisco
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly the file
// code snippet below