How to identify which php file a plugin is using on page load?

I am not a real dev, but which helps me in some cases: “Query Monitor”.
After all, I think you have to start searching backward, step by step and dive into each function.

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