Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.25ms] Passed 4 tests
Analyzing server-side resources used by CiviCRM Member Sync
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.92 ▼4.15 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.13 ▼0.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.13 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.49 ▼8.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.03 ▲7.27 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
civi_wp_member_sync_settings |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
civi_wp_member_sync_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
CiviCRM Member Sync: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▼0.01 | 1.67 ▼0.25 | 39.39 ▼5.13 |
Dashboard /wp-admin | 2,206 ▲17 | 4.85 ▼0.08 | 111.69 ▼3.14 | 41.11 ▼6.83 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.06 | 39.87 ▲4.49 | 35.04 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.36 ▲5.88 | 674.06 ▼2.90 | 64.71 ▲11.88 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.00 | 96.96 ▲1.49 | 43.26 ▲2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: membership, civicrm, member, sync
civicrm-wp-member-sync/civicrm-wp-member-sync.php Passed 13 tests
The primary PHP file in "CiviCRM Member Sync" version 0.6.0 is used by WordPress to initiate all plugin functionality
74 characters long description:
Synchronize CiviCRM Memberships with WordPress User Roles or Capabilities.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,791 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 2,224 | 4,019 | 4,382 |
CSS | 2 | 58 | 95 | 956 |
JavaScript | 4 | 293 | 476 | 453 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 62.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 198 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 194 | 97.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.02% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
assets/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
assets/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |