Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/modern-designs-for-gravity-forms/incfs/includes/class-freemius.php+7771
Trying to access array offset on value of type null
Server metrics [RAM: ▲4.85MB] [CPU: ▼274.55ms] Passed 4 tests
This is a short check of server-side resources used by Modern Designs for Gravity Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.75 ▲5.24 | 76.49 ▲23.16 |
Dashboard /wp-admin | 8.77 ▲5.36 | 56.99 ▲16.95 |
Posts /wp-admin/edit.php | 8.77 ▲5.13 | 58.85 ▲20.58 |
Add New Post /wp-admin/post-new.php | 10.65 ▲3.68 | 119.23 ▼1,153.54 |
Media Library /wp-admin/upload.php | 8.77 ▲5.48 | 42.71 ▲17.81 |
Upgrade ➤ /wp-admin/admin.php?page=modern-designs-for-gravity-forms-pricing | 8.77 | 43.89 |
Support Forum /wp-admin/admin.php?page=modern-designs-for-gravity-forms-wp-support-forum | 8.77 | 39.60 |
Contact Us /wp-admin/admin.php?page=modern-designs-for-gravity-forms-contact | 8.77 | 43.79 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.77 | 42.01 |
Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 184 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Modern Designs for Gravity Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲41 | 15.65 ▼0.13 | 6.90 ▲0.78 | 2.43 ▲0.03 |
Dashboard /wp-admin | 2,931 ▲70 | 6.09 ▼0.10 | 115.42 ▼16.82 | 169.19 ▲8.70 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.24 ▲0.00 | 63.06 ▼0.77 | 137.07 ▼7.38 |
Add New Post /wp-admin/post-new.php | 1,685 ▲17 | 22.34 ▲4.38 | 392.60 ▼2.36 | 154.90 ▼0.18 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.51 ▲0.05 | 139.50 ▼8.24 | 199.90 ▲16.35 |
Upgrade ➤ /wp-admin/admin.php?page=modern-designs-for-gravity-forms-pricing | 2,351 | 4.73 | 86.86 | 218.65 |
Support Forum /wp-admin/admin.php?page=modern-designs-for-gravity-forms-wp-support-forum | 1,372 | 3.12 | 81.44 | 122.12 |
Contact Us /wp-admin/admin.php?page=modern-designs-for-gravity-forms-contact | 1,752 | 4.31 | 75.55 | 109.03 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,430 | 2.45 | 53.47 | 114.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/modern-designs-for-gravity-forms/incfs/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 4 options
- fs_debug_mode
- fs_gdpr
- fs_accounts
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/ajax-loader.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/modern-designs-for-gravity-forms/incfs/templates/account/partials/addon.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: modern styles, material design, bootstrap, gravity forms, dark theme
modern-designs-for-gravity-forms/modern-designs-for-gravity-forms.php 92% from 13 tests
"Modern Designs for Gravity Forms" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected33,419 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 7,389 | 16,416 | 31,723 |
Sass | 2 | 49 | 0 | 1,274 |
JavaScript | 7 | 53 | 64 | 321 |
CSS | 13 | 1 | 6 | 101 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 84.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,164 | |
▷ Static methods | 173 | 14.86% |
▷ Public methods | 821 | 70.53% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 328 | 28.18% |
Functions | 96 | |
▷ Named functions | 94 | 97.92% |
▷ Anonymous functions | 2 | 2.08% |
Constants | 122 | |
▷ Global constants | 97 | 79.51% |
▷ Class constants | 25 | 20.49% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
incfs/assets/img/gravityforms-modern-designs.png | 3.15KB | 2.85KB | ▼ 9.48% |
incfs/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
incfs/assets/img/mdfgf.png | 9.16KB | 5.26KB | ▼ 42.58% |
incfs/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |