I wrote an eBook about refactoring WordPress plugins. This book is for experienced WordPress developers who want to improve their plugins using modern best practices and adopt test-driven development.
It contains no foo and bar. All the example code is based on code in plugins I've worked on. Also, it is not very long.
https://pluginmachine.com/new-ebook-new-membership-plan/