by seriocomic · 6y ago · 0 comments
I've taken two different approaches: 1. Maintain a local WordPress instance that builds the site using all the theme/plugin magic that WordPress is famous for, but have a static-export of that into Github -> Netlify.
2. Small sites being powered by Cloudflare Workers - using pure JS.
The jump to React.js / Vue / Go / Ruby et.al for an old PHP/HTML/CSS hack like me was too hard (and I tried them all!), so I settle for WordPress (the devil I know) for the build/back-end, and incorporate and embrace static on the front end. This separation is key - in my mind - for speed and security.
I think one of WordPress' biggest issue is that I have not really found a good how to to really set it up (they advertise their "5 minute deploy", but it leaves a lot of things lacking). If I set it up, I have a series of articles I used to set it up.
The other issue I've anecdotally seen is when someone installs a bunch of plug ins then gets into a dependency hell when trying to update.
The people (probably like me) who would call WP the devil is people who have had to maintain 15 year old intertwined WP instances riddled with outdated portions of the platform, insecure hand-coded modifications, terribly functioning custom plugins, horrible data hygiene for exporting and re-appropriating content, and terrible, clunky infrastructure setups. WordPress makes all of those easier, and encourages them when it’s anything more than a simple blog or product page or something. It’s easy for new features to be requested and sold and horrible to sell fixing any of the above problems. It goes on deaf ears once people get used to the web products just being there. And once clients get used to the blog interface, you dare not recommend any change no matter how good for the business.
I’ve seen smart, talented people just give up in the face of that kind of monstrosity, shelve all their plans for improvement and just buy into the duct-tape patch jobs of yore and developing one-off plugins for every request because it’s fast and needed to be done yesterday because something else has been requested or broken.
After my rambling let me reiterate that Wordpress is great for its intended application. But it is horrible for the extrapolated purpose many companies and teams have bent, twisted, and surgically manipulated it to be used. It’s not Wordpress’s fault exactly. It’s those who’ve recommended wp as a tool to solve problems it wasn’t meant for, and industry that has built up around that to make it appear as if it’s a viable solution.
The plugin ecosystem however opens you up once again: here the devil is in the details. Every plugin you install might be the giant blinking red light that says: hack me, steal my data, etc.
On balance though wordpress is pretty good these days.
In truth, most software at any given time probably has serious security vulnerabilities that just aren't as obviously exploitable, and I wouldn't say that the volume of published exploits related to Wordpress is indicative of a poorly managed or written piece of software.
The demo site uses Algolia though https://mmistakes.github.io/minimal-mistakes/
Comments, contact forms and other features that "creates" content are more difficult.
https://duckduckgo.com/?q=site%3Ayour-site.tld+the+user+search+stringBut they assume some context, which I’ll give you: At compile time, Gatsby is capable of making a list of all the posts on your site that you can query with GraphQL (at compile time) or use in the JS of your pages. In fact, saying it makes a list of all “posts” is selling it short, because Gatsby can store and manipulate arbitrary data structures. So if you’ve got a Documentation site with a table of contents and three levels of content within it... that’s all queryable at compile time too. It’s extremely flexible.
Now, it’s not like your pages will actually be using GraphQL to query a DB when the user arrives on the page: all the data is basically “baked in” to the page when it is compiled. But for a static site where the “data” only changes when you add/change some content and recompile, this works really well.