Swift Performance is a cache and performance booster plugin. It can speed up your site, improve SEO scores and user experience.
Prioritized issue groups from the latest Plugin Check scan
I18n
1,726
4 issue groups
Security
1,300
11 issue groups
Maintainability
563
10 issue groups
Sample message
Mismatched text domain. Expected 'swift-performance-lite' but got 'luv-framework'.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<script data-dont-merge=\"\">(function(){document.addEventListener('DOMContentLoaded',function(){requestAnimationFrame(function e(){var t=document.querySelectorAll('.elementor-background-video-embed:not([data-swift-iframe-lazyload]');for(var n in t)('object'==typeof HTMLElement?t[n]instanceof HTMLElement:t[n]&&'object'==typeof t[n]&&null!==t[n]&&1===t[n].nodeType&&'string'==typeof t[n].nodeName)&&void 0===t[n].dataset.src&&(t[n].setAttribute('data-src',t[n].getAttribute('src')),t[n].setAttribute('data-swift-elementor-yt-lazyload','true'),t[n].setAttribute('src',''));requestAnimationFrame(e)})});function iv(a){if(typeof a.getBoundingClientRect!=='function'){return false}var b=a.getBoundingClientRect();return(b.bottom+{$preload_point}>=0&&b.right+{$preload_point}>=0&&b.top-{$preload_point}<=(window.innerHeight||document.documentElement.clientHeight)&&b.left-{$preload_point}<=(window.innerWidth||document.documentElement.clientWidth))}function ll(){var a=document.querySelectorAll('[data-swift-elementor-yt-lazyload]');for(var i in a){if(iv(a[i])){a[i].onload=function(){window.dispatchEvent(new Event('resize'));};a[i].setAttribute('src',(typeof a[i].dataset.src != 'undefined' ? a[i].dataset.src : a[i].src));a[i].setAttribute('style',a[i].dataset.style);a[i].removeAttribute('data-swift-elementor-yt-lazyload')}}requestAnimationFrame(ll)}requestAnimationFrame(ll)})();</script>"'.
Sample message
Detected usage of a non-sanitized input variable: $_COOKIE['spcid']
Sample message
$_COOKIE['spcid'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Processing form data without nonce verification.
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$$this".
Sample message
Detected usage of a possibly undefined superglobal array index: $_GET['cc']. Check that the array index exists before using it.
Sample message
A function call to __() 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
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Processing form data without nonce verification.
Sample message
Use placeholders and $wpdb->prepare(); found $hash_in
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "admin_head".
Sample message
Missing $domain parameter in function call to __().
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$d, %3$s, %4$s, %5$s", but got "%s, %d, %s, %s, %s" in 'If you run out of credit, you will not be able to use Image Optimizer. You have %s%d%s images which are not optimzed yet. Upgrade to Swift Performance Pro to %sget unlimited Image Optimizer!%s'.
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable {$__in} at "warmup WHERE id IN ({$__in})"
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.
Sample message
Unescaped parameter $__in used in $wpdb->get_results()\n$__in assigned unsafely at line 460.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '": {$pattern}"'.
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: is_writable().
Sample message
Function "delete_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 4.0.0.
Sample message
Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.
Not analyzed yet.
First score snapshot
v2.3.7.3
22
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 22 | 3,671 | 2,346 | 1,325 | v2.3.7.3 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.