How to extend a plugin?

I need add some new features to a old plane plugin, but the plugin has stopped maintenance.
I think it is better to reused the exist codes, Is it possible to extend a plugin instead of extend MetricsPanelCtrl/PanelCtrl?
If so, how to do it?

better to fork it and make your changes