Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.69MB] [CPU: ▲4.60ms] Passed 4 tests
A check of server-side resources used by MIF BP Customizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.20 | 40.02 ▼2.06 |
Dashboard /wp-admin | 5.17 ▲1.86 | 64.00 ▲9.35 |
Posts /wp-admin/edit.php | 5.22 ▲1.86 | 68.00 ▲16.82 |
Add New Post /wp-admin/post-new.php | 7.77 ▲1.88 | 97.15 ▼5.71 |
Media Library /wp-admin/upload.php | 5.09 ▲1.86 | 62.60 ▲24.47 |
User blockings /wp-admin/users.php?page=banned-members | 5.11 | 46.98 |
BP Customizer /wp-admin/options-general.php?page=mif-bpc | 5.06 | 53.40 |
Server storage [IO: ▲16.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
recovery_mode_email_last_sent |
db_upgraded |
widget_mif_bpc_groups_widget |
can_compress_scripts |
widget_mif_bpc_members_widget |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by MIF BP Customizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,610 ▼151 | 13.61 ▼0.76 | 9.78 ▲7.84 | 13.14 ▼32.42 |
Dashboard /wp-admin | 2,211 ▲37 | 4.88 ▼0.76 | 91.87 ▲1.20 | 39.70 ▼1.45 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.26 ▲0.25 | 39.16 ▲2.21 | 34.67 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.33 ▲5.82 | 600.74 ▼30.31 | 61.57 ▲5.74 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.37 ▲0.17 | 104.03 ▼0.35 | 50.51 ▲3.58 |
User blockings /wp-admin/users.php?page=banned-members | 703 | 1.67 | 11.33 | 23.05 |
BP Customizer /wp-admin/options-general.php?page=mif-bpc | 1,077 | 1.88 | 30.90 | 36.17 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_mif_bpc_members_widget
- recovery_mode_email_last_sent
- widget_mif_bpc_groups_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=banned-members
- > User notice in wp-includes/functions.php+5905
Function WP_Object_Cache::add was called incorrectly. Cache key must be an integer or a non-empty string, array given. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
- > GET request to /wp-admin/users.php?page=banned-members
- > Error in wp-content/plugins/mif-bp-customizer/inc/banned-users-admin.php+45
Uncaught Error: Call to undefined function bp_has_members() in wp-content/plugins/mif-bp-customizer/inc/banned-users-admin.php:45
Stack trace:
#0 wp-includes/class-wp-hook.php(310): mif_bpc_admin_banned_members->page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/users.php(11): require_once('/var/www/wordpr...')
#5 {main}
thrown- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mif-bpc
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mif-bp-customizer/templates/notifications-loop.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mif-bp-customizer/templates/dialogues-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mif-bp-customizer/templates/docs-page-doc.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mif-bp-customizer/templates/docs-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function mif_bpc_repost_activity_user_link() in wp-content/plugins/mif-bp-customizer/templates/repost-activity.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=mif-bpc
- > Network (severe)
https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots do not have images: #1 (Plugin configuration page), #2 ("Like", "Favorite", "Repost" buttons, activity feed configuration menu), #3 (Subscription and access restriction menu on user page), #4 (Repost-post), #5 (Configuration of displayed posts), #6 (Access restriction to your page), #7 (User documents), #8 (Pop-up notifications), #9 (Dialogues)
mif-bp-customizer/mif-bp-customizer.php 92% from 13 tests
The entry point to "MIF BP Customizer" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin34,461 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 6,262 | 6,744 | 18,716 |
PHP | 41 | 5,134 | 1,998 | 7,372 |
CSS | 9 | 459 | 249 | 4,602 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 1 | 294 | 315 | 735 |
HTML | 1 | 63 | 1 | 261 |
JSON | 1 | 0 | 0 | 74 |
Bourne Shell | 1 | 12 | 6 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 261.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 434 | |
▷ Static methods | 7 | 1.61% |
▷ Public methods | 432 | 99.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.46% |
Functions | 62 | |
▷ Named functions | 62 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 1.30MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-6.png | 70.90KB | 36.51KB | ▼ 48.50% |
js/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
js/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
screenshot-1.png | 74.62KB | 42.32KB | ▼ 43.29% |