Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.65ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Conditional Field Groups
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 55.03 ▲9.66 |
Dashboard /wp-admin | 3.33 ▲0.02 | 60.16 ▲1.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.98 ▲0.88 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.89 ▲1.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.44 ▲2.14 |
Conditional Groups /wp-admin/users.php?page=conditional-field-groups | 3.30 | 43.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Conditional Field Groups
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲40 | 13.65 ▲0.50 | 6.22 ▲4.26 | 43.22 ▲0.32 |
Dashboard /wp-admin | 2,210 ▲4 | 5.87 ▲1.01 | 105.85 ▼10.31 | 42.27 ▼2.29 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.03 | 40.63 ▲5.06 | 35.74 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.62 ▼5.58 | 642.05 ▼64.49 | 56.92 ▲5.54 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.15 ▼0.06 | 99.19 ▼7.18 | 47.05 ▲4.52 |
Conditional Groups /wp-admin/users.php?page=conditional-field-groups | 678 | 1.53 | 7.78 | 19.97 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/users.php?page=conditional-field-groups
- > Error in wp-content/plugins/buddypress-conditional-field-groups/views/settings.php+16
Uncaught Error: Call to undefined function bp_xprofile_get_groups() in wp-content/plugins/buddypress-conditional-field-groups/views/settings.php:16
Stack trace:
#0 wp-content/plugins/buddypress-conditional-field-groups/includes/setup.php(89): include()
#1 wp-includes/class-wp-hook.php(310): CFG_Setup->create_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/users.php(11): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function cfg_get_conditional_map() in wp-content/plugins/buddypress-conditional-field-groups/views/settings.php:15
- > PHP Notice
Trying to get property 'role_names' of non-object in wp-content/plugins/buddypress-conditional-field-groups/views/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/buddypress-conditional-field-groups/buddypress_conditional_field_groups.php:40
- > PHP Warning
array_reverse() expects parameter 1 to be array, null given in wp-content/plugins/buddypress-conditional-field-groups/views/settings.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-conditional-field-groups/includes/setup.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
2 plugin tags: buddypress, xprofile fields
buddypress-conditional-field-groups/buddypress_conditional_field_groups.php 85% from 13 tests
The principal PHP file in "BuddyPress Conditional Field Groups" v. 0.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-conditional-field-groups.php" instead of "buddypress_conditional_field_groups.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin218 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 82 | 189 |
JSON | 1 | 0 | 0 | 23 |
Markdown | 3 | 3 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin