I was wondering recently as to why everybody says you should avoid Singletons, so I read about it and it makes sense.
But I have noticed that a lot of popular Wordpress plugins are almost going Full Singletons in their design pattern.
For a developer trying to learn how to code properly by reading code of plugins written by experienced developers, it is very confusing why these plugins overused Singleton pattern. ie.: Woocommerce and much more.
Is there a benefit to use the Singleton pattern in some cases?