Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.32ms] Passed 4 tests
Analyzing server-side resources used by Advanced XProfile Fields for BuddyPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.39 ▼6.93 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.49 ▼16.79 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.31 ▲0.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.41 ▼2.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.17 ▼3.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced XProfile Fields for BuddyPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.58 ▼0.39 | 1.70 ▼0.08 | 41.33 ▼2.50 |
Dashboard /wp-admin | 2,206 ▲14 | 5.89 ▲0.95 | 103.17 ▼6.69 | 39.49 ▼3.32 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.06 ▲0.06 | 37.53 ▼1.09 | 36.33 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.10 ▼0.31 | 656.20 ▼23.30 | 54.95 ▲6.22 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.12 | 99.83 ▼22.94 | 46.70 ▼2.68 |
Uninstaller [IO: ▲0.00MB] [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 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > 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 checked() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-advanced.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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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
10 plugin tags: social network, buddypress, suiteplugins, buddypress xprofile fields, buddypress groups...
advanced-xprofile-fields-for-buddypress/sp-advanced-xprofile.php 77% from 13 tests
The entry point to "Advanced XProfile Fields for BuddyPress" version 1.0.4.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-xprofile-fields-for-buddypress.php" instead of "sp-advanced-xprofile.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous 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
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin