Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼299.18ms] Passed 4 tests
Server-side resources used by CiviCRM Profile Sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 53.99 ▲0.94 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.85 ▼0.16 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.06 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 91.04 ▼1,195.81 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.56 ▼1.68 |
Server storage [IO: ▲2.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for CiviCRM Profile Sync
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲40 | 16.21 ▲0.13 | 5.70 ▼0.07 | 2.42 ▼0.02 |
Dashboard /wp-admin | 2,892 ▲38 | 6.08 ▼0.13 | 119.16 ▼24.37 | 154.58 ▼17.68 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▼0.00 | 67.01 ▲5.92 | 142.07 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,711 ▼6 | 21.82 ▲0.28 | 400.30 ▼34.43 | 160.18 ▲3.04 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.01 | 141.99 ▲6.98 | 187.15 ▲7.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/shortcodes/shortcode-address.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-groups-terms.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/taxonomies/term-participant-role-edit.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/pages/page-admin-acf-migrate.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-posts-participants.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/pages/page-admin-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-posts-activities.php:16
- > PHP Notice
Undefined variable: metabox in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-migrate-info.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/buddypress/metaboxes/metabox-bp-field-content.php:31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-migrate-info.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/civicrm-wp-profile-sync/assets/templates/wordpress/metaboxes/metabox-acf-participants-posts.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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: user, sync, civicrm, xprofile, buddypress...
civicrm-wp-profile-sync/civicrm-wp-profile-sync.php 92% from 13 tests
"CiviCRM Profile Sync" version 0.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
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
Everything looks great! No dangerous files found in this plugin42,692 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 26,264 | 45,609 | 40,225 |
JavaScript | 21 | 552 | 1,123 | 1,155 |
CSS | 2 | 72 | 102 | 945 |
Markdown | 2 | 193 | 0 | 292 |
Smarty | 4 | 15 | 6 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 48.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 121 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2,026 | |
▷ Static methods | 1 | 0.05% |
▷ Public methods | 2,019 | 99.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.35% |
Functions | 70 | |
▷ Named functions | 53 | 75.71% |
▷ Anonymous functions | 17 | 24.29% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/acf/manual-sync/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/images/acf/manual-sync/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
assets/images/acf/manual-sync/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
assets/images/acf/manual-sync/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
assets/images/acf/manual-sync/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |