WordPress in only 7 Kb • WordPress Help

If you are committed to the protection of our environment and the carbon footprint that your activity leaves you will already know that everything what has to do with the Internet also leaves a huge carbon footprint.

Internet and CO2 emissions

I am referring to energy consumption mainly, since every web, every tweet, everything requires energy consumption ]and in this current Internet as we know it, multimedia and with enormous resources within the reach of anyone, the consumption of energy, and consequently the carbon footprint, has increased notably .

And yes , WordPress is also participating in it, precisely because of its popularity, because of its growing functionalities, the very fact of the democratization of web creation, which is good in itself, also has that side effect of increase the footprint of carbon .

In fact, it has been assessed that Internet generates more CO2 emissions than all world air traffic .

Can we do something about it?

Since 2009, Greenpeace has been auditing the energy use of Internet companies, and encouraging them to improve with their campaign Clicking Clean . [19659005] Also, the Green Web Foundation has a database of hosting companies that use renewable energy, or at least do not leave a carbon footprint.

And, in addition, there is new tools such as EcoGrader or WebsiteCarbon which analyze the carbon footprint of your website to help measure the environmental impact of our services and products .

Susty WP

A very interesting initiative esante is that of Jack Lenox, who has created the web SustyWP.com and the subject that accompanies it, Susty a sustainable WordPress web.

And the fact is that sustywp.com only requires 7 Kb of transfer for its full load which its carbon footprint is minimal . And what is installed Yoast, which generates 1 Kb.

Some data to highlight from sustywp.com are these:

It seems that there are good arguments to be sustainable with our website do not you think?

How is it? made Susty WP?

Aim, if you want to join the challenge of making WordPress reduce its carbon footprint:

  • The site uses a version of the Underscores theme taken to its minimal expression, the aforementioned theme Susty, which you can download from GitHub .
  • Without widgets area
  • Without drop-down menus
  • Sin web fonts
  • CSS minimized and minimized
  • HTML minimized
  • Without JavaScript
  • GZip of all
  • NGinX Server
  • Fast-CGI Cache
  • Zero images, and if used, in SVG .

Benefits of SustyWP

I guess you'll already have s more or less made your list of benefits, but we summarize it:

  • Search engine scores
  • Ultra fast website
  • Sustainable web and minimum carbon footprint
  • Less resource consumption
  • Less cost de hosting

More information on Jack's blog .

Loading …

May also help you:

Learn WordPress while having breakfast: How to install a free SSL from Let's Encrypt

On this occasion, in the video of the series " Learn WordPress while having breakfast " that I am doing with SiteGround I explain in just over 2 minutes how to install a free SSL certificate of Let's Encrypt and some interesting tricks .

I hope you like it …

The entry Learn WordPress while having breakfast: How to install a free SSL of Let's Encrypt published it first Fernando Tellado in Help WordPress . Do not copy content, do not say anything good about you to your readers.

How to add an index in the WordPress options table and why you should do it • WordPress Help

Table options ( wp_options by default, or ideally with your custom prefix) of WordPress is the one that goes accumulating information about each of the plugins, settings and configurations and more, that you are installing throughout the life of your website.

If we add that the Most plugins do not delete lines from this table, you'll see that is gradually becoming a monster with thousands of lines, which WordPress checks and launches on each page load .

As you can imagine, a table options large can greatly slow down your website since your WordPress must make many requests and launch requests before loading each page for each visitor.

Ergo, if we could limit this amount ad requests your web would load faster, having to make fewer queries, right?

The culprit: Autoload

The culprit of all this is the field Autoload of each line of the table options, usually with the value in Yes that is, yes, it is automatically loaded by the function wp_load_alloptions () .

What's the problem with Autoload?

Well, very simple, it automatically loads all options from table options though:

  • The plugin option does not need to load on each page (Example: contact form that loads its settings across the web when it is only on one page.)
  • The plugin is no longer installed and active.
  • The theme is no longer active.
  • The plugin should have created their own tables and do not put their options in the table options

And, the green The problem is when it self-loads too much but what is too much?

Important note : In this article, we will work directly with the database. Before executing any query or touching something in it, make a backup copy.

Execute this SQL command, you can do it in PHPMyAdmin of your hosting panel:

Note: Change the example prefix to yours, do not forget

Click on the button Continue or execute the SQL query and you will get the size of the query of all the values ​​with autoload e bytes. And the rule should be:

  • If the result of autoload_size is greater than 1 Mb (approximately 1,000,000 bytes) you should do something to optimize this.

the example of the capture size is ridiculous, so if your results are like that you have just read the article, dedicate your time to blog something.

If you obtained a result above 1Mb, or just want to dedicate a Having said that,

Having said that, would it not be better to define what is loaded and when in our WordPress installation?

Create an index in the options table

There are several ways to thin the table options but we will see mainly one that has proven to be tremendously effective and easy to apply.

Why is the best solution?

The best solution to tables options huge that slow down your w eb is to create an index of the table options . In tests on sites with many lines with Autoload the difference between loading the table with and without index return some results beyond doubt.

In case you do not know English: in red loading time Autoload without index, in blue with index.

You can also see how the loading time in a site was reduced after adding an index:

