One method I use to assess software quality is to skim through the source code. If the source is clean, organized, elegant, and well thought out, I have greater confidence. If the source is sloppy, uses inconsistent indentation/spacing, and is generally a mess, then it's obvious the author(s) lacked attention to detail and didn't put much care into it.
This doesn't fully answer the question—notably, clean-looking code can still contain bugs—but it can yield surprising insight in a short time.
After all, security is part of correctness, which in turn is part of building software with ability and care.