Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼5.32ms] Passed 4 tests
An overview of server-side resources used by SwiftERM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 45.20 ▲4.52 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.19 ▲0.05 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.90 ▼1.63 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 88.94 ▼21.63 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 38.29 ▲1.95 |
SwiftERM API Settings /wp-admin/options-general.php?page=swifterm | 3.39 | 34.25 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_swift_orders |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SwiftERM
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.74 ▲0.18 | 2.00 ▲0.18 | 44.65 ▼0.41 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼1.05 | 112.89 ▲4.94 | 45.53 ▲0.35 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.06 ▲0.07 | 32.71 ▼12.60 | 35.58 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,532 ▼12 | 21.98 ▲3.38 | 674.46 ▲15.45 | 51.48 ▼4.33 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.32 ▼0.05 | 98.87 ▼13.71 | 45.77 ▼2.92 |
SwiftERM API Settings /wp-admin/options-general.php?page=swifterm | 792 | 2.02 | 26.08 | 29.83 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/swifterm/templates/version.php
- > /wp-content/plugins/swifterm/includes/SwiftAPI/index.php
- > /wp-content/plugins/swifterm/templates/product-feed.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_Product.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_Subscription.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_Ping.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_Version.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_ViewMail.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_Cart.php:8
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_OrderPackage.php:3
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_EmailPackage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/swifterm/includes/class-swifterm-order-feed.php:30
- > PHP Fatal error
Uncaught Error: Class 'SwiftAPI_Request' not found in wp-content/plugins/swifterm/includes/SwiftAPI/SwiftAPI_Request_PastOrder.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: email marketing, swifterm, free trial
swifterm/swifterm.php Passed 13 tests
This is the main PHP file of "SwiftERM" version 1.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
SwiftERM intelligent eMail remarketing for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,026 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 517 | 361 | 1,475 |
HTML | 2 | 34 | 0 | 542 |
CSS | 1 | 0 | 0 | 6 |
INI | 1 | 0 | 0 | 3 |
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.33 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 31 | 40.79% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 1 | 1.32% |
▷ Private methods | 6 | 7.89% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 4 | 15.38% |
▷ Class constants | 22 | 84.62% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/swifterm_logo_152x66.png | 7.60KB | 3.97KB | ▼ 47.84% |