Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php+11
Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.52ms] Passed 4 tests
This is a short check of server-side resources used by BP Summary Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.86 ▼31.69 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.59 ▼38.37 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.71 ▼39.05 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼84.95 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.99 ▼30.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for BP Summary Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.18 | 2.62 ▲0.92 | 56.86 ▲15.74 |
Dashboard /wp-admin | 2,203 ▲17 | 5.77 ▲0.82 | 93.71 ▼11.54 | 38.22 ▼1.29 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.09 | 37.91 ▲0.62 | 29.95 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.09 ▲0.08 | 594.44 ▼64.36 | 54.51 ▼5.59 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.01 | 96.85 ▼1.84 | 42.04 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php+11
Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/buddypress-summary-tab/pages/style.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_summary_biography() in wp-content/plugins/buddypress-summary-tab/pages/view.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: buddypress, buddy, biography, summary
buddypress-summary-tab/bp-summary-page.php 92% from 13 tests
"BP Summary Page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("buddypress-summary-tab.php" instead of "bp-summary-page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected192 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 11 | 192 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin