I love Yoast SEO because it’s one of the best plugins out there for WP SEO, however it leaves the version of the plugin in the comments of the site and that’s something that I am not comfortable with. I don’t mind credits going to Yoast however I don’t want to have the Yoast version in my header. Here is the code to remove “This site is optimized with the Yoast WordPress SEO plugin” comment which is found in the header…
UPDATE 15 June 2015: Updated code thanks to Paul. 5 lines only with some regex! Readable version also kept above.