WordPress: Add page admin custom

<?php

add_action( 'admin_menu', 'register_peru' );

function register_peru() {

    //create new top-level menu
    add_menu_page('Peru', 'Peru', 'administrator', __FILE__, 'peru_page',plugins_url('/icon.png', __FILE__));
}


function peru_page() {
?>
<div class="wrap">
<h2>Peru</h2>

MY TEXT HERE


<?php if ( is_admin() ) {
  echo '<p>is admin!</p>';
}
?>

</div>
<?php } ?>
post-author