I wrote my plugin. How to display the result of the plugin’s function to sidebar (widget?)?

I got the following tutorial a very good start for a widget creation:

And I used the tutorial and made my own first widget for my plugin. You can get all my code here in Github.

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