Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲3.46MB] [CPU: ▲20.87ms] Passed 4 tests
Server-side resources used by Swift Performance Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.85 ▲3.38 | 70.85 ▲29.73 |
Dashboard /wp-admin | 6.77 ▲3.47 | 71.77 ▲18.42 |
Posts /wp-admin/edit.php | 6.89 ▲3.53 | 74.70 ▲25.55 |
Add New Post /wp-admin/post-new.php | 9.38 ▲3.49 | 110.24 ▲9.76 |
Media Library /wp-admin/upload.php | 6.72 ▲3.49 | 73.11 ▲37.26 |
Swift Performance /wp-admin/tools.php?page=swift-performance | 6.92 | 122.00 |
Server storage [IO: ▲8.59MB] [DB: ▲0.02MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- You have illegally modified 3 files (8.48KB) outside of "wp-content/plugins/swift-performance-lite/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/swift-performance-loader.php
- (new file) .htaccess_swift_backup
- (modified) .htaccess
Filesystem: 595 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_swift_performance_warmup |
New WordPress options |
---|
wp_swift_performance_db_version |
swift_performance_options |
swift_performance_autocomplete |
swift_performance_messages |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
category_children |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Swift Performance Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲128 | 14.39 ▲0.04 | 3.91 ▲1.88 | 28.75 ▼17.61 |
Dashboard /wp-admin | 2,247 ▲70 | 5.64 ▲0.00 | 97.05 ▲6.86 | 85.67 ▲46.34 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.11 ▲0.12 | 38.82 ▼1.49 | 41.86 ▲6.12 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 22.96 ▼0.46 | 699.90 ▲111.63 | 58.98 ▲12.23 |
Media Library /wp-admin/upload.php | 1,477 ▲77 | 4.31 ▲0.07 | 101.99 ▲6.64 | 91.48 ▲51.28 |
Swift Performance /wp-admin/tools.php?page=swift-performance | 1,861 | 2.61 | 49.68 | 110.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- swift_performance_autocomplete
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 18× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/swift-performance-lite/templates/whitelabel/image-optimizer.php
- > /wp-content/plugins/swift-performance-lite/templates/dashboard.php
- > /wp-content/plugins/swift-performance-lite/templates/image-optimizer.php
- > /wp-content/plugins/swift-performance-lite/templates/whitelabel/dashboard.php
- > /wp-content/plugins/swift-performance-lite/modules/cache/ajaxify.php
- > /wp-content/plugins/swift-performance-lite/modules/image-optimizer/templates/modal.tpl.php
- > /wp-content/plugins/swift-performance-lite/templates/whitelabel/header.php
- > /wp-content/plugins/swift-performance-lite/templates/db-optimizer.php
- > /wp-content/plugins/swift-performance-lite/templates/whitelabel/db-optimizer.php
- > /wp-content/plugins/swift-performance-lite/modules/image-optimizer/templates/dashboard.tpl.php
- 132× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/swift-performance-lite/modules/image-optimizer/image-table.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Swift_Performance' not found in wp-content/plugins/swift-performance-lite/modules/cache/cache.php:2623
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/swift-performance-lite/includes/luv-framework/templates/tpl.number.php:1
- > PHP Notice
Undefined variable: classes in wp-content/plugins/swift-performance-lite/includes/luv-framework/templates/tpl.number.php on line 1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/swift-performance-lite/includes/cache-status/cache-status.php on line 3
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/swift-performance-lite/includes/luv-framework/templates/tpl.switch.php on line 1
- > PHP Notice
Undefined variable: classes in wp-content/plugins/swift-performance-lite/templates/luv-framework/pro-only.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/swift-performance-lite/includes/luv-framework/templates/tpl.sortable.php:1
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/swift-performance-lite/includes/luv-framework/templates/tpl.license.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/swift-performance-lite/includes/classes/class.third-party.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: seo, speed, optimizer, cache, cdn...
swift-performance-lite/performance.php 85% from 13 tests
The main PHP script in "Swift Performance Lite" version 2.3.6.15 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("swift-performance-lite.php" instead of "performance.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected90,835 lines of code in 457 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 165 | 5,311 | 3,776 | 38,889 |
PHP | 90 | 2,686 | 2,970 | 19,003 |
HTML | 128 | 2,527 | 8 | 13,488 |
CSS | 68 | 1,720 | 328 | 9,191 |
SVG | 4 | 0 | 0 | 6,243 |
PO File | 2 | 1,387 | 1,759 | 4,021 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 71.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 609.00 |
Average method complexity | 5.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 565 | |
▷ Static methods | 242 | 42.83% |
▷ Public methods | 522 | 92.39% |
▷ Protected methods | 33 | 5.84% |
▷ Private methods | 10 | 1.77% |
Functions | 110 | |
▷ Named functions | 10 | 9.09% |
▷ Anonymous functions | 100 | 90.91% |
Constants | 77 | |
▷ Global constants | 72 | 93.51% |
▷ Class constants | 5 | 6.49% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.21MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/background.png | 1,026.50KB | 390.09KB | ▼ 62.00% |
images/logo.png | 15.89KB | 9.68KB | ▼ 39.07% |
images/known-pages.png | 1.31KB | 1.56KB | 0.00% |
images/threads.png | 2.02KB | 1.70KB | ▼ 15.67% |
images/logo-lite.png | 19.83KB | 9.70KB | ▼ 51.11% |