I've never done any WP development, but my understanding is that WP core/internals are essentially OK, but plugins have gaping security holes. I think internals are messy because WP shares the PHP philosophy of avoiding major breaking changes but their front end tooling is probably less mature (because Jesus webpack, 4 major versions in as many years, wtf)
Anyway, I hope we have reason to be optimistic here, but it looks like the beginning of something awful