"Stupid is as stupid does."
The phrase carries the meaning of someone identified as stupid through their actions rather than their appearance.
The phrase means that stupid people will do silly things, and you can single them out by looking at their methodology and results with handling tasks.
Drink a covfefe.