This article is reproduced from my blog
Just after setting up your own WordPress blog, the question of how to optimize it comes up. After several days of restless struggle, the blogger finally found a list of plug-ins that give consideration to both performance and use experience for newcomers like me. If you have a better choice of plug-ins, please leave a message below.
This is one of the default plug-ins of WordPress and a typical Out of Box plug-in. By creating a free account, you can use it on non-profit websites to prevent spam comments. As we all know, there are many crawlers on the Internet now. According to the experience of bloggers who have opened blogs several times before, if you do not filter them, there will be some strange English comments on your site. Therefore, it is recommended that every friend open this plug-in. At the same time, because it only runs in comments, the impact on performance is negligible.
This is the official WordPress plug-in released by AMP.
What is AMP?
Accelerated Mobile Pages (AMP for short, which means "accelerating mobile pages") is an open source project led by Google, which aims to improve the access speed of mobile devices to websites. AMP can also refer to its derived standards, libraries and other project achievements. AMP is improved on the basis of widely used network technologies such as HTML. Its core is called AMP HTML, which is a kind of HTML.
—— Wikipedia
In short, this plug-in can help you automatically create pages in AMP format, so as to optimize access to mobile devices. Generally speaking, websites with AMP pages will be more popular with Baidu, Google and other search engines, because this can enable mobile websites to open in seconds. However, in some cases, this plug-in may conflict with other plug-ins. Although the conflict will not affect readers' browsing (as it is on my website), you still have to make your own judgment. At the same time, this plug-in has many alternative plug-ins to choose from. It is recommended to open at least one such plug-in.
Of course, these two plug-ins are put together because they are used together. Yoast SEO It is a famous WordPress SEO optimization plug-in, and Glue for Yoast SEO & AMP This is to make the settings of Yoast SEO apply to the AMP webpage generated by the AMP plug-in mentioned above.
What is SEO?
Search engine optimization (abbreviated as SEO) is a way to adjust websites and improve the ranking of target websites in relevant search engines by understanding the operating rules of search engines. Because many studies have found that users of search engines tend to pay attention only to the first few items of search results, many websites hope to influence the ranking of search engines through various forms, so that their websites can have excellent search rankings. In particular, various websites that rely on advertising for survival are very important.
—— Wikipedia
Why install SEO plug-in? This involves what you are writing your blog for. If your blog is just to give your own words a place to rest, mainly for yourself, then SEO does or does not do, in fact, it does not have much impact on you; If you write a blog so that your writing can be seen, recognized and discussed by more people, installing SEO plug-ins for better SEO can give your website a better priority in search and have a greater possibility of being visited. Therefore, whether you install this plug-in or not depends on the purpose of your website.
As we all know, it will be extremely difficult to go back and look for some content once the article is long. Even if there are multi-level titles, it is not easy. Therefore, in order to improve the readability and logicality of blog posts, it is necessary to add an appropriate directory. Some themes will automatically generate directories (for example, my current theme can be generated by inserting short code), while others need plug-ins to assist in generation. For directory plug-ins, it is recommended here Table of Contents Plus , it can help you easily generate directories, and has excellent compatibility.
The data is priceless, and it is extremely important to backup the data of the blog. After all, no one wants to lose an entire blog because of a small operation on the server. Recommended here UpdraftPlus Backup/Restore plug-in unit. With this plug-in, you can easily back up your blog data to a local or public cloud. For example, this blog is backed up to Google Drive. (Friends who use the virtual host should not take it lightly. One more backup is one less data loss. Please do a good job of backup!)
This is a security plug-in. It can protect your site from malicious visitors. It can also add two-step authentication to login (this function is enabled on this site.) Take this site as an example. Before installation, I never realized that there would be so many people trying to login to the background of the site, but the data hit my face hard
Attackers in the past seven days
Failed login behavior
7. Cache plug-in
What's the use of caching? First, it improves the speed and performance of the website. Static cache files load faster than dynamic database queries, which can improve website performance. Caching can also help reduce the load on managed servers. This saves server memory and I/O operations. Therefore, caching is rapidly becoming an important function, especially for those with limited hosting plans. Faster websites not only load faster, but also can get favorable rankings from search engines. Obviously, this largely depends on other indicators, such as your content quality and SEO settings. But everything else is the same. A website with faster loading speed will get better page search than a website with slower loading speed. Google has confirmed that it needs to consider page speed. Caching websites can provide a better user experience. Faster sites help users browse better. In addition, caching the site means that the user's bandwidth is also saved (although it is nominally marginal), because static cache pages have less file size than dynamic requests. To achieve this, in addition to basic page caching, your caching solution must use combined and reduced JavaScript and CSS.
The reason why the recommended plug-ins are not written directly in the title is that there are too many cache plug-ins, and there are different choices according to the different website servers. Here is a performance comparison chart of major plug-ins:
It can be seen that the gap is quite obvious. However, there is no free lunch in the world. The best plug-in LSCache (LightSpeed Cache), which is the one the blogger is using, needs server level software support. However, WP Rocket needs to be used for a fee. Although W3 Total Cache is free, it is cumbersome to set up. WP Super Cache has poor performance but is the simplest to set up It is suggested that friends make choices according to their own needs (whether they need such high concurrency? How about their own technical level?). Friends using virtual hosts can ask service providers to see whether they have deployed server level acceleration support. (For example, this blog uses Microbase host It provides support for LS Cache.)
Some friends may encounter such a problem: after setting up a website, they want to test the access speed of their website in the world. Results One test found that the whole line was red, and all accesses timed out, but there was no problem with local access. This may be because the server is overwhelmed by a large number of access requests sent from different speed measurement points at the same time. This problem can be solved after configuring the access plug-in.
The above is my summary of the necessary plug-in guide, hoping to give you some help. Welcome to leave a message below to explore the skills of building a website~