Live data from Hacker News

WordPress usage worldwide

github.com

31–40 of 48 posts

Re: WordPress usage worldwide

#31

The Readme says "Warning that it can take a long time: between 20 to 30 days." How in the world can it take so long time? The csv file seems to be 24mb in size and the computation performed can't be that advanced. Did the author do something seriously wrong?

> To run it you'll need either 2Gb of RAM

What? I guess this is a toy program used to learn clojure or sth - it even uses sed for line parsing. A 10-line php script could do the same with a few MB of RAM

Re: WordPress usage worldwide

#32
The test is likely to be under-reporting WordPress installations as it stands.

The script seems to detect a WordPress site by looking for a meta generator tag containing WordPress:

https://github.com/tanrax/calculate-wordpress-usage/blob/5aa...

It's pretty common to remove that meta tag — popular WordPress theme frameworks like Genesis do it by default.

A more reliable test would be to look for additional strings in the source that point to the use of WordPress, such as “wp-content” and “wp-includes”.

A faster way that avoids string searches would be to send an HTTP head request to `/wp-login.php` and check for:

Set-Cookie: wordpress_test_cookie

(/wp-login.php doesn't always appear in the root directory and it's not always accessible to all IPs, but that setup is most common).

Re: WordPress usage worldwide

#34
post #17

This is a pretty amazing feat. The top 1 million sites includes many who have the money to afford custom sites and yet Wordpress is still almost 1/5 of sites.

WordPress is the software HN loves to hate, but while it certainly has plenty of warts it's also a very flexible, pliable system for building the kinds of web sites that most people want to build. It'll never win any architectural beauty contests, but market share is driven by utility, not beauty. And WordPress can be very useful software.

Re: WordPress usage worldwide

#37

The test is likely to be under-reporting WordPress installations as it stands. The script seems to detect a WordPress site by looking for a meta generator tag containing WordPress: https://github.com/tanrax/calculate-wordpress-usage/blob/5aa... It's pretty common to remove that meta tag — popular WordPress theme frameworks like Genesis do it by default. A more reliable test would be to look for additional strings in…

It'd be interesting to do all that you said (and more) and then determine what's the combined amount, as well as what % of sites do some sort of obfuscation... and why?

Re: WordPress usage worldwide

#38

The Readme says "Warning that it can take a long time: between 20 to 30 days." How in the world can it take so long time? The csv file seems to be 24mb in size and the computation performed can't be that advanced. Did the author do something seriously wrong?

Performing a web request to 1M targets takes a long time.

However, this is an [embarassingly parallel](https://en.wikipedia.org/wiki/Embarrassingly_parallel) problem, and renting out some machines would speed it up.

Re: WordPress usage worldwide

#40
post #21
post #16

Earlier quoted context omitted.

W3techs profiles the top 10 million sites which shows a percentage of 34% [1]. You might be right. [1] https://w3techs.com/technologies/overview/content_management...

The article says: "Afirman que usan una base de datos de 10 millones de dominios sacadas directamente de Alexa, pero cuando vas a la fuente no existe. Alexa solo proporcionan 1 millón." Translation: They [W3techs] say they use a database of 10 million domains taken directly from Alexa, but when you inspect the source, it doesn't exist. Alexa provides only 1 million.

Alexa provides a list of the top 1m... but you can also page through the top sites (100 at a time) using their 'top sites' api... and I don't see a limit on that.

Edit: confirmed by aws: https://forums.aws.amazon.com/thread.jspa?threadID=167457

Post reply on HN