It should be fine...sorry didn't catch the 10g part...lol your plants should do well.......what kind are they? if you start to see algae you may want to add more plants.
I have my 25g sitting about 1 foot in front of an east window for the direct sunlight-its a NPT soil based-I don't have any problems with over heating or algae but this is due to the balance, size etc.....and part of the method of the NPT's (natural planted tank)
I also have some 1g in an east window without any fish-just plants and snail for infusoria culture and they have never overheated or I should say- no problems.... because I never check the temp...lol...but I would never put any fish in them....