Errol, I do agree that some parts of the the 'moral code' of some religions appear to many people to be profoundly unethical. But that's something that needs unpacking.
Firstly, I think you mean that people don't agree with some of the moral code that they think it is wrong. That's not quite the same as unethical. For example, the RCC's teaching on abortion is viewed by many as entirely wrong yet it proceeds from exactly the same line of ethical reasoning as the RCC's opposition to capital punishment, which many of the same people, I'm guessing, would think was right. (By the way, I'm not an RC!)
Also, there is a distinction between systems of ethics and moral codes. Moral codes arise from systems of ethics, but they're not the same as them. A system of ethics is the underlying principles that underpin any moral code such as, say, there are universal moral principles such as right and wrong or there are no universal principles, and right and wrong are purely determined by the greatest happiness to the greatest number of people. The moral code arises from applying the ethical principles.
And one of the problems about moral codes is that they lead you into difficult situations. It's wrong to kill, for instance; or it's right to kill someone if you prevent the deaths of other people. What I am saying, really, is that even though they get things wrong the world's great religions have greater resources for helping us to deal with these questions than secular philosophers have yet come up with.