How To Make A wordrpess Plugins ?

1. Step
wp-content=> plugins=> create a plugins folder

Go to wordpress plugins directory And create a plugins folder. such as I creat a plugins call name (wp-loader).

2. Step
wp-content=> plugins=> wp-loader (it's my created a plugins folder)
open your plguins folder and where create a php file. such as main_loader.php 

3. Step
open your plguins main file php and write a plugins name. 
Plugin Name: WP Loader
Plugin URI:
Description: This is an awesome WordPress Loader Plugin.
Author: Md. Shiddikur Rahman
Author URI:
Version: 1.0

4. Step
call your plguins file css and js

/* Including all files */
function wp_loader_file() {        

wp_enqueue_style('wp-loader', WP_LOADER.'css/wp_loader.css');    
wp_enqueue_script('wp-loader-main-js', WP_LOADER.'js/jquery-1.11.3.min.js', array('jquery'), 1.0, false);
wp_enqueue_script('wp-loader-js', WP_LOADER.'js/wp_loader.js', array('jquery'), 1.0, false);
add_action( 'wp_enqueue_scripts', 'wp_loader_file' );

5. Step
At last create a shortcode for your plugins.

function wp_loader_shortocdoe($atts){
    extract( shortcode_atts( array(

    ), $atts, 'wp_loader' ) );
  return '
<div id="loader-wrapper">        

<div id="loader"></div>


add_shortcode('wp_loader', 'wp_loader_shortocdoe');
6. Step
wp_loader it's your shortcode now you can use wordpress anywhere.

Download Source code