Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.60ms] Passed 4 tests
Server-side resources used by BuddyPress Xprofile Custom Field Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.00 ▲1.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.32 ▼0.78 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.69 ▲5.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.43 ▼19.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.89 ▼0.16 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
bpxcftr_notices |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Xprofile Custom Field Types
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.17 ▼0.18 | 2.05 ▲0.23 | 43.12 ▼1.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▲0.00 | 95.37 ▲6.78 | 42.58 ▲7.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.08 | 32.82 ▼8.13 | 34.57 ▼6.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.14 ▲5.14 | 664.99 ▲10.51 | 57.82 ▼10.22 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.01 | 93.76 ▼15.23 | 41.35 ▼5.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: fields, xprofile, buddypress-profile-field-types, buddypress
bp-xprofile-custom-field-types/bp-xprofile-custom-field-types.php Passed 13 tests
"BuddyPress Xprofile Custom Field Types" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Have all the extra field types at your disposal.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,659 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 1,546 | 465 | 6,017 |
PHP | 41 | 1,197 | 2,048 | 3,584 |
PO File | 4 | 1,494 | 1,891 | 3,043 |
CSS | 2 | 3 | 3 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 57 | 25.00% |
▷ Public methods | 183 | 80.26% |
▷ Protected methods | 2 | 0.88% |
▷ Private methods | 43 | 18.86% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendors/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
assets/vendors/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |