74% woo-salesforce-plugin-crm-perks

Code Review | Integration for WooCommerce and Salesforce

WordPress plugin Integration for WooCommerce and Salesforce scored74%from 54 tests.

About plugin

  • Plugin page: woo-salesforce-pl...
  • Plugin version: 1.6.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 47
  • Update frequency: every 44.4 days
  • Top authors: CRMPerks (78.72%)asif876 (23.4%)

Code review

54 tests

User reviews

43 reviews

Install metrics

300+ active /11,149 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▲0.24ms] Passed 4 tests

A check of server-side resources used by Integration for WooCommerce and Salesforce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3340.95 ▲3.16
Dashboard /wp-admin3.63 ▲0.3249.98 ▼1.87
Posts /wp-admin/edit.php3.74 ▲0.3951.86 ▲7.79
Add New Post /wp-admin/post-new.php6.21 ▲0.3290.80 ▼7.11
Media Library /wp-admin/upload.php3.54 ▲0.3238.16 ▲6.77

Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: 2 new tables, 7 new options
New tables
wp_vxc_sales_accounts
wp_vxc_sales_log
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
vxc_sales_pro_version
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Integration for WooCommerce and Salesforce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.28 ▼0.071.71 ▼0.1238.13 ▼7.47
Dashboard /wp-admin2,220 ▲455.54 ▼0.0487.44 ▼31.7840.03 ▼5.11
Posts /wp-admin/edit.php2,126 ▲261.98 ▼0.0237.75 ▲3.8136.57 ▼0.29
Add New Post /wp-admin/post-new.php1,544 ▲923.28 ▼1.82690.36 ▲56.9867.10 ▼12.47
Media Library /wp-admin/upload.php1,419 ▲164.19 ▲0.0397.49 ▲1.1341.75 ▼1.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_vxc_sales_log
    • wp_vxc_sales_accounts
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • vxc_sales_pro_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-salesforce-plugin-crm-perks/templates/crm-order-box.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: salesforce add-on, woocommerce salesforce, woocommerce salesforce integration, salesforce, woocommerce integration with salesforce

woo-salesforce-plugin-crm-perks/woo-salesforce-plugin-crm-perks.php Passed 13 tests

The main file in "Integration for WooCommerce and Salesforce" v. 1.6.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Integrates WooCommerce with Salesforce allowing new orders to be automatically sent to your Salesforce account.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,299 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP186748637,467
SVG100640
CSS43712186
JavaScript30336

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 135)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity211.67
▷ Minimum class complexity9.00
▷ Maximum class complexity503.00
Average method complexity8.92
▷ Minimum method complexity1.00
▷ Maximum method complexity135.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods159
▷ Static methods42.52%
▷ Public methods15798.74%
▷ Protected methods00.00%
▷ Private methods21.26%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
32 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/filtered.png1.47KB0.48KB▼ 67.40%
images/created.png1.52KB0.50KB▼ 67.24%
css/images/ui-icons_88a206_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
images/failed.png1.54KB0.48KB▼ 68.88%