Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests
Server-side resources used by Real Time Validation for Gravity Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.91 ▲0.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.63 ▼15.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.07 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.60 ▼18.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.93 ▼4.10 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Real Time Validation for Gravity Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.03 ▼0.59 | 1.73 ▲0.17 | 43.76 ▲1.53 |
Dashboard /wp-admin | 2,198 ▲27 | 5.59 ▼0.01 | 86.08 ▼0.34 | 38.18 ▼8.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 36.91 ▲2.52 | 32.59 ▼4.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.63 ▲0.52 | 681.61 ▲34.79 | 49.93 ▼5.92 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.02 | 102.10 ▼6.96 | 44.04 ▼9.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/includes/class-lv-pointers.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/real-time-validation-for-gravity-forms/public/includes/default_messages.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/includes/show-lv-on-form-list.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/views/gravity-form-date-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/views/gravity-form-time-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-time-validation-for-gravity-forms/public/includes/lv-all-ajax.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/views/gravity-form-address-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-time-validation-for-gravity-forms/admin/views/gravity-form-name-fields.php:5
- > PHP Fatal error
Uncaught Error: Class 'Gravity_Forms_Live_Validation' not found in wp-content/plugins/real-time-validation-for-gravity-forms/admin/includes/class-lv-dashboard.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: client side validation, gravity forms, gravity forms fields validation, jquery validation, live validation...
real-time-validation-for-gravity-forms/real-time-validation-for-gravity-form.php 85% from 13 tests
The main PHP script in "Real Time Validation for Gravity Forms" version 1.7.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("real-time-validation-for-gravity-forms.php" instead of "real-time-validation-for-gravity-form.php")
- Description: The description should be shorter than 140 characters (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,776 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 872 | 374 | 2,100 |
JavaScript | 7 | 841 | 409 | 1,921 |
CSS | 4 | 87 | 43 | 755 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 33.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 4 | 6.15% |
▷ Public methods | 62 | 95.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.62% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/warning.png | 1.32KB | 0.52KB | ▼ 60.44% |
admin/assets/img/pro-banner.png | 25.56KB | 12.17KB | ▼ 52.41% |
public/assets/images/check.png | 1.50KB | 0.64KB | ▼ 57.19% |
admin/assets/img/logo_wisetr.png | 2.37KB | 1.97KB | ▼ 16.91% |