means that
a person's true worth should be judged by their conduct rather than their physical attractiveness.
also
Pretty is as pretty does. The tree is known by its fruit.
For example, people should be valued for their behaviour and their good deeds, not for their good looks; Also, it is used as a warning for people not to be… This is a situation where “Handsome is as handsome does” applies.