It would be fine. You just need a filter rated for 20 gallons instead to keep you out of trouble.
I used to have many more fish than that and heavily planted and I kept that 10 gallon for 2 years. All was good.
Just do small water changes whenever you think you feel bored or you feel you have some time, then do bigger ones once a week.
Sent from my Nexus 5 using Aquarium Advice mobile app