Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.28MB] [CPU: ▲3.55ms] Passed 4 tests
An overview of server-side resources used by Custom Fields Account Registration For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 44.36 ▲4.36 |
Dashboard /wp-admin | 3.57 ▲0.27 | 50.75 ▲3.91 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.30 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 94.22 ▲6.94 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 44.53 ▲3.72 |
Settings /wp-admin/edit.php?post_type=wporg_custom_field&page=custom-fields-registration-settings | 3.48 | 39.30 |
All Register Fields /wp-admin/edit.php?post_type=wporg_custom_field | 3.54 | 43.11 |
Add New Field /wp-admin/post-new.php?post_type=wporg_custom_field | 3.50 | 46.56 |
Server storage [IO: ▲0.61MB] [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: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Fields Account Registration For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 13.24 ▼0.95 | 8.55 ▲6.76 | 42.27 ▼1.25 |
Dashboard /wp-admin | 2,250 ▲70 | 5.82 ▲0.19 | 89.51 ▲1.19 | 36.54 ▼8.77 |
Posts /wp-admin/edit.php | 2,159 ▲80 | 2.30 ▲0.27 | 37.68 ▲2.30 | 32.98 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,575 ▲24 | 23.50 ▲5.46 | 630.17 ▲4.43 | 35.91 ▼37.29 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.45 ▲0.29 | 97.69 ▼1.37 | 43.94 ▼1.64 |
Settings /wp-admin/edit.php?post_type=wporg_custom_field&page=custom-fields-registration-settings | 1,198 | 2.07 | 27.65 | 53.01 |
All Register Fields /wp-admin/edit.php?post_type=wporg_custom_field | 1,130 | 2.44 | 38.50 | 29.35 |
Add New Field /wp-admin/post-new.php?post_type=wporg_custom_field | 1,289 | 1.51 | 7.25 | 24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=wporg_custom_field
- > Error in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/backend/cfafwr_backend.php+288
Uncaught Error: Call to undefined function wc() in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/backend/cfafwr_backend.php:288
Stack trace:
#0 wp-admin/includes/template.php(1443): cusrom_field_meta_box_callback()
#1 wp-admin/edit-form-advanced.php(711): do_meta_boxes()
#2 wp-admin/post-new.php(75): require('/var/www/wordpr...')
#3 {main}
thrown
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
Please take a closer look at the following
- 5× 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/custom-fields-account-registration-for-woocommerce/main/backend/cfafwr_comman.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/resource/cfafwr-load-js-css.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/frontend/cfafwr_frontend.php:345
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/resource/cfafwr-language.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-account-registration-for-woocommerce/main/backend/cfafwr_backend.php:645
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wporg_custom_field
- > Network (severe)
wp-content/plugins/woocommerce/assets/css/admin.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Add New Custom Registration Field), #2 (General Setting Like Enable Disable Authentication And Labels, Text Change), #3 (Hide Show custom Fields On My Account Page), #4 (Ragistration Fields on My Account Page)
custom-fields-account-registration-for-woocommerce/custom_fields_registration_main.php 85% from 13 tests
The main PHP script in "Custom Fields Account Registration For Woocommerce" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-fields-account-registration-for-woocommerce.php" instead of "custom_fields_registration_main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,295 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 471 | 234 | 2,906 |
CSS | 6 | 100 | 45 | 1,332 |
PHP | 6 | 76 | 15 | 1,056 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/edit_icon.png | 2.53KB | 2.10KB | ▼ 17.15% |
assets/images/remove.png | 1.76KB | 1.64KB | ▼ 6.79% |
assets/images/remove_icon.png | 0.44KB | 0.56KB | 0.00% |
assets/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
assets/images/add_icon.png | 0.43KB | 0.52KB | 0.00% |