clean up _search() helper:

* replace <plugin>/<theme> in synopsis with <search>
* check is_wp_error() before using $api
* rename $data to $items
* remove unused code for --interactive; no point supporting it if it's not functional yet

see #630