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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.39ms] Passed 4 tests
This is a short check of server-side resources used by Custom User Profile Fields for User Registration & Member Frontend Profiles with Paid Memberships Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.67 ▼0.43 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.29 ▲1.71 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.94 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.01 ▼12.11 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.87 ▼1.19 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom User Profile Fields for User Registration & Member Frontend Profiles with Paid Memberships Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.45 ▲0.10 | 1.85 ▼0.03 | 41.29 ▼8.06 |
Dashboard /wp-admin | 2,197 ▲23 | 5.63 ▲0.11 | 90.54 ▼3.65 | 38.54 ▼4.47 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▲0.01 | 41.89 ▲5.88 | 36.29 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.30 ▲0.29 | 625.60 ▼65.32 | 58.95 ▲2.18 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.18 ▲0.07 | 103.89 ▼15.14 | 42.52 ▼6.09 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pmpro-register-helper/shortcodes/pmpro_signup.php:159
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-register-helper/modules/register-form.php:152
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-register-helper/pmpro-register-helper.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-register-helper/modules/directory.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-register-helper/modules/profile.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-register-helper/modules/change-password.php:57
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmpro-register-helper/pmpro-register-helper.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in pmpro-register-helper/assets to your readme.txt
pmpro-register-helper/pmpro-register-helper.php Passed 13 tests
The main PHP script in "Custom User Profile Fields for User Registration & Member Frontend Profiles with Paid Memberships Pro" version 1.8.3 is automatically included on every request by WordPress
90 characters long description:
Add custom form fields to membership checkout and user profiles with Paid Memberships Pro.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,983 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 414 | 489 | 2,774 |
CSS | 5 | 12 | 7 | 130 |
PO File | 1 | 12 | 13 | 55 |
Markdown | 1 | 15 | 1 | 23 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 277.00 |
▷ Minimum class complexity | 277.00 |
▷ Maximum class complexity | 277.00 |
Average method complexity | 16.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 61 | 93.85% |
▷ Anonymous functions | 4 | 6.15% |
Constants | 3 | |
▷ Global constants | 3 | 100.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