89% wp-salesforce

Code Review | Salesforce Integration for WordPress

WordPress plugin Salesforce Integration for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: wp-salesforce
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: Oct 18, 2023
  • Number of updates: 16
  • Update frequency: every 140.0 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /6,490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by Salesforce Integration for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.91 ▲1.33
Dashboard /wp-admin3.34 ▼0.0149.21 ▼10.66
Posts /wp-admin/edit.php3.45 ▲0.0945.41 ▼1.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.40 ▼10.04
Media Library /wp-admin/upload.php3.26 ▲0.0336.70 ▲3.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
WpLeadBuilderProActivatedPlugin

Browser metrics Passed 4 tests

This is an overview of browser requirements for Salesforce Integration for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.17 ▼0.552.06 ▲0.1243.64 ▲2.71
Dashboard /wp-admin2,198 ▲185.68 ▲0.0484.44 ▼2.1136.51 ▼4.08
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0133.90 ▼1.8735.64 ▼3.81
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▼0.18664.08 ▲2.7559.40 ▼1.14
Media Library /wp-admin/upload.php1,397 ▼64.17 ▼0.03100.66 ▲2.4740.79 ▼2.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • WpLeadBuilderProActivatedPlugin
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (WP Salesforce configuratios.)
You can look at the official readme.txt

wp-salesforce/index.php 85% from 13 tests

This is the main PHP file of "Salesforce Integration for WordPress" version 2.1, 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:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-salesforce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected787 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP58682787

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.33
▷ Minimum class complexity4.00
▷ Maximum class complexity28.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-01.png110.41KB34.71KB▼ 68.57%
assets/Worpress-to-Salesforce-Plugin-Banner.png149.81KB49.46KB▼ 66.98%