Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲5.63MB] [CPU: ▲26.98ms] 75% from 4 tests
This is a short check of server-side resources used by ProfileGrid – User Profiles, Memberships, Groups and Communities
The following require your attention
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.63MB on /wp-admin/admin.php?page=pm_theme_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.16 ▲5.69 | 71.85 ▲32.17 |
Dashboard /wp-admin | 8.98 ▲5.63 | 76.93 ▲17.68 |
Posts /wp-admin/edit.php | 8.99 ▲5.63 | 75.74 ▲29.14 |
Add New Post /wp-admin/post-new.php | 11.81 ▲5.92 | 122.48 ▲28.91 |
Media Library /wp-admin/upload.php | 8.78 ▲5.55 | 73.53 ▲43.36 |
Analytics /wp-admin/admin.php?page=pm_analytics | 8.67 | 68.52 |
Payments Settings /wp-admin/admin.php?page=pm_payment_settings | 8.77 | 64.12 |
Edit User /wp-admin/admin.php?page=pm_user_edit | 8.67 | 63.84 |
Upload Settings /wp-admin/admin.php?page=pm_upload_settings | 8.76 | 65.06 |
Members /wp-admin/admin.php?page=pm_user_manager | 8.99 | 67.21 |
Groups /wp-admin/admin.php?page=pm_manage_groups | 8.85 | 69.13 |
Email Preview /wp-admin/admin.php?page=pm_email_preview | 8.67 | 62.62 |
Email Templates /wp-admin/admin.php?page=pm_email_templates | 8.78 | 68.78 |
New Group /wp-admin/admin.php?page=pm_add_group | 9.27 | 68.69 |
Profile Templates /wp-admin/admin.php?page=pm_theme_settings | 8.76 | 62.50 |
Server storage [IO: ▲24.37MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 453 new files
Database: 11 new tables, 46 new options
New tables |
---|
wp_promag_groups |
wp_promag_notification |
wp_promag_fields |
wp_promag_msg_conversation |
wp_promag_sections |
wp_promag_group_update_request |
wp_promag_group_requests |
wp_promag_paypal_log |
wp_promag_email_templates |
wp_promag_msg_threads |
... |
New WordPress options |
---|
pm_blog_notification_user |
pm_redirect_after_login |
pg_email_templates_created |
pm_admin_account_review_notification |
db_upgraded |
progrid_db_version |
pm_admin_notification |
pm_encrypt_secret_key |
pm_show_delete_profile |
widget_pg_groups_menu |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ProfileGrid – User Profiles, Memberships, Groups and Communities
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,508 ▲736 | 18.02 ▲3.79 | 31.17 ▲29.34 | 39.72 ▼5.07 |
Dashboard /wp-admin | 2,491 ▲313 | 6.85 ▲1.27 | 118.16 ▲11.94 | 116.62 ▲73.05 |
Posts /wp-admin/edit.php | 2,423 ▲326 | 4.43 ▲2.45 | 56.45 ▲15.32 | 85.07 ▲50.35 |
Add New Post /wp-admin/post-new.php | 1,948 ▲422 | 22.02 ▼1.36 | 764.47 ▲135.07 | 43.07 ▼9.17 |
Media Library /wp-admin/upload.php | 1,577 ▲177 | 5.69 ▲1.50 | 90.85 ▼10.59 | 113.79 ▲68.08 |
Analytics /wp-admin/admin.php?page=pm_analytics | 1,120 | 4.28 | 53.52 | 88.95 |
Payments Settings /wp-admin/admin.php?page=pm_payment_settings | 1,414 | 4.16 | 53.66 | 82.45 |
Edit User /wp-admin/admin.php?page=pm_user_edit | 1,117 | 4.21 | 56.61 | 78.43 |
Upload Settings /wp-admin/admin.php?page=pm_upload_settings | 1,238 | 4.28 | 57.99 | 76.61 |
Members /wp-admin/admin.php?page=pm_user_manager | 1,775 | 4.63 | 60.53 | 104.39 |
Groups /wp-admin/admin.php?page=pm_manage_groups | 1,530 | 4.25 | 54.26 | 118.98 |
Email Preview /wp-admin/admin.php?page=pm_email_preview | 1,120 | 4.14 | 52.99 | 69.78 |
Email Templates /wp-admin/admin.php?page=pm_email_templates | 1,503 | 4.19 | 53.31 | 90.15 |
New Group /wp-admin/admin.php?page=pm_add_group | 775 | 1.89 | 20.42 | 14.84 |
Profile Templates /wp-admin/admin.php?page=pm_theme_settings | 1,246 | 4.12 | 52.61 | 94.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 11 tables in the database
- wp_promag_group_requests
- wp_promag_msg_conversation
- wp_promag_group_update_request
- wp_promag_sections
- wp_promag_msg_threads
- wp_promag_email_templates
- wp_promag_paypal_log
- wp_promag_fields
- wp_promag_friends
- wp_promag_groups
- ...
- This plugin did not uninstall successfully, leaving 46 options in the database
- db_upgraded
- pm_encrypt_secret_iv
- pm_blog_feature_image
- pm_admin_account_review_notification
- pm_blog_notification_admin
- pg_email_templates_created_upgrade
- pm_redirect_after_login
- pm_enable_blog
- pm_show_delete_profile
- progrid_multi_group_version
- ...
Smoke tests 0% 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
- > GET request to /wp-admin/admin.php?page=pm_analytics
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Profile_Magic_Admin' does not have a method 'pm_analytics'
- > GET request to /wp-admin/admin.php?page=pm_user_edit
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Profile_Magic_Admin' does not have a method 'pm_user_edit'
- > GET request to /wp-admin/admin.php?page=pm_email_preview
- > Warning in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/class-profile-magic-admin.php+507
include(partials/email-preview.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=pm_email_preview
- > Warning in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/class-profile-magic-admin.php+507
include(): Failed opening 'partials/email-preview.php' for inclusion (include_path='.:/usr/share/php')
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/profile-magic-public-display.php
- > /wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/profile-magic-admin-display.php
- 125× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PM_DBhandler' not found in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/manage-groups.php:2
- > PHP Fatal error
Uncaught Error: Class 'PM_DBhandler' not found in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/export-fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'PM_DBhandler' not found in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/profile-magic-add-blog.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function profile_magic_my_friends_requests() on null in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/profile-magic-friend-sent-request.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/friends-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/themes/default/edit-profile-shortcode-tpl.php:2
- > PHP Fatal error
Uncaught Error: Class 'PM_DBhandler' not found in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/themes/default/group-tpl.php:2
- > PHP Fatal error
Uncaught Error: Class 'PM_DBhandler' not found in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/thirdparty-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/public/partials/themes/default/add-blog-tpl.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/partials/premium-features-profile-labels.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).datepicker is not a function" "TypeError: $(...).datepicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:17:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:1075:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:1096:35)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:1118:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:1183:16)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/profilegrid-user-profiles-groups-and-communities/admin/js/profile-magic-admin.js?ver=5.6.9:1189:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).datepicker is not a function
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).sortable is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pm_add_group
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tabs is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (78 tag instead of maximum 10)
- Screenshots: These screenshots require images: #9 (A Group registration form using single page format - Notice the Profile sections are bundled into boxes.), #10 (The same Group registration form (As above), now split into multiple pages. Notice the "Next" button instead of Submit on bottom right.), #11 (All Members page with search capabilities.), #12 (Single Group page showing Group details and its members.), #13 (Dashboard Area - Groups Manager), #14 (Dashboard Area - Individual Group settings), #15 (Dashboard Area - User Profiles with filtering.), #16 (Dashboard Area - Individual Profile. Notice how Profile Sections are split into tabs.), #17 (Dashboard Area - Global Settings.), #18 (Dashboard Area - All the shortcodes associated with ProfileGrid.)
profilegrid-user-profiles-groups-and-communities/profile-magic.php 92% from 13 tests
The primary PHP file in "ProfileGrid – User Profiles, Memberships, Groups and Communities" version 5.6.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("profilegrid-user-profiles-groups-and-communities.php" instead of "profile-magic.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
Good job! No executable or dangerous file extensions detected218,614 lines of code in 244 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 54,096 | 75,892 | 131,695 |
PHP | 157 | 6,988 | 1,167 | 49,562 |
JavaScript | 27 | 2,227 | 1,047 | 17,805 |
CSS | 23 | 2,243 | 252 | 15,335 |
SVG | 13 | 0 | 0 | 4,206 |
JSON | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 125.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 945.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 875 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 862 | 98.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 1.49% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
133 PNG files occupy 6.93MB with 4.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/images/performance.png | 36.41KB | 12.82KB | ▼ 64.80% |
admin/partials/images/general.png | 40.38KB | 13.12KB | ▼ 67.51% |
admin/partials/images/pg-woocommerce-wishlist-extension.png | 399.10KB | 142.51KB | ▼ 64.29% |
admin/partials/images/mailpoet.png | 15.79KB | 8.30KB | ▼ 47.40% |
admin/partials/images/userblogs.png | 19.55KB | 6.64KB | ▼ 66.03% |