Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▲3.24ms] Passed 4 tests
Server-side resources used by Object Data Sync For Salesforce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.04 | 45.42 ▲1.39 |
Dashboard /wp-admin | 4.20 ▲0.89 | 53.54 ▲5.82 |
Posts /wp-admin/edit.php | 4.25 ▲0.89 | 56.69 ▲5.83 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.90 | 106.69 ▼0.09 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 44.28 ▲10.15 |
Configuration Guide /wp-admin/admin.php?page=plugin_guide | 4.03 | 41.59 |
Pardot Setup Guide /wp-admin/admin.php?page=pardot_guide | 4.03 | 42.15 |
Troubleshoot /wp-admin/admin.php?page=troubleshoot | 4.03 | 38.45 |
Object Data Sync For Salesforce /wp-admin/admin.php?page=mo_sf_sync | 4.12 | 42.18 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 126 new files
Database: 3 new tables, 6 new options
New tables |
---|
mo_sf_sync_object_mapping_meta |
mo_sf_sync_audit_log_db |
mo_sf_sync_object_mapping |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Object Data Sync For Salesforce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.67 ▲0.42 | 1.74 ▲0.07 | 40.93 ▲1.21 |
Dashboard /wp-admin | 2,217 ▲37 | 5.55 ▼0.11 | 94.63 ▼0.87 | 76.16 ▲34.24 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 1.99 ▲0.04 | 39.27 ▼3.05 | 35.98 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,696 | 26.36 ▲3.15 | 848.50 ▲182.31 | 41.69 ▼11.74 |
Media Library /wp-admin/upload.php | 1,437 ▲43 | 4.20 ▼0.02 | 96.83 ▼4.99 | 64.11 ▲17.78 |
Configuration Guide /wp-admin/admin.php?page=plugin_guide | 1,488 | 2.11 | 23.82 | 72.24 |
Pardot Setup Guide /wp-admin/admin.php?page=pardot_guide | 1,318 | 2.00 | 25.04 | 62.06 |
Troubleshoot /wp-admin/admin.php?page=troubleshoot | 1,252 | 2.33 | 38.21 | 39.61 |
Object Data Sync For Salesforce /wp-admin/admin.php?page=mo_sf_sync | 1,623 | 2.69 | 44.96 | 40.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'MoSfSyncSalesforce\\Helper\\Instance' not found in wp-content/plugins/object-data-sync-for-salesforce/Services/class-db-utils.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/object-data-sync-for-salesforce/Helper/view/import-export.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #6, #7, #8 in object-data-sync-for-salesforce/assets to your readme.txt
object-data-sync-for-salesforce/object-data-sync-for salesforce.php 85% from 13 tests
The main PHP file in "Object Data Sync For Salesforce" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("object-data-sync-for-salesforce.php" instead of "object-data-sync-for salesforce.php")
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
Good job! No executable or dangerous file extensions detected10,518 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 817 | 2,068 | 6,904 |
CSS | 6 | 237 | 9 | 1,897 |
JavaScript | 7 | 107 | 4 | 1,390 |
HTML | 1 | 13 | 0 | 312 |
SVG | 3 | 0 | 0 | 8 |
Markdown | 1 | 5 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 27.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 52 | 27.37% |
▷ Public methods | 166 | 87.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 12.63% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 1 | 1.72% |
▷ Class constants | 57 | 98.28% |
▷ Public constants | 57 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
48 PNG files occupy 2.09MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/61456.png | 3.64KB | 3.62KB | ▼ 0.62% |
images/guide/select-sync-direction.png | 15.22KB | 6.79KB | ▼ 55.35% |
images/miniorange.png | 1.49KB | 1.34KB | ▼ 10.35% |
images/guide/authorization-successfull-window.png | 48.00KB | 11.17KB | ▼ 76.73% |
images/guide/pre-connected-app-connect.png | 73.06KB | 25.80KB | ▼ 64.69% |