Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.71ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress XProfile Custom Image Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.99 ▼1.96 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.21 ▲1.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.36 ▲1.56 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.71 ▼6.57 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.14 ▼3.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress XProfile Custom Image Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▼0.08 | 1.80 ▲0.12 | 40.92 ▲1.13 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.08 | 80.44 ▼6.46 | 38.98 ▼2.34 |
Posts /wp-admin/edit.php | 2,100 ▲18 | 2.00 ▼0.15 | 38.78 ▲0.20 | 37.00 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.30 ▼4.75 | 630.72 ▼35.65 | 59.54 ▲10.65 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.29 ▲0.02 | 95.66 ▼1.24 | 42.54 ▼0.54 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-xprofile-image-field/bp-xprofile-image-field.php:534
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: xprofile, buddypress, custom profile field, user profile, image...
buddypress-xprofile-image-field/bp-xprofile-image-field.php 92% from 13 tests
The entry point to "BuddyPress XProfile Custom Image Field" version 2.4.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-xprofile-image-field.php" instead of "bp-xprofile-image-field.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin541 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 198 | 340 | 219 |
JavaScript | 2 | 59 | 44 | 162 |
PO File | 2 | 17 | 22 | 87 |
CSS | 1 | 19 | 12 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 1 | 4.35% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected