Does code need to be perfect?
medium.com
medium.com
Ideally your code will do what your business needs it to do, not what people claim they need, since often those are two very divergent things.
I feel like they went to their clients and asked them what they wanted, and didn't bother to go to any of the hundreds of places using other proprietary softwares that had implemented these features and talked up their employees about said software to find out which variant of this feature to implement and how to make it better than the proprietary implementations on the market today.
Some basic research would have saved me from rewriting and cleaning up these features, but at least as a saving grace the people who wrote this do know how to write quality PHP, unlike many other projects I've worked on involving PHP.