Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > User error in wp-content/plugins/forms-by-made-it/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.36ms] Passed 4 tests
This is a short check of server-side resources used by Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 6.74 ▼34.77 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.48 ▼48.93 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 13.81 ▼34.72 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.33 ▼87.00 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.48 ▼28.49 |
Server storage [IO: ▲15.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,076 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Forms
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,059 ▲2,313 | 14.45 ▲0.20 | 5.92 ▲4.05 | 42.53 ▲0.54 |
Dashboard /wp-admin | 4,354 ▲2,166 | 5.63 ▲0.76 | 127.16 ▲18.66 | 67.10 ▲21.47 |
Posts /wp-admin/edit.php | 4,252 ▲2,163 | 2.46 ▲0.42 | 57.33 ▲22.98 | 43.81 ▲6.23 |
Add New Post /wp-admin/post-new.php | 3,660 ▲2,123 | 20.57 ▼2.42 | 680.51 ▲39.30 | 36.76 ▼15.51 |
Media Library /wp-admin/upload.php | 3,539 ▲2,148 | 4.72 ▲0.46 | 108.27 ▲8.41 | 41.31 ▼2.72 |
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
- This plugin did not uninstall without warnings or errors
- > User error in wp-content/plugins/forms-by-made-it/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
- The uninstall procedure has failed, leaving 7 options in the database
- madeit_form_db_v
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 584× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php:44
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php:44
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/test/Model/CreateContactTest.php:41
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php:43
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/test/Model/Body1Test.php:41
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php:43
- > PHP Fatal error
Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php:43
- > PHP Warning
Use of undefined constant MADEIT_FORM_DIR - assumed 'MADEIT_FORM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/forms-by-made-it/actions/Mailerlite.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
8 plugin tags: form submit, contact form, newsletter, email, contact...
forms-by-made-it/madeit-form.php 92% from 13 tests
The main file in "Forms" v. 2.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("forms-by-made-it.php" instead of "madeit-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin247,307 lines of code in 1,013 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 25 | 2 | 0 | 141,434 |
PHP | 659 | 20,526 | 78,853 | 88,197 |
Markdown | 263 | 4,562 | 0 | 12,994 |
JavaScript | 31 | 281 | 226 | 1,893 |
CSS | 18 | 121 | 98 | 1,852 |
PO File | 1 | 190 | 233 | 453 |
Sass | 12 | 74 | 12 | 439 |
XML | 1 | 1 | 0 | 20 |
YAML | 2 | 0 | 0 | 14 |
Bourne Shell | 1 | 4 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 841.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 599 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 599 | 100.00% |
▷ Final classes | 35 | 5.84% |
Methods | 9,119 | |
▷ Static methods | 1,794 | 19.67% |
▷ Public methods | 8,809 | 96.60% |
▷ Protected methods | 166 | 1.82% |
▷ Private methods | 144 | 1.58% |
Functions | 574 | |
▷ Named functions | 44 | 7.67% |
▷ Anonymous functions | 530 | 92.33% |
Constants | 525 | |
▷ Global constants | 4 | 0.76% |
▷ Class constants | 521 | 99.24% |
▷ Public constants | 510 | 97.89% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
admin/css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/icon-128x128.png | 21.35KB | 1.99KB | ▼ 90.70% |
admin/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
admin/css/smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |