Spot a good white sandal from across a room by the sole and the stitching, not the strap. A cheap pair goes grey and faintly yellow within a month, the white turning the colour of old teeth, while a decent one, usually leather or a well finished synthetic with a clean sole edge, stays properly white or at least fades evenly rather than patchily. That difference, bright versus grubby, is the whole story with this colour.
Be honest about where white sandals let you down. They are not the pair for a muddy festival field, a gravel drive, or any day involving public transport floors in the rain, because white shows every splash, scuff and bit of dropped chip within hours. They also show up differently depending on the shade of your skin and your own tan line, so try them in daylight near a window, not under shop lighting, before deciding they suit you. And if your feet swell by evening, a stiff white leather strap will mark pink lines that look worse against white than they would against black or tan.
Think about what they sit next to. White sandals tend to clash with anything else loudly patterned on the leg, busy tights obviously not, but also bright ankle socks or a clashing pedicure colour that fights for attention lower down. They also don't love a very orange fake tan, which reads strangely against bright white. Keep the rest of the outfit calmer below the knee and let the sandal be the pale, clean note.
In the shop, check the lining where your foot actually touches, because a white outer with a cheap beige or grey inner sole looks odd the moment you take a step and the gap shows. Check the stitching thread is white too, not cream against white, which always looks slightly wrong once you're outside. Press the sole to see if it will crease and discolour at the first bend, and have a proper look at the strap edges for rough trimming, since that's where scuffing starts.
Where they genuinely pay off is against plain linen trousers, a simple cotton dress, denim, anything with its own texture rather than pattern. They lift a faded pair of jeans no end and look right with bare, slightly tanned legs more than with any tights at all.
A good pair of white sandals looks like a deliberate, clean choice, and a bad pair looks like last summer's mistake you forgot to throw out.