How to change Popular Post Widget

I’d like to display only “recents” posts and not the other 2 tabs (popular and comments). I tried to modify popular-posts-widget.php but without success… how can I manage it?

Thank you for your answer and your great support!

I think it would be easier to use some plugins such as one we are using to display recent posts on Travelify demo. I am using Recent Posts Widget Extended and it gets the job done and it doesn’t require any coding to instal and configure it.