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.01MB] [CPU: ▼6.74ms] Passed 4 tests
Server-side resources used by BP Profile Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.45 ▲9.50 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.03 ▲1.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.59 ▼5.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.66 ▼24.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.07 ▲1.40 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BP Profile Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.36 ▼0.24 | 2.13 ▲0.41 | 44.44 ▲7.77 |
Dashboard /wp-admin | 2,209 ▲42 | 5.55 ▲0.02 | 81.57 ▼14.39 | 39.26 ▲0.95 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.03 ▲0.00 | 34.34 ▼5.49 | 35.55 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 23.13 ▼0.69 | 665.16 ▲43.66 | 55.37 ▲0.73 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▼0.01 | 95.67 ▼3.31 | 41.90 ▼4.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-profile-search/bps-search.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-search/bps-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-search/bps-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bps_screen() in wp-content/plugins/bp-profile-search/templates/members/bps-form-default.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-search/bps-request.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bp-profile-search/bps-main.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bp-profile-search/bps-directory.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-search/bps-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-profile-search/bps-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bps_escaped_details_data() in wp-content/plugins/bp-profile-search/templates/members/bps-details.php:12
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: search, directory, filter, members, users...
bp-profile-search/bps-main.php 92% from 13 tests
The main PHP file in "BP Profile Search" ver. 5.4.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-profile-search.php" instead of "bps-main.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
There were no executable files found in this plugin3,201 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 595 | 70 | 3,079 |
JavaScript | 3 | 18 | 0 | 114 |
XML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 5.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 13 | |
▷ Static methods | 9 | 69.23% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 131 | |
▷ Named functions | 128 | 97.71% |
▷ Anonymous functions | 3 | 2.29% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected