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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.42 ▼2.27 |
Dashboard /wp-admin | 3.31 ▼0.04 | 57.72 ▼8.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.89 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.08 ▼21.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.15 | 1.90 ▲0.15 | 40.18 ▼2.51 |
Dashboard /wp-admin | 2,189 ▲12 | 5.54 ▼0.13 | 87.25 ▼17.52 | 39.24 ▼5.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.01 | 33.63 ▼2.75 | 34.14 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.35 | 678.82 ▲12.47 | 49.47 ▼6.18 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.19 | 98.46 ▼10.08 | 44.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 568 | 717 | 843 |
JavaScript | 1 | 109 | 207 | 166 |
PO File | 2 | 20 | 22 | 113 |
CSS | 1 | 7 | 9 | 16 |
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 code | 0.33 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 78.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 21.62% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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