The goodness of a person is expressed in the actions they take and the way that they treat others. Who they are in their heart matters but if they take no action that echos that then it doesn’t matter.
A person who is evil that does good works has brought good into the world.
A person who is good who does evil works has brought evil into the world.
I don’t think it is as black and white as that but it behooves us to see ourselves by this criteria as well as others.
And to check in with ourselves to make sure we are acting as we desire and that those we associate with are as well. For instance, I love my father. But I must acknowledge that the man I grew up with has faded and been replaced by a dogmatic extreme right leaning person. I don’t think in his heart he is evil. But his choices and speech say otherwise.