Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.12ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Extend Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.03 ▲0.72 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.64 ▼12.89 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.87 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 92.19 ▼19.62 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.42 ▲6.07 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Extend Fields
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.14 | 4.40 ▲2.80 | 37.62 ▼0.88 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▲0.88 | 98.97 ▼12.84 | 39.88 ▼8.99 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▼0.01 | 40.45 ▼0.65 | 34.47 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,542 ▲20 | 18.06 ▼5.24 | 663.19 ▲59.23 | 61.50 ▲7.28 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.27 ▲0.14 | 98.30 ▲0.45 | 45.84 ▲3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bp-extend-groups-fields/templates/view.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_groups_has_multiple_field_groups() in wp-content/plugins/bp-extend-groups-fields/templates/groups/single/admin/other-fields.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-extend-groups-fields/templates/form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_has_groups() in wp-content/plugins/bp-extend-groups-fields/templates/home.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/bp-extend-groups-fields/templates/types.php:7
- > PHP Notice
Undefined variable: type in wp-content/plugins/bp-extend-groups-fields/templates/types.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-extend-groups-fields/bp-fields.php:874
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tested up to: Version not formatted correctly
- Requires at least: Version not formatted correctly
- Screenshots: Please add an image for screenshot #3 (`screenshots/screenshot-3.png`)
bp-extend-groups-fields/bp-fields.php 92% from 13 tests
"BuddyPress Extend Fields" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-extend-groups-fields.php" instead of "bp-fields.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,302 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 402 | 96 | 956 |
CSS | 2 | 10 | 2 | 186 |
JavaScript | 1 | 52 | 0 | 130 |
Markdown | 1 | 12 | 0 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 131.00 |
▷ Minimum class complexity | 131.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 37 | |
▷ Static methods | 13 | 35.14% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.76MB with 0.58MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screensot-3.png | 240.45KB | 58.63KB | ▼ 75.62% |
screenshots/screenshot.png | 246.64KB | 57.45KB | ▼ 76.71% |
screenshots/screenshot-2.png | 293.27KB | 75.48KB | ▼ 74.26% |