How (un)safe is it to ride barefoot? Sometimes I use bike for a week long trip camping along, doing maybe 200km per day riding on asphalt road. In the end, my feet have bad smell, which is not super strange or concerning, but it does seem a bit unhygienical to do so, especially if I don't have an opportunity to take a shower, I have a feeling I might get some feet fungus.

I tried riding barefoot once for short time and everything went well. I don't have sensitive feet and my pedals are mostly flat, so it's not a pain to pedal.

Now, I've almost never seen anybody else doing it so there must be a downside or danger to it? Does anyone have any experience on this?
It may well become uncomfortable after pedalling for some time, so don't rely on a quick test ride to check.

More importantly though, you need to be able to stop the bike based on the need to stop, and put your foot down without examining the ground for broken glass, thorns etc. It's not completely unknown to strike the sole of your shoe on the ground, like pedal strike, and this would hurt quite badly in bare feet (there's one roundabout I've done this several times, due to a combination of the camber, turning onto a hill, and having to pull away fast because of a poor line of sight). If you ever bump your foot on your front wheel turning at low speed, that could become unpleasant too.

Let's face it, all cyclists get stinky shoes and feet . And a bad smell doesn't mean a fungal infection. Letting your feet and preferably shoes dry out at the end of each day is a big help. That's the time to go barefoot