Move plugin upgrade needed check before loaded check

Ensures we capture display appropriate error message to the user. Before
that, they would get the 'not loaded, dependencies not met' message
instead of the 'upgrade needed' one.
Add plugin basename to error messages

Helps users identifying what plugin is having issues.

Fixes #17368