You cannot judge a tree by its bark. meaning

HOME PROVERBS

appearance

You cannot judge a tree by its bark.

means that:
Appearence in not a reliable guide to the actual value of someone or something.
similar
You can't tell a book by its cover.