Attach files to any post or page and let WP Attachments list them for you, with icons, file sizes and a download counter.
Prioritized issue groups from the latest Plugin Check scan
Security
42
9 issue groups
Maintainability
26
9 issue groups
I18n
3
3 issue groups
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"'>{$name}</a>"'.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "wpa_custom_admin_css".
Sample message
$_POST['style'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Processing form data without nonce verification.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Detected usage of a non-sanitized input variable: $_REQUEST['alignment']
Sample message
Processing form data without nonce verification.
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "WP Attachments" - contains the restricted term "wp" which cannot be used at all in your plugin name.
Sample message
Use of a direct database call is discouraged.
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WPA_Download_Counter".
Sample message
Detected usage of a possibly undefined superglobal array index: $_POST['attachment_id']. Check that the array index exists before using it.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $placeholders at \t\t\t AND post_parent IN ($placeholders)\n
Sample message
Replacement variables found, but no valid placeholders found in the query.
Sample message
Detected usage of meta_key, possible slow query.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$WP_Attachments".
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
Sample message
Resource version not set in call to wp_enqueue_style(). This means new versions of the style may not always be loaded due to browser caching.
Sample message
Missing $domain parameter in function call to __().
Sample message
A function call to esc_html__() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Sample message
The $text parameter must be a single text string literal. Found: 'The file "%1$s" is already attached to "%2$s" (ID: %3$s).' . "\n"\n . 'Attaching it here will detach it from its current location.' . "\n\n"\n . 'Do you want to proceed?'
Potential connections found in static code analysis.
Outbound calls
7
External assets
0
Incoming endpoints
0
No external asset domains detected.
No public endpoints detected.
2 score snapshots
v6.0.3
41
Latest
v5.3.4
39
Score
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 41 | 71 | 25 | 46 | v6.0.3 | 2.1.0 |
| 39 | 93 | 49 | 44 | v5.3.4 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.