It’s available on subscription, but you can also pay for a lifetime license - though this is notably more expensive.
Founded by the Ukrainian developer MacPaw in 2008, it offers a large number of tools for cleaning, optimizing, and protecting Macs. CleanMyMac is one of the most popular Mac-cleaning apps around at the moment.