When working on various solutions that are based on WordPress, you will most certainly need to extend some part of a plugin. But what if that plugin is not really extensible? How should we solve that?

When working on various solutions that are based on WordPress, you will most certainly need to extend some part of a plugin. But what if that plugin is not really extensible? How should we solve that?