Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.62ms] Passed 4 tests
An overview of server-side resources used by BP Member Type Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.12 ▼0.60 |
Dashboard /wp-admin | 3.33 ▼0.01 | 53.72 ▼17.43 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.28 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 84.76 ▼12.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.07 ▼2.99 |
Manage /wp-admin/admin.php?page=bmtm_manage_member_types | 3.20 | 32.67 |
Settings /wp-admin/admin.php?page=bmtm_manage_member_types_settings | 3.20 | 32.04 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BP Member Type Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.63 ▼0.03 | 1.87 ▲0.14 | 43.37 ▼2.34 |
Dashboard /wp-admin | 2,224 ▲50 | 5.51 ▼0.02 | 83.59 ▼1.23 | 41.02 ▲1.61 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.01 ▲0.02 | 35.69 ▼5.52 | 33.88 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.32 ▲0.43 | 679.54 ▼3.04 | 50.99 ▲2.71 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.20 ▼0.08 | 100.52 ▼9.01 | 46.36 ▼0.37 |
Manage /wp-admin/admin.php?page=bmtm_manage_member_types | 731 | 1.53 | 7.48 | 22.87 |
Settings /wp-admin/admin.php?page=bmtm_manage_member_types_settings | 1,000 | 2.02 | 25.39 | 25.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bmtm_manage_member_types_settings
- > Notice in wp-content/plugins/bp-member-type-manager/admin/bmtm-admin.php+38
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bmtm_manage_member_types_settings
- > Notice in wp-content/plugins/bp-member-type-manager/admin/bmtm-admin.php+39
Undefined index: id
- > GET request to /wp-admin/admin.php?page=bmtm_manage_member_types
- > Error in wp-content/plugins/bp-member-type-manager/includes/bp-member-type-manager-functions.php+16
Uncaught Error: Call to undefined function bp_get_member_types() in wp-content/plugins/bp-member-type-manager/includes/bp-member-type-manager-functions.php:16
Stack trace:
#0 wp-content/plugins/bp-member-type-manager/admin/class-bp-member-types-list-table.php(101): bmtm_get_all_member_type()
#1 wp-content/plugins/bp-member-type-manager/admin/screens/member-types-list.php(19): BP_Member_Type_List_Table->prepare_items()
#2 wp-content/plugins/bp-member-type-manager/admin/bmtm-admin.php(51): require_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): bmtm_admin_screen()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-member-type-manager/bp-member-type-manager.php:130
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bp-member-type-manager/admin/class-bp-member-types-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-member-type-manager/admin/bmtm-admin.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-member-type-manager/includes/bmtm-ajax.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function bmtm_get_options() in wp-content/plugins/bp-member-type-manager/admin/screens/edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-member-type-manager/includes/bp-member-type-manager-actions.php:28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bp-member-type-manager/admin/class-bp-member-types-list-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bp-member-type-manager/admin/class-bp-member-types-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-member-type-manager/admin/screens/member-types-list.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_options() on null in wp-content/plugins/bp-member-type-manager/admin/screens/_settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== bp-member-type-manager ===
) - Screenshots: Please add descriptions for these screenshots #3, #4 in bp-member-type-manager/assets to your readme.txt
bp-member-type-manager/bp-member-type-manager.php Passed 13 tests
"BP Member Type Manager" version 1.01's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Create and Manage member types of your BuddyPress site.
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
Success! There were no dangerous files found in this plugin959 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 394 | 128 | 946 |
JavaScript | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 26 | 86.67% |
▷ Anonymous functions | 4 | 13.33% |
Constants | 18 | |
▷ Global constants | 18 | 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
5 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 53.02KB | 24.94KB | ▼ 52.96% |
screenshot-1.png | 82.30KB | 39.13KB | ▼ 52.46% |
asset/images/donate-btn.png | 5.08KB | 0.57KB | ▼ 88.88% |
screenshot-3.png | 32.30KB | 15.76KB | ▼ 51.20% |
screenshot-4.png | 60.03KB | 28.67KB | ▼ 52.24% |