In practice, I'm not so sure. I have yet to meet a developer who reviewed another developer's project, and said
> Definitely, whoever wrote this code is 100% not braindead.
Academic code is written for a purpose - I'm afraid if code review became mandatory, there would be fewer papers submitted in fear of negative criticism due to a memory leak that eats up all memory if the program is running for 3 weeks (even though it finishes after 4 minutes).
On the other hand, most probably reviewer would come from the same science area as the submitter, with similar level of coding knowledge. Not sure if they would be any significant help regarding the code quality. They would do the same.
With that said, I would require making the code part of the paper, regardless how garbage it is.