How to install plugin only from PHP file?

Your plugin isn’t visible because you haven’t provided a Plugin Name in your header. Change Name to Plugin Name and it’ll show up. You’re also missing a few lines in your header, if that’s a concern to you. It’s best to just follow the example provided in the codex:

<?php
/**
 * Plugin Name: Name Of The Plugin
 * Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 * Description: A brief description of the Plugin.
 * Version: The Plugin's Version Number, e.g.: 1.0
 * Author: Name Of The Plugin Author
 * Author URI: http://URI_Of_The_Plugin_Author
 * License: A "Slug" license name e.g. GPL2
 */

error code: 523