You're right. They don't use 50% on vanity projects. They use way more than that. Their donation income last year was around $150 million and their hosting costs were $2.4 million. Let's say their necessary engineering / admin cost was $20 million (a massive overestimate). That's >80% on BS.
I think you misunderstand what Wikimedia is and does. It's not just Wikipedia and hosting. It is also a lot of research into their Wikidata free knowledge database (look it up) for instance.
It requires a lot of people and core knowledge to develop and run. To some extent Wikimedia is a research company too.
> Let's say their necessary engineering / admin cost was $20 million (a massive overestimate)
On this site, you will find many who will breathlessly insist that the only way to run a website at scale is through top tier engineering solutions developed by teams of highly paid engineers. I am not sure why the calculus changes so much for a non profit. Elsewhere in this thread, someone noted that they have $8 million in processing fees just for their donations.
I have no idea what is the right number they should be spending, but I know their costs are much higher than servers and bandwidth.