This plugin the very simple. Simply by enabling the plugin can set up a basic auth to dashboard and login page. Auth information of Basic Auth is your WordPress user name and password. Requires WordPress 4.3 or higher PHP 5.4 or higher Contribute! You can fork the plugin from GitHub