Ukraine is in no way a functioning democracy.
And secondly, they were well on their way to keep improving and follow the path of the other ex-soviet states that are now part of the EU.
You would be shocked at how often votes are outright bought by candidates and their supporters and how much strong arming is done to ensure certain areas vote for a specific party.
This doesn’t mean I support Russia - I live in a border country (Estonia) myself.
[1] https://www.euronews.com/2019/07/20/exhibition-highlights-vo...
Still better now (5.42) than Russia today (2.28) or even back in 2006 (Russia was 5.02, though back then Ukraine was 6.94).