Wordpress doesn't really have a place in a modern toolchain.
You want a blog? Pick a static website generator (eg. Cobalt, Zola, etc) You want a CMS? Pick a CMS (eg. Keystone, Payload) You want an ecommerce? Pick an ecommerce (eg. Sylius)
Wordpress used to be the only barely decent option, it became insanely popular and people are still using it out of inertia, ignoring a massive list of crappy defaults and security issues they need to patch up.