Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲12.71ms] Passed 4 tests
Analyzing server-side resources used by Object Sync for Salesforce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 46.39 ▲2.66 |
Dashboard /wp-admin | 3.81 ▲0.51 | 62.52 ▲10.02 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 65.04 ▲19.62 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 112.88 ▲18.55 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 53.55 ▲21.41 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.83 | 58.47 |
Logs /wp-admin/edit.php?post_type=wp_log | 3.80 | 51.06 |
Salesforce /wp-admin/options-general.php?page=object-sync-salesforce-admin | 3.67 | 50.53 |
Add New /wp-admin/post-new.php?post_type=wp_log | 3.88 | 65.18 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 3.81 | 57.80 |
Server storage [IO: ▲64.70MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 64.70MB)
Filesystem: 1,244 new files
Database: 6 new tables, 12 new options
New tables |
---|
wp_actionscheduler_claims |
wp_actionscheduler_logs |
wp_actionscheduler_groups |
wp_object_sync_sf_field_map |
wp_object_sync_sf_object_map |
wp_actionscheduler_actions |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
object_sync_for_salesforce_activate_time |
can_compress_scripts |
schema-ActionScheduler_LoggerSchema |
action_scheduler_lock_async-request-runner |
widget_recent-posts |
schema-ActionScheduler_StoreSchema |
theysaidso_admin_options |
db_upgraded |
object_sync_for_salesforce_db_version |
... |
Browser metrics Passed 4 tests
Object Sync for Salesforce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲118 | 13.51 ▼1.24 | 1.79 ▼0.16 | 36.97 ▼7.77 |
Dashboard /wp-admin | 2,253 ▲68 | 5.25 ▼0.57 | 115.51 ▲15.48 | 41.08 ▼2.25 |
Posts /wp-admin/edit.php | 2,139 ▲53 | 2.37 ▲0.35 | 41.28 ▲4.09 | 34.71 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.42 ▲0.20 | 600.86 ▼85.38 | 51.27 ▼7.68 |
Media Library /wp-admin/upload.php | 1,432 ▲50 | 4.58 ▲0.37 | 99.29 ▼7.15 | 46.29 ▲0.32 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,281 | 2.15 | 27.42 | 27.80 |
Logs /wp-admin/edit.php?post_type=wp_log | 1,100 | 2.48 | 34.61 | 27.59 |
Salesforce /wp-admin/options-general.php?page=object-sync-salesforce-admin | 1,028 | 2.05 | 27.66 | 37.22 |
Add New /wp-admin/post-new.php?post_type=wp_log | 2,260 | 7.98 | 179.54 | 62.25 |
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log | 1,435 | 2.11 | 29.35 | 31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 6 tables in the database
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_object_sync_sf_field_map
- wp_actionscheduler_logs
- wp_actionscheduler_actions
- wp_object_sync_sf_object_map
- This plugin did not uninstall successfully, leaving 12 options in the database
- object_sync_for_salesforce_db_version
- schema-ActionScheduler_StoreSchema
- can_compress_scripts
- schema-ActionScheduler_LoggerSchema
- object_sync_for_salesforce_activate_time
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- action_scheduler_hybrid_store_demarkation
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/object-sync-for-salesforce/templates/admin/error.php
- 92× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/object-sync-for-salesforce/vendor/messageagency/force.com-toolkit-for-php/soapclient/SforcePartnerClient.php:44
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/tests/phpunit/jobstore/AbstractStoreTest.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/object-sync-for-salesforce/templates/admin/mapping-errors-delete.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/tests/phpunit/lock/ActionScheduler_OptionLock_Test.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/tests/phpunit/helpers/ActionScheduler_Compatibility_Test.php:5
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/tests/phpunit/logging/ActionScheduler_wpCommentLogger_Test.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/object-sync-for-salesforce/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: crm, salesforce, sync
object-sync-for-salesforce/object-sync-for-salesforce.php Passed 13 tests
The main PHP file in "Object Sync for Salesforce" ver. 2.2.7 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
Object Sync for Salesforce maps and syncs data between Salesforce objects and WordPress objects.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin330,615 lines of code in 809 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 526 | 79,831 | 206 | 281,594 |
PHP | 176 | 4,644 | 11,747 | 21,609 |
XML | 6 | 666 | 107 | 12,099 |
JavaScript | 19 | 321 | 556 | 4,733 |
CSS | 14 | 355 | 201 | 3,566 |
Markdown | 48 | 1,219 | 0 | 3,170 |
JSON | 7 | 0 | 0 | 2,583 |
SVG | 9 | 4 | 32 | 1,049 |
Bourne Shell | 1 | 23 | 11 | 147 |
Sass | 1 | 10 | 0 | 47 |
YAML | 2 | 2 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 313.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 160 | |
▷ Abstract classes | 17 | 10.62% |
▷ Concrete classes | 143 | 89.38% |
▷ Final classes | 0 | 0.00% |
Methods | 1,344 | |
▷ Static methods | 100 | 7.44% |
▷ Public methods | 1,049 | 78.05% |
▷ Protected methods | 162 | 12.05% |
▷ Private methods | 133 | 9.90% |
Functions | 49 | |
▷ Named functions | 19 | 38.78% |
▷ Anonymous functions | 30 | 61.22% |
Constants | 59 | |
▷ Global constants | 23 | 38.98% |
▷ Class constants | 36 | 61.02% |
▷ Public constants | 36 | 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
29 PNG files occupy 0.53MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/code/images/hierarchy-item.png | 0.23KB | 0.20KB | ▼ 13.14% |
docs/code/images/iviewer/iviewer.zoom_fit.png | 1.22KB | 0.30KB | ▼ 75.72% |
vendor/woocommerce/action-scheduler/docs/favicon-32x32.png | 1.16KB | 0.71KB | ▼ 39.02% |
docs/code/images/apple-touch-icon-72x72.png | 12.45KB | 5.26KB | ▼ 57.74% |
docs/code/images/apple-touch-icon-114x114.png | 27.67KB | 10.58KB | ▼ 61.78% |