I'm glad WW turned out great, but DC had a series of duds compared to Marvel recently. That certainly doesn't take away from the excellent Nolan trilogy, but they've struggled to counter Marvel's recent success. Heck, they can't even claim to be the more mature universe, what with Logan and Deadpool but going dark in very different ways.
One of the big issues I see is that doing a serious film is tougher than a lighthearted adventure. Then you throw in superheroes, which are a bit silly to begin with, and you get an even more difficult formula. It only seems to work when you get a really stellar performance from an actor, like in The Dark Knight and Logan.