Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼32.96ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Name: Buddypress profile view from admin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.55 ▼2.81 |
Dashboard /wp-admin | 3.01 ▼0.30 | 26.37 ▼27.91 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 27.37 ▼23.85 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 28.81 ▼70.88 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 27.96 ▼9.21 |
View Buddypress Profile /wp-admin/admin.php?page=view-edit-buddypress | 3.01 | 30.16 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Name: Buddypress profile view from admin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.25 ▼0.01 | 1.74 ▼0.46 | 41.99 ▼7.08 |
Dashboard /wp-admin | 2,197 ▲20 | 5.62 ▲0.06 | 99.58 ▲7.13 | 45.13 ▲1.78 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.02 ▼0.02 | 39.32 ▲2.51 | 33.68 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.89 ▼0.08 | 695.85 ▼11.95 | 56.23 ▼7.71 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.16 ▼0.23 | 115.42 ▲10.08 | 47.86 ▼1.86 |
View Buddypress Profile /wp-admin/admin.php?page=view-edit-buddypress | 675 | 1.12 | 7.84 | 17.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=view-edit-buddypress
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=view-edit-buddypress
- > Notice in wp-content/plugins/buddypress-profile-view-from-admin/view.php+2
Undefined index: user_id
- > GET request to /wp-admin/admin.php?page=view-edit-buddypress
- > Error in wp-content/plugins/buddypress-profile-view-from-admin/view.php+8
Uncaught Error: Call to undefined function bp_core_get_user_domain() in wp-content/plugins/buddypress-profile-view-from-admin/view.php:8
Stack trace:
#0 wp-content/plugins/buddypress-profile-view-from-admin/buddy-profile-admin.php(85): include()
#1 wp-includes/class-wp-hook.php(310): buddypress_profile_admin->view_edit_buddypress()
#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 {main}
thrown
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/buddypress-profile-view-from-admin/buddy-profile-admin.php:42
- > PHP Notice
Undefined index: user_id in wp-content/plugins/buddypress-profile-view-from-admin/view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/buddypress-profile-view-from-admin/view.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== Plugin Name: Buddypress profile view from admin ===
)
buddypress-profile-view-from-admin/buddy-profile-admin.php 85% from 13 tests
The principal PHP file in "Plugin Name: Buddypress profile view from admin" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WordPress 2.9.1 / BuddyPress 1.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-profile-view-from-admin.php" instead of "buddy-profile-admin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin155 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 9 | 1 | 78 |
PHP | 2 | 38 | 27 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 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
No PNG files were detected