Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.97MB] [CPU: ▼62.74ms] Passed 4 tests
This is a short check of server-side resources used by SwiftSales - Live Chat, CRM & Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.25 ▼42.24 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.52 ▼59.30 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.12 ▼47.11 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.74 ▼102.29 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.17 ▼32.17 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
ssi_account_id |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
ssi_web_id |
ssi_token |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SwiftSales - Live Chat, CRM & Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.35 ▼0.13 | 1.69 ▼0.03 | 39.61 ▼3.18 |
Dashboard /wp-admin | 2,225 ▲51 | 5.54 ▼0.07 | 84.63 ▼6.37 | 72.84 ▲29.64 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.00 ▼0.03 | 38.78 ▲2.75 | 34.10 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,714 ▲186 | 22.63 ▼0.42 | 735.97 ▲47.45 | 51.39 ▼13.08 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.20 ▲0.01 | 106.44 ▼0.01 | 61.71 ▲18.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- ssi_account_id
- ssi_web_id
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- ssi_token
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #8 (screenshot-8.jpg) image not found
swiftsales/ssi_plugin.php 69% from 13 tests
This is the main PHP file of "SwiftSales - Live Chat, CRM & Analytics" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("swiftsales.php" instead of "ssi_plugin.php")
- Git Repository: Please do not include Git repositories in your plugin
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected630 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 63 | 13 | 270 |
CSS | 1 | 25 | 1 | 207 |
JavaScript | 1 | 18 | 1 | 151 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 27.27% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/SwiftSales.png | 70.00KB | 35.67KB | ▼ 49.04% |