If you have not cleaned your blog, you can go to the source code to see a lot of extra meta tags in the head, some links, for example, WP-JSON, Pingbacks, XML-RPC, Feed, Emojis, etc.  

Using the plugin “Clearfy”

Clearfy WordPress plugin has built-in functionality to completely or partially disable these unnecessary WordPress features, With this plugin, you can easily disable and optimize the below functionalities of WordPress:

REST API (WP JSON)Emojilinks to RSS feedsdata for blog clientsRemove RSD linkversions of your WordPresssrcset and sizes for picturesautomatic links in the commentsRemove wlwmanifest LinkRemove jQuery MigrateDisable EmbedRemove dns-prefetch

     

WP JSON, What is it and How to Disable it?

WP JSON API  is an interface for site management. In fact, it creates certain ways of interacting with the site: collaboration, remote control, a program interface for working without entering the admin panel. Simple use of this API can go sideways. Here is an example of the negative side of use: strange Google search results with some kind of code inside and the address of the view */wp-JSON/. Of course, you can cure this problem by banning it robots.txt, but I think that it would be more correct to disable this function. To disable this you can use the above-mentioned Clearfy WordPress Plugin or the Disable WP REST API plugin also have the functionality to disable this feature and more.  

Emoji, What is it and How to Disable it?

Emoji is a set of beautiful emoticons and icons, in WordPress, they are implemented by special libraries. Emoji can come in handy in a variety of entertainment resources to enhance the affection of readers. But most sites on WordPress do not use such icons, therefore it would be logical to disable this functionality, especially since it can and often slows down the loading of pages. Pictures themselves are loaded from external WordPress servers.  

What is XML-RPC and How to Disable it?

XML-RPC  is another AIP for remote site access. If the  WP JSON API  is new and still raw functionality, then  XML-RPC  is a riding conic. You cannot turn it off completely in WordPress since it is needed for the proper operation of some plugins. Therefore, we will disable only dangerous methods. To disable this you can use the above-mentioned Clearfy WordPress Plugin or the Disable WP REST API. Another option is to use the All In One WP Security & Firewall plugin as it also has the option to disable XML-RPC along with various security features.    

Disable Srcset and Sizes for Images in WordPress

From WordPress 4.4 the attribute srcset and is sizes added for all pictures on the site. These are, in a sense, the intermediate sizes of the picture. This function does not always work correctly, it can negatively affect the operation of some plugins and themes. In some browsers, my images were displayed in a “shriveled” form, only after the page was reloaded, everything returned to normal.    

Remove Additional Unnecessary Tags from Head

The following code functions .phpwill remove the extra tags from the header of the site. The code comments say what exactly is deleted.

Delete the Styles of the CSS Class .recentcomments

If you use the “Recent Comments” widget, then you will find styles in the source code  .recentcomments. They are not needed there for this deletion, using the following when in  functions.php:     If the code spoils the display of the widget, then delete the code, find the .recentcomments styles, paste them into the stylesheet (style.css).  

If the reader leaves the link text when writing a comment, then after the publication of this comment the text will become a valid link. To avoid this, you can use the following code:   On this note, this article has come to an end, if I missed something or you had questions, write in the comments.