Findings
Among the issues identified are:
- Causes PHP notices – WP deprecation warnings, among other things
- A lack of HTML escaping
- $wpdb is only used once, but that invocation contains an SQL injection vulnerability which can be exploited by admins or anybody able to make an admin visit a certain address
Reason for the 'Potentially unsafe' result
The plugin contains or is likely to contain a vulnerability which could be exploited by an end user and which would compromise the site’s confidentiality, integrity or availability:
SQL injection.