$plugins is the name of the array
Add missing properties to avoid Warning messages
Fix error message not being sent.
Remove updated and not_updated.

We are already sending this data on each plugin
Return an array of plugins directly