Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼289.53ms] Passed 4 tests
An overview of server-side resources used by Advanced XProfile Fields for BuddyPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 55.70 ▲8.75 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.90 ▲0.02 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 42.34 ▲6.46 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.04 | 91.49 ▼1,166.68 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.09 ▲2.09 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced XProfile Fields for BuddyPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 15.88 ▲0.18 | 5.92 ▼0.61 | 2.94 ▲0.75 |
Dashboard /wp-admin | 2,881 ▲30 | 6.13 ▲0.01 | 127.09 ▼9.76 | 165.05 ▲1.48 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.22 ▼0.01 | 65.73 ▲2.84 | 143.65 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 21.25 ▲5.67 | 440.86 ▲19.84 | 154.44 ▲2.30 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.02 | 141.10 ▼3.73 | 189.53 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-validation.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-labels.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/metabox.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-advanced.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: buddypress, buddypress groups, xprofile, groups, buddypress xprofile fields...
advanced-xprofile-fields-for-buddypress/sp-advanced-xprofile.php 77% from 13 tests
"Advanced XProfile Fields for BuddyPress" version 1.0.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-xprofile-fields-for-buddypress.php" instead of "sp-advanced-xprofile.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 143 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
There were no executable files found in this plugin598 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 21 | 67 | 514 |
PO File | 1 | 34 | 34 | 84 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 6.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin