Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.06MB] [CPU: ▲23.92ms] 75% from 4 tests
Server-side resources used by Divi Form Builder With Material Design
It is recommended to improve the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.06MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.45 | 62.91 ▲19.20 |
Dashboard /wp-admin | 8.94 ▲5.59 | 75.58 ▲8.26 |
Posts /wp-admin/edit.php | 8.94 ▲5.58 | 84.33 ▲33.62 |
Add New Post /wp-admin/post-new.php | 9.49 ▲3.60 | 123.48 ▲34.61 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 66.12 ▲34.74 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.94 | 66.68 |
Server storage [IO: ▲4.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 306 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wpt_form_entries |
New WordPress options |
---|
fs_debug_mode |
theysaidso_admin_options |
fs_accounts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Divi Form Builder With Material Design: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲78 | 14.16 ▼0.55 | 1.74 ▼0.25 | 27.50 ▼19.95 |
Dashboard /wp-admin | 2,228 ▲48 | 5.54 ▼0.10 | 97.37 ▲4.45 | 45.96 ▲2.73 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.03 ▲0.03 | 39.93 ▲2.55 | 37.99 ▲5.11 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 22.98 ▼0.35 | 619.28 ▼19.57 | 51.90 ▼1.25 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.25 ▲0.06 | 97.07 ▼1.71 | 44.00 ▲3.84 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,101 | 1.64 | 25.38 | 29.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/forms-for-divi/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 1 table
- wp_wpt_form_entries
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_active_plugins
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/forms-for-divi/resources/views/admin/getting_started.php
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPT\\DiviForms\\Form\\InputFields\\InputField' not found in wp-content/plugins/forms-for-divi/includes/classes/Form/InputFields/Checkboxes.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerInterface' not found in wp-content/plugins/forms-for-divi/vendor/wpt00ls/pimple/src/Pimple/Psr11/ServiceLocator.php:38
- > PHP Fatal error
Uncaught Error: Class 'WPT\\DiviForms\\Form\\Validator\\Constraints\\Constraint' not found in wp-content/plugins/forms-for-divi/includes/classes/Form/Validator/Constraints/Required.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_allowed_html() in wp-content/plugins/forms-for-divi/resources/views/partials/entry.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/forms-for-divi/resources/views/admin/listing.php:3
- > PHP Fatal error
Uncaught Error: Interface 'WPTools\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/forms-for-divi/vendor/wpt00ls/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/forms-for-divi/includes/modules/CheckboxesField/CheckboxesField.php:6
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/forms-for-divi/includes/modules/RadioButtonsField/RadioButtonsField.php:6
- > PHP Fatal error
Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/forms-for-divi/vendor/wpt00ls/pimple/src/Pimple/Exception/FrozenServiceException.php:36
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/forms-for-divi/includes/modules/FileUploadField/FileUploadField.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: divi forms, forms, material design, divi material design form, divi form...
forms-for-divi/forms-for-divi.php 92% from 13 tests
The primary PHP file in "Divi Form Builder With Material Design" version 8.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected41,477 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 206 | 9,436 | 19,486 | 40,140 |
SVG | 9 | 0 | 0 | 646 |
JavaScript | 8 | 36 | 61 | 222 |
JSON | 3 | 0 | 0 | 186 |
CSS | 25 | 22 | 9 | 162 |
reStructuredText | 1 | 96 | 139 | 97 |
XML | 1 | 2 | 0 | 16 |
Markdown | 1 | 5 | 0 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 38.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 4 | 3.25% |
▷ Concrete classes | 119 | 96.75% |
▷ Final classes | 2 | 1.68% |
Methods | 1,824 | |
▷ Static methods | 219 | 12.01% |
▷ Public methods | 1,420 | 77.85% |
▷ Protected methods | 18 | 0.99% |
▷ Private methods | 386 | 21.16% |
Functions | 142 | |
▷ Named functions | 101 | 71.13% |
▷ Anonymous functions | 41 | 28.87% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/forms-for-divi.png | 3.80KB | 2.41KB | ▼ 36.77% |