Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.15ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Profile Tabs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.52 ▼10.47 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.01 ▼0.86 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.66 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 94.32 ▲4.21 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 35.65 ▼0.17 |
BP Profile Tabs /wp-admin/options-general.php?page=bp-profile-tabs | 3.44 | 34.60 |
Server storage [IO: ▲0.38MB] [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: 62 new files
Database: no new tables, 8 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
bp_profile_tabs_option |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Profile Tabs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.48 ▼0.13 | 1.68 ▼0.39 | 39.48 ▼3.87 |
Dashboard /wp-admin | 2,207 ▲22 | 5.80 ▲0.91 | 95.57 ▼20.64 | 39.68 ▼6.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 39.10 ▲0.13 | 35.43 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.53 ▲0.35 | 675.28 ▼25.66 | 57.95 ▼2.61 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.01 | 100.61 ▼2.03 | 46.55 ▲1.68 |
BP Profile Tabs /wp-admin/options-general.php?page=bp-profile-tabs | 688 | 1.65 | 18.31 | 25.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bp-profile-tabs
- > Error in wp-content/plugins/buddypress-profile-tabs/admin/views/admin.php+81
Uncaught Error: Call to undefined function bp_get_member_types() in wp-content/plugins/buddypress-profile-tabs/admin/views/admin.php:81
Stack trace:
#0 wp-content/plugins/buddypress-profile-tabs/admin/class-bp-profile-tabs-admin.php(114): include_once()
#1 wp-includes/class-wp-hook.php(310): BP_Profile_Tabs_Admin->display_plugin_admin_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/buddypress-profile-tabs/admin/includes/CMBF/tests/phpunit/includes/bootstrap.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-profile-tabs/admin/includes/CMBF/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/buddypress-profile-tabs/admin/includes/CMBF/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/buddypress-profile-tabs/admin/views/admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/buddypress-profile-tabs/admin/includes/CMBF/init.php:1041
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== buddypress-profile-tabs ===
)
buddypress-profile-tabs/bp-profile-tabs.php 85% from 13 tests
The primary PHP file in "BuddyPress Profile Tabs" version 1.6.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-profile-tabs.php" instead of "bp-profile-tabs.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,759 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 670 | 1,376 | 2,540 |
JavaScript | 7 | 316 | 403 | 2,266 |
CSS | 3 | 61 | 22 | 540 |
Markdown | 3 | 88 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 50.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 164 | |
▷ Static methods | 41 | 25.00% |
▷ Public methods | 157 | 95.73% |
▷ Protected methods | 2 | 1.22% |
▷ Private methods | 5 | 3.05% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/CMBF/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
admin/includes/CMBF/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/CMBF/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/CMBF/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/includes/CMBF/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |