Unofficial Hacker News companion — get notified on comment replies, and more.

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan (opens external site)

284 points by xadz 3 days ago | adamgreenough.net | 132 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. Regarding the 'tower of plugins', there be dragons!

    Imagine a simple home page carousel. You need something that has mostly CSS and about three lines of script, however, you have some 'mega carousel' plugin that uses dozens of scripts and thousands of lines of CSS. You need just one carousel but you have this plugin that does 150 types of carousel, with IE6 shims, for the lols.

    The plugin will have the lamest code, with no guard clauses, just a mountain of 'if then else' spaghetti.

    Add in a dozen other plugins of this calibre and multiply this by millions of blogs, and you have an unknown number of vulnerable websites. Sadly the plugins won, first time round, rather than bespoke development by skilled developers.

    Replies (1)
    1. Well, agents are quite good to replace those monstrosity carousels by something that will provide the tiny slice of features actually used, fetching every carousel from the 10 years of posts in DB and asserting that rendering through the new tiny plugin produces the exact same output. But it's a matter of will. Every site one by one can be upgraded and salvaged this way if someone agrees to pay at some point. One could say that the tower of plugins were a "great" way for non-technical folks to go to a desired result that can then be rebuilt in a lean way while preserving look & feel..