Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲2.69MB] [CPU: ▲13.38ms] Passed 4 tests
Analyzing server-side resources used by Contact Form By Mega Forms - Drag and Drop Form Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.10 ▲2.63 | 61.35 ▲20.54 |
Dashboard /wp-admin | 6.07 ▲2.76 | 63.31 ▲10.87 |
Posts /wp-admin/edit.php | 6.12 ▲2.76 | 71.28 ▲18.74 |
Add New Post /wp-admin/post-new.php | 8.58 ▲2.69 | 105.39 ▲3.41 |
Media Library /wp-admin/upload.php | 5.93 ▲2.69 | 55.43 ▲20.49 |
Settings /wp-admin/admin.php?page=mega-forms-settings | 5.99 | 56.95 |
Import / Export /wp-admin/admin.php?page=mega-forms-import-export | 5.92 | 50.10 |
Entries /wp-admin/admin.php?page=mega-forms-entries | 5.92 | 50.07 |
Support /wp-admin/admin.php?page=mega-forms-help | 5.90 | 49.92 |
Mega Forms /wp-admin/admin.php?page=mega-forms | 6.04 | 51.05 |
Server storage [IO: ▲2.62MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 351 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_mf_entries |
wp_mf_formsmeta |
wp_mf_entriesmeta |
wp_mf_forms |
wp_mf_sessions |
New WordPress options |
---|
widget_recent-comments |
megaforms_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form By Mega Forms - Drag and Drop Form Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲88 | 14.69 ▲0.34 | 1.68 ▲0.04 | 37.84 ▼6.40 |
Dashboard /wp-admin | 2,254 ▲73 | 5.61 ▼0.06 | 97.72 ▼16.01 | 41.43 ▼1.81 |
Posts /wp-admin/edit.php | 2,156 ▲53 | 1.99 ▼0.02 | 39.04 ▼2.58 | 36.75 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.14 ▼0.08 | 587.64 ▼59.60 | 69.00 ▲14.39 |
Media Library /wp-admin/upload.php | 1,463 ▲69 | 4.21 ▲0.03 | 95.36 ▼1.58 | 41.53 ▲0.38 |
Settings /wp-admin/admin.php?page=mega-forms-settings | 2,185 | 3.04 | 78.54 | 31.67 |
Import / Export /wp-admin/admin.php?page=mega-forms-import-export | 1,168 | 2.52 | 57.06 | 29.66 |
Entries /wp-admin/admin.php?page=mega-forms-entries | 1,076 | 2.07 | 39.01 | 22.89 |
Support /wp-admin/admin.php?page=mega-forms-help | 1,078 | 1.73 | 27.62 | 22.40 |
Mega Forms /wp-admin/admin.php?page=mega-forms | 1,090 | 1.80 | 28.10 | 29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_mf_entries
- wp_mf_formsmeta
- wp_mf_entriesmeta
- wp_mf_sessions
- wp_mf_forms
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- megaforms_db_version
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mega-forms-import-export
- > Warning in wp-content/plugins/mega-forms/admin/partials/views/import-export-view/mega-import-export-render.php+196
Invalid argument supplied for foreach()
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
Please fix the following
- 72× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/sabberworm/php-css-parser/src/RuleSet/AtRuleSet.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/css-selector/XPath/Extension/NodeExtension.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/css-selector/Node/AttributeNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/sabberworm/php-css-parser/src/Value/Value.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/css-selector/Node/ElementNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/mega-forms/common/partials/libraries/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
mega-forms/mega-forms.php 92% from 13 tests
"Contact Form By Mega Forms - Drag and Drop Form Builder" version 1.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected36,946 lines of code in 265 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 225 | 5,369 | 10,968 | 24,958 |
PO File | 2 | 2,254 | 2,662 | 5,380 |
JavaScript | 14 | 1,259 | 385 | 5,142 |
JSON | 9 | 0 | 0 | 569 |
CSS | 10 | 64 | 0 | 540 |
SVG | 4 | 2 | 2 | 335 |
XML | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 279.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 186 | |
▷ Abstract classes | 13 | 6.99% |
▷ Concrete classes | 173 | 93.01% |
▷ Final classes | 2 | 1.16% |
Methods | 1,495 | |
▷ Static methods | 199 | 13.31% |
▷ Public methods | 1,239 | 82.88% |
▷ Protected methods | 120 | 8.03% |
▷ Private methods | 136 | 9.10% |
Functions | 83 | |
▷ Named functions | 56 | 67.47% |
▷ Anonymous functions | 27 | 32.53% |
Constants | 57 | |
▷ Global constants | 9 | 15.79% |
▷ Class constants | 48 | 84.21% |
▷ Public constants | 35 | 72.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/close_white_20dp.png | 0.18KB | 0.21KB | 0.00% |
admin/assets/images/close_black_20dp.png | 0.13KB | 0.17KB | 0.00% |
admin/assets/images/arrow-down.png | 0.18KB | 0.20KB | 0.00% |