10% bp-xprofile-wp-user-sync

Code Review | BP xProfile WordPress User Sync

WordPress plugin BP xProfile WordPress User Sync scored10%from 54 tests.

About plugin

  • Plugin page: bp-xprofile-wp-us...
  • Plugin version: 0.6.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: May 9, 2013
  • Latest release: May 12, 2021
  • Number of updates: 46
  • Update frequency: every 63.7 days
  • Top authors: needle (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /13,423 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Error in wp-content/plugins/bp-xprofile-wp-user-sync/bp-xprofile-wp-user-sync.php+133
    Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/bp-xprofile-wp-user-sync/bp-xprofile-wp-user-sync.php:133
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): BpXProfileWordPressUserSync->activate()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.64ms] Passed 4 tests

Server-side resources used by BP xProfile WordPress User Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.42 ▼2.27
Dashboard /wp-admin3.31 ▼0.0457.72 ▼8.25
Posts /wp-admin/edit.php3.36 ▲0.0047.89 ▲1.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.08 ▼21.19
Media Library /wp-admin/upload.php3.23 ▲0.0037.64 ▲2.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BP xProfile WordPress User Sync
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.151.90 ▲0.1540.18 ▼2.51
Dashboard /wp-admin2,189 ▲125.54 ▼0.1387.25 ▼17.5239.24 ▼5.12
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0133.63 ▼2.7534.14 ▼2.86
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.35678.82 ▲12.4749.47 ▼6.18
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.1998.46 ▼10.0844.12 ▼3.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: metabox in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/metaboxes/metabox-migrate-info.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/metaboxes/metabox-migrate-info.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/metaboxes/metabox-migrate-info.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/metaboxes/metabox-migrate-info.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/pages/page-admin-migrate.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-xprofile-wp-user-sync/assets/templates/metaboxes/metabox-migrate-submit.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bp-xprofile-wp-user-sync/bp-xprofile-wp-user-sync.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: xprofile, profile, buddypress, sync

bp-xprofile-wp-user-sync/bp-xprofile-wp-user-sync.php 92% from 13 tests

The entry point to "BP xProfile WordPress User Sync" version 0.6.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 440 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,138 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6568717843
JavaScript1109207166
PO File22022113
CSS17916

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity61.00
▷ Minimum class complexity46.00
▷ Maximum class complexity76.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2978.38%
▷ Protected methods00.00%
▷ Private methods821.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin