79% gf-salesforce-crmperks

Code Review | WP Gravity Forms Salesforce

WordPress plugin WP Gravity Forms Salesforce scored79%from 54 tests.

About plugin

  • Plugin page: gf-salesforce-crm...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 49
  • Update frequency: every 37.3 days
  • Top authors: CRMPerks (83.67%)asif876 (18.37%)

Code review

54 tests

User reviews

114 reviews

Install metrics

2,000+ active /54,602 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.43MB] [CPU: ▼6.70ms] Passed 4 tests

An overview of server-side resources used by WP Gravity Forms Salesforce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4343.29 ▲1.95
Dashboard /wp-admin3.80 ▲0.4546.71 ▼16.47
Posts /wp-admin/edit.php3.85 ▲0.4946.95 ▼3.62
Add New Post /wp-admin/post-new.php6.32 ▲0.4384.18 ▼8.64
Media Library /wp-admin/upload.php3.65 ▲0.4240.92 ▲6.73

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_salesforce_accounts
wp_vxg_salesforce_log
wp_vxg_salesforce
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
vxg_salesforce_pro_version

Browser metrics Passed 4 tests

WP Gravity Forms Salesforce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.32 ▼0.051.68 ▲0.0444.20 ▲0.72
Dashboard /wp-admin2,217 ▲375.64 ▼0.0187.85 ▼9.4041.55 ▼0.75
Posts /wp-admin/edit.php2,126 ▲261.99 ▼0.0134.63 ▼1.3636.09 ▲1.03
Add New Post /wp-admin/post-new.php1,553 ▲2725.12 ▲1.57645.30 ▼80.2972.72 ▲20.21
Media Library /wp-admin/upload.php1,428 ▲284.18 ▼0.13101.67 ▼4.2744.38 ▼2.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 3 tables
    • wp_vxg_salesforce
    • wp_vxg_salesforce_accounts
    • wp_vxg_salesforce_log
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • vxg_salesforce_pro_version
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: gravity forms salesforce, gravity forms salesforce integration, gravity forms salesforce crm, gravity forms salesforce add on, salesforce wordpress gravity forms...

gf-salesforce-crmperks/gf-salesforce-crmperks.php 92% from 13 tests

This is the main PHP file of "WP Gravity Forms Salesforce" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 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 detected8,009 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP207991,0668,003
JavaScript2105
CSS1001

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 134)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity154.25
▷ Minimum class complexity6.00
▷ Maximum class complexity410.00
Average method complexity7.48
▷ Minimum method complexity1.00
▷ Maximum method complexity134.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods188
▷ Static methods31.60%
▷ Public methods17894.68%
▷ Protected methods00.00%
▷ Private methods105.32%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/deleted.png0.48KB0.33KB▼ 31.03%
images/failed.png1.54KB0.48KB▼ 68.88%
images/active0.png0.22KB0.18KB▼ 16.67%
images/Android.png0.56KB0.62KB0.00%
images/updated.png1.53KB0.50KB▼ 67.37%