Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼363.23ms] Passed 4 tests
This is a short check of server-side resources used by Swift Mailer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.76 ▲7.77 |
Dashboard /wp-admin | 3.07 ▲0.01 | 39.81 ▼1.02 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 39.18 ▼6.48 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 83.50 ▼1,439.03 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.24 ▼6.40 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 176 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Swift Mailer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.93 ▲0.38 | 8.58 ▲0.04 | 44.03 ▼4.50 |
Dashboard /wp-admin | 2,962 ▲109 | 5.93 ▲0.10 | 140.13 ▲2.05 | 97.90 ▼2.20 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.01 | 64.31 ▼2.30 | 83.61 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,481 ▼561 | 18.22 ▼1.17 | 351.05 ▼19.15 | 103.87 ▼4.14 |
Media Library /wp-admin/upload.php | 1,778 ▲6 | 5.01 ▼0.00 | 148.85 ▼3.55 | 109.44 ▼6.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/swift-mailer/lib/swiftmailer_generate_mimes_config.php
- 133× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Swift_Mime_SimpleMimeEntity' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Mime/Attachment.php:16
- > PHP Fatal error
Uncaught Error: Class 'Swift_SwiftException' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/IoException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Swift_Encoder' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Mime/ContentEncoder.php:16
- > PHP Fatal error
Uncaught Error: Class 'Swift_Events_EventObject' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Events/SendEvent.php:16
- > PHP Fatal error
Uncaught Error: Class 'Swift_Mime_Headers_UnstructuredHeader' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Mime/Headers/ParameterizedHeader.php:16
- > PHP Fatal error
Uncaught Error: Class 'Swift_DependencyContainer' not found in wp-content/plugins/swift-mailer/lib/dependency_maps/message_deps.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Swift_Plugins_Logger' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Plugins/Loggers/EchoLogger.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Swift_Mime_HeaderSet' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Mime/SimpleHeaderSet.php:16
- > PHP Fatal error
Uncaught Error: Class 'Swift_Mime_Headers_AbstractHeader' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Mime/Headers/UnstructuredHeader.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Swift_Events_EventListener' not found in wp-content/plugins/swift-mailer/lib/classes/Swift/Events/CommandListener.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% 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
2 plugin tags: mail, swift mailer
swift-mailer/index.php 92% from 13 tests
"Swift Mailer" version 5.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("swift-mailer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected10,385 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 172 | 2,336 | 9,561 | 10,385 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 47 | |
Traits | 0 | |
Classes | 114 | |
▷ Abstract classes | 5 | 4.39% |
▷ Concrete classes | 109 | 95.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,096 | |
▷ Static methods | 33 | 3.01% |
▷ Public methods | 889 | 81.11% |
▷ Protected methods | 121 | 11.04% |
▷ Private methods | 86 | 7.85% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 45 | |
▷ Global constants | 3 | 6.67% |
▷ Class constants | 42 | 93.33% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.88KB | 21.96KB | 0.00% |