Please stop saying that WordPress is bloated

More than one person has talked to me about the problem of WordPress being too bloated, and I will echo "Junk WP, I use Tyecho". So, is WordPress really bloated?

1、 Program volume

The first version I used was 4.0.1. Now, WordPress has been updated to 5.7. x.

The search results of the search engine show that the package size of the 4.0.1 release package is 7 MiB, while the package size of the 5.7. x release package is 17 MiB. In six years, the package volume increased by 140%.

If we call the increase in package size bloated, it is indeed much larger However, does the increased volume really affect your access speed? I myself hold a negative attitude.

Although WP needs to include relevant php files every time it accesses them, they are all files on the local disk, and their loading speed is very fast. Unless you have more than 3-400 concurrent files, these file references will not be the bottleneck of access speed.

What is the concept of 3-400 concurrency? Just use your own calculator.

2、 Access speed

Some people install a WordPress, use the default theme, and then get a bunch of plug-ins from the plug-in store that they don't understand. When they finally visit an article, they haven't loaded it for 10 seconds, and they talk about being stuck and bloated everywhere.

However, most cases are as follows:

  • From F12 on the home page, we can see that seven or eight cf or Google static resource links have a file volume of 7-8M, and the links are still blocked, so they can't be loaded at all;
  • Click the article to see a bunch of 2K or even 4K pictures, one of which is 5-6M, and all of them are from the source server. If you remember correctly, the bandwidth of the active machine is at most 5Mbit/s;
  • On the background, three or four file cache plug-ins have been installed, and several database cache plug-ins have been installed. Without mentioning the function conflicts, debugging is impossible.

That's all. You can't even say no to it.

3、 Php fpm and database query performance

If you want me to say that personal blogs can sustain tens of thousands of PVs every day, it is great. In this case, PHP execution efficiency without optimization and database query efficiency are not bottlenecks.

Of course, if the topic or function you write is too complex, you often link several tables, or you have a bunch of PHP methods with high CPU time or high IO, then there will be some problems in the execution efficiency.

But, In this case, no matter what you change, the problem will not disappear Because the high cost methods you write are all php methods in the end, it will not disappear because you change other php blog tools (or content platforms).

If you change the blog tool, it will disappear. It is recommended to check whether there is a problem with the code you wrote.

The problem of database query performance is a commonplace in WP. There are some cache plug-ins in WP that can meet the needs of most WPers, but it is still the same statement that the cache plug-ins are not used for ordinary people's access.

4、 Multiple redundant functions

Some people often boast about the simplicity of some blog tools, but conversely, WordPress has a lot of functions that cannot be used. But, Since you don't use these functions, how can you talk about overstaffing

Take image trimming as an example. If you don't need built-in image trimming or manually call relevant methods, it will just lie there quietly. At most, it will load the method definition when accessing, but it hasn't really executed. How can it be overstaffed.

Some people also said that WP pictures will automatically cut several thumbnails, which is too bulky. It is true that when uploading images, WP will automatically generate several thumbnails for you to use when you need them. But in other words, this is generated when editing the media library in the background, not when visitors visit, which does not affect the access speed, saying that it is too bulky and untenable. It's really no good. It's just a few lines of code to prohibit WP from generating thumbnails.

On the contrary, is thumbnail really useless? Maybe you will use these thumbnails for the next plug-in and theme. With the development day by day, one day you suddenly need these functions, but you find that the blog tool you use is not provided, and you have to write your own.

What does WP provide? For me, it provides a Text editing, media resource upload and management, media resource preview and simple editing (It is estimated that most people do not know that the background can rotate and cut pictures) Release and go online Of Whole process tools At the same time, it has opened a bunch of API hooks, providing unlimited possibilities for function extension.

WP can not only be used as a blog. You can hang the developed php function interface on the WP ajax hook to be a business system backend. You can also use its media library+API to be a file management system. You can also use the rest API to be a WeChat applet backend+content platform. In a word, WP has many applications besides providing a complete blog tool.

5、 Summary

For some farmers who collect millions of articles, they can be forgiven for saying that they are overstaffed; For some bulls who are prone to hundreds or even thousands of concurrent people, it is quite reasonable for them to say that they are overstaffed.

However, ordinary users should stop saying that WordPress is bloated. If you insist on saying that WordPress is bloated, please check it carefully to see where it is bloated. To be professional, it is to see where the bottleneck is in your application scenario. After all, what you say is true, what you see is true.

Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/7866.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*

Comment area

  1. roughly 05-09 23:25 reply

    Agree. I really like the hook mechanism of WP.

  2. bapi 05-16 12:42 reply

    It's not advisable to step on one hand, but typecho+sqlite is really delicious

  3. BBP 06-13 10:14 reply

    Nice~is quite right.

  4. Savage 06-30 10:49 reply

    Well reasoned

  5. seria 04-10 15:19 reply

    The most annoying thing about WP is the whole process connection. All kinds of plug-ins and themes need to use the resources of other stations or connect with the API of other stations. Removing them is troublesome and really annoying.