79% cf7-salesforce

Code Review | Integration for Salesforce and Contact Form 7, WPForms, Elementor, Ninja Forms

WordPress plugin Integration for Salesforce and Contact Form 7, WPForms, Elementor, Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: cf7-salesforce
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 70
  • Update frequency: every 26.7 days
  • Top authors: CRMPerks (77.14%)asif876 (24.29%)

Code review

54 tests

User reviews

58 reviews

Install metrics

2,000+ active /50,462 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.74MB] [CPU: ▼1.57ms] Passed 4 tests

A check of server-side resources used by Integration for Salesforce and Contact Form 7, WPForms, Elementor, Ninja Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3538.99 ▲3.06
Dashboard /wp-admin4.23 ▲0.8949.79 ▼13.50
Posts /wp-admin/edit.php4.28 ▲0.9351.09 ▲1.30
Add New Post /wp-admin/post-new.php6.75 ▲0.8697.56 ▲2.88
Media Library /wp-admin/upload.php4.09 ▲0.8639.70 ▲6.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 71 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_sales_accounts
wp_vxcf_sales
wp_vxcf_sales_log
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
vxcf_sales_version

Browser metrics Passed 4 tests

Integration for Salesforce and Contact Form 7, WPForms, Elementor, Ninja Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲5914.31 ▼0.041.61 ▲0.0239.97 ▲1.94
Dashboard /wp-admin2,211 ▲335.63 ▼0.0390.46 ▼22.1141.99 ▼1.28
Posts /wp-admin/edit.php2,116 ▲161.95 ▼0.0039.11 ▼0.1534.73 ▼1.69
Add New Post /wp-admin/post-new.php1,539 ▲1322.91 ▼0.33581.28 ▼119.9463.05 ▲10.72
Media Library /wp-admin/upload.php1,416 ▲224.25 ▲0.0598.22 ▼1.4340.47 ▼2.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_vxcf_sales_log
    • wp_vxcf_sales
    • wp_vxcf_sales_accounts
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • vxcf_sales_version
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
7 plugin tags: salesforce, wordpress salesforce, contact form 7 salesforce web to lead, contact form 7 salesforce, wpforms salesforce...

cf7-salesforce/cf7-salesforce.php 92% from 13 tests

"Integration for Salesforce and Contact Form 7, WPForms, Elementor, Ninja Forms" version 1.3.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 236 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin9,086 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP208279708,169
SVG100640
CSS52310271
JavaScript31206

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 139)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity194.14
▷ Minimum class complexity6.00
▷ Maximum class complexity503.00
Average method complexity7.62
▷ Minimum method complexity1.00
▷ Maximum method complexity139.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods203
▷ Static methods62.96%
▷ Public methods19797.04%
▷ Protected methods00.00%
▷ Private methods62.96%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
35 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/salesforce-crm-logo.png5.83KB3.02KB▼ 48.21%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-icons_ffeb33_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%