If God were to judge you or anyone else on just the ten commandments, how many would you be guilty of? We're guilty. And as I've already pointed out, if you think you're a good person, don't you realize how foolish it is to judge yourself BY YOUR OWN STANDARD? When part of human nature is to try to justify your own actions, don't you think judging yourself by your own standard is rather convenient?
If Adolf Hitler was here, do you know what he would tell us? He would say "I'm a good man, I purged Germany of Jews, blacks, and communists".
God is perfectly holy, that's why the only way to heaven is to be made perfectly righteous and that can only be done through Jesus. When God looks at those who are saved, he doesn't see their past sins, he only sees Christ's blood.