Can a plugin be used to contain all custom functions to extend other plugins

If your plugin customise functionaity of other plugins through hooks (actions and filters) the answer is Yes.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)