The improvements performance and speed are brutal, especially with large databases, and the best thing is that creating an index is very simple.

Check the index

A good test to do before creating the index is to see how many columns (options) have Autoload in Yes that is, they are loaded. This would be done as follows:

For those that do not load, those that have Autoload in No .

Results will look like this:

The rule to apply would be the following:

  • If the values ​​in No exceed 60% of the total then you do not need an index.

Create an index with SQL commands

If you feel comfortable, you can create the index by executing a command like this:

Again, you can change the name of the index, autoloadindex in the example, and you must change the prefix of the table options by which you use.

Create an index with WP-CLI

If you prefer to use the WordPress command interface WP- CLI you would do it this way:

Create an index with plugins

In case you do not you want or do not you dare with SQL, there is also a plugin that will help you in this task of creating the index.

It is called Index Autoload and it does not even have adjustments, you activate it and it's done. [19659003] Of course, even if it is a plugin, the rule of backing up the database is still valid, do not forget it.

This plugin creates the Autoload index equally.

I do not want the index anymore

As there is nothing like freedom of choice, if at any time you no longer want the index you can execute this command to erase it:

Again, remember to change the index name and prefix of the table to yours.

If you used the option to do so with the plugin to deactivate it and delete it is also deleted the index.

Is it really worth it?

Although there is nothing better than doing a test, I will give you some advice:

  • If the options in Autoload of your table options weigh more than 1Mb worth it
  • If the Autoload Yes exceeds 60% it is worth it
  • If you have a table options great is worth it

The result is to reduce the WordPress queries to the table options in more than 90% in many cases, which results in better load times on your website. [19659138] To learn more

Here you have some resources to continue learning about this subject:

Car gando …

That may also help you:

Learn WordPress while having breakfast: Avoid installing and uninstalling plugins and themes

In this new video of the series created with SiteGround I explain a wonderful trick that I have been applying for years to client websites to prevent you from installing or uninstalling plugins and themes.

Inside video !

The code spoken of in the video is none other than this:

 define ('DISALLOW_FILE_MODS', true); 

Enjoy it!

The entry Learn WordPress while breakfast: Avoid installation and uninstallation of plugins and themes first published Fernando Tellado in WordPress Help . Do not copy content, do not say anything good about you to your readers.

Google Chrome will mark HTTP sites as non-secure, without SSL, do not you have your certificate yet? • WordPress Help

Let's see, that's not to scare, but the reality is that Google Chrome, since July 2018, in version 68 of your browser, has already announced that it will mark as not secure any web that still works in HTTP, without SSL certificate active, other than HTTPS.

And it will not be because I have warned, or explained how easy it is to install an SSL certificate but now you can run.

Moreover, if you read me, you will know that I usually recommend the SiteGround services a hosting company that was the first to offer free SSL certificates of type Let's Encrypt in Spain, so you have no excuse.

In fact, Siteground offers free SSL certificates by default in all contracts, in all plans not only in the more expensive than some companies do, and not only is it possible to install it, but if you hire any of your plans, you will have it installed and active in your domain. It's easier than ever!

SSL Wildcard

Moreover, it has recently added the new functionality of SSL certificates Wildcard also from Let's Encrypt that is, free.

The difference compared to the "Normal" SSL is that with the previous ones you had to install a certificate for each subdomain, but with the Wildcard SSL the subdomains will also use the same certificate as the domain.

For most webmasters it is simply more simplicity , elimination of repetitive tasks, although there will be cases – the least – where you do not want an SSL Wildcard (subdomains with applications that do not work in https).

How was it to install the free SSL of Let's Encrypt? 19659012] I already tell you that in each new contract you will find it installed and active but if for some reason you still have some domain running on HTTP in your SiteGround plan you have to do the following …

Sign in to your SiteGround customer panel

Go to the SiteGround website and click on "Log in"

Which will take you to the login screen, where you enter your username or email and password.

Access cPanel

Once in the customer panel access cPanel from the "Hosting" tab

Go to the Let's Encrypt tool

Once in cPanel go to the Let's Encrypt tool

Install your free SSL certificates

] Nothing easier …

In the window you will see the ones installed and your state. To install new simply choose the domain, the type of certificate and install it, in a few seconds you have it active.

Configure the SSL certificate

Before finishing, you have to take an action, configure the certificate, it is created , active, but your web will still not work in HTTPS by default.

For this, in new SSL certificate installations (in which installs by default SiteGround the redirect to HTTPS works without doing anything), you must open the HTTPS settings of the certificate

Below you will see a window with 2 options:

  1. Apply HTTPS : If you do not activate this your web will continue to work in HTTP (by default) and HTTPS (forcing the URL), so you must activate it yes or yes.
  2. Rewrite external links : Caution with this. What it does is redirect all URL of your website to its HTTPS version. It is great to avoid errors of mixed content but before you make sure that all the URLs of your site (including analytics codes, publicity, etc.) have a version, they work, in HTTPS, otherwise you could cause yourself a problem.

And already is, if you prefer you can also see how to do it in this video …

If you have more questions about everything SiteGround offers in all your shared hosting plans specialized in WordPress have created this new page in which they explain all the features, and that I advise you to visit.

Loading …

That may also help you: