You can install plugin and theme easily from wordpress backend. But sometime due to folder permission WordPress may ask ftp details to install plugins in site. You can prevent asking ftp details just open wp-config.php file from the root folder of wordpress installation then write following php code
define('FS_METHOD', 'direct');
save the file to apply changes. Now you can install plugin or themes in wordpress backend.