The venom hitting Yahoo should be redirected to Twitter, Jim Cramer says.

Tuesday was a significant day for Yahoo, as Marissa Mayer has officially tripled the price of the stock since she took over as CEO of the company. She did it through shrewd capital management, mainly by making peace with Alibaba so that she could hold back 122 million shares from being sold during the IPO for Alibaba. Now that Alibaba has approached $100 a share, her foresight was clearly on point when she avoided selling at $68, the "Mad Money" host said.

During her time, Mayer has stayed clear and focused on making smaller acquisitions that are meant to boost followers. She also bought back 293 million shares, which turned out to be a brilliant decision in Cramer's opinion. This helped to boost earnings by 52 percent year-over-year.

Mayer still has a few things to work on that include creating revenue through advertisements, something that Google has figured out. However, her decisions are paying off and the cash is piling up.

Twitter, on the other hand, cannot say the same for itself.