There's a case to be made to shorten the task time I agree, but as noted in the article, when considering the amount of prep-time needed to pass a Codility test, these platforms already expect this amount of investment for applicants - not that that's ideal either.
I think, ideally, companies should compensate candidates, but I don't see that as a likely outcome either.