10% swiftsales

Code Review | SwiftSales - Live Chat, CRM & Analytics

WordPress plugin SwiftSales - Live Chat, CRM & Analytics scored10%from 54 tests.

About plugin

  • Plugin page: swiftsales
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2023
  • Latest release: Apr 28, 2023
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: swiftsales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.25 ▼42.24
Dashboard /wp-admin2.05 ▼1.305.52 ▼59.30
Posts /wp-admin/edit.php2.05 ▼1.315.12 ▼47.11
Add New Post /wp-admin/post-new.php2.05 ▼3.847.74 ▼102.29
Media Library /wp-admin/upload.php2.05 ▼1.185.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.35 ▼0.131.69 ▼0.0339.61 ▼3.18
Dashboard /wp-admin2,225 ▲515.54 ▼0.0784.63 ▼6.3772.84 ▲29.64
Posts /wp-admin/edit.php2,137 ▲372.00 ▼0.0338.78 ▲2.7534.10 ▼3.46
Add New Post /wp-admin/post-new.php1,714 ▲18622.63 ▼0.42735.97 ▲47.4551.39 ▼13.08
Media Library /wp-admin/upload.php1,439 ▲394.20 ▲0.01106.44 ▼0.0161.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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP66313270
CSS1251207
JavaScript1181151
SVG2002

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 code0.11
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1672.73%
▷ Protected methods00.00%
▷ Private methods627.27%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/images/SwiftSales.png70.00KB35.67KB▼ 49.04%