When you are flying you should keep your shoes on for takeoff and landing. If you take them off during the flight, make sure you have a pair of socks on. This is especially important if you are sitting at the bulkhead row. No one wants to see your bare feet on the bulkhead.
Also, if you go to the lav. put your shoes on.