Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/swiftchat/includes/swift_sales_integration_plugin_class.php+165
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.06ms] Passed 4 tests
Analyzing server-side resources used by SwiftChat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.10 ▼33.46 |
Dashboard /wp-admin | 2.12 ▼1.23 | 6.23 ▼61.49 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.10 ▼39.51 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.75 ▼89.79 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.38 ▼29.24 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
ssi_web_id |
ssi_token |
db_upgraded |
theysaidso_admin_options |
ssi_account_id |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SwiftChat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.77 ▲0.41 | 1.94 ▲0.13 | 48.84 ▲5.12 |
Dashboard /wp-admin | 2,223 ▲38 | 5.85 ▼0.19 | 98.40 ▼4.13 | 42.56 ▼0.76 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▼0.03 | 36.14 ▼1.18 | 30.52 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.38 ▲0.19 | 692.55 ▲4.03 | 54.08 ▼7.11 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.17 ▼0.03 | 98.35 ▼7.98 | 44.56 ▼3.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/swiftchat/includes/swift_sales_integration_plugin_class.php+165
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- ssi_account_id
- ssi_web_id
- ssi_token
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: swiftsales, analytics, swiftchat
swiftchat/ssi_plugin.php 77% from 13 tests
Analyzing the main PHP file in "SwiftChat" version 20200309...
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("swiftchat.php" instead of "ssi_plugin.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "20200309...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin426 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 11 | 240 |
JavaScript | 1 | 15 | 1 | 152 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin