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
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php+2636
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▲0.31MB] [CPU: ▼173.90ms] Passed 4 tests
Analyzing server-side resources used by WP WonderForm
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲1.22 | 19.01 ▼1.69 |
Dashboard /wp-admin | 3.96 ▲0.91 | 16.61 ▼23.68 |
Posts /wp-admin/edit.php | 3.96 ▲0.85 | 15.65 ▼26.56 |
Add New Post /wp-admin/post-new.php | 3.96 ▼1.47 | 13.79 ▼629.88 |
Media Library /wp-admin/upload.php | 3.96 ▲0.96 | 14.81 ▼15.47 |
WonderForm Player /wp-admin/admin.php?page=wf-player | 3.96 | 13.63 |
Server storage [IO: ▲22.16MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3,301 new files
Database: 15 new tables, 2 new options
New tables |
---|
wf_optionentry |
wf_option |
wf_formpost |
wf_module |
wf_categoryentry |
wf_formstep |
wf_formaction |
wf_setting |
wf_formstats |
wf_producttype |
... |
New WordPress options |
---|
wonderform_dir |
wonderform_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP WonderForm
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 15.81 ▼0.13 | 9.02 ▲1.01 | 44.49 ▼4.93 |
Dashboard /wp-admin | 2,987 ▲53 | 6.06 ▲0.08 | 137.05 ▼21.59 | 111.27 ▼7.76 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.70 ▼0.00 | 70.96 ▲0.51 | 91.00 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,508 ▼175 | 18.88 ▼0.03 | 356.38 ▼6.17 | 111.81 ▲7.05 |
Media Library /wp-admin/upload.php | 1,825 ▲18 | 5.02 ▲0.01 | 146.43 ▼4.12 | 123.20 ▲6.47 |
WonderForm Player /wp-admin/admin.php?page=wf-player | 680 | 1.96 | 34.34 | 35.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php+2636
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- The uninstall procedure has failed, leaving 2 options in the database
- wonderform_version
- wonderform_dir
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wf-player
- > Warning in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php+2665
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/dbal/bin/doctrine-dbal.php
- > /wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php
- > /wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/bin/doctrine.php
- 1679× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/debug/Tests/ExceptionHandlerTest.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpKernel\\Profiler\\ProfilerStorageInterface' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php:20
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\ORM\\Event\\LifecycleEventArgs' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php:32
- > PHP Fatal error
Uncaught Error: Class 'Swift_Mime_EmbeddedFile' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/lib/classes/Swift/EmbeddedFile.php:16
- > PHP Notice
Undefined variable: metadata in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/_files/TestEntity.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/routing/Tests/RouteCollectionTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\ORM\\Mapping\\ClassMetadataFactory' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/DisconnectedClassMetadataFactory.php:39
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/http-kernel/Tests/DependencyInjection/FragmentRendererPassTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\DBAL\\Exception\\ServerException' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/ConstraintViolationException.php:29
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/twig-bridge/NodeVisitor/TranslationNodeVisitor.php:21
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-wonderform/wonderform.php 77% from 13 tests
The main file in "WP WonderForm" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-wonderform.php" instead of "wonderform.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
These items require your attention
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/ca.crt
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt.crt
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt2.crt
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/intermediate.crt
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign.crt
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign2.crt
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/bin/doctrine.bat
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/doctrine/orm/docs/en/make.bat
- .exe - Executable in Windows
- ☣ wp-content/plugins/wp-wonderform/includes/extern/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,174 | 43,158 | 105,225 | 178,570 |
JavaScript | 189 | 35,573 | 51,727 | 153,188 |
CSS | 9 | 49 | 422 | 14,128 |
reStructuredText | 164 | 8,765 | 12,056 | 12,074 |
JSON | 52 | 8 | 0 | 4,272 |
Markdown | 61 | 867 | 0 | 2,755 |
C | 2 | 224 | 192 | 1,082 |
XML | 50 | 90 | 2 | 999 |
Twig | 28 | 190 | 42 | 958 |
XSD | 2 | 72 | 0 | 596 |
YAML | 23 | 42 | 3 | 262 |
Ant | 2 | 26 | 0 | 185 |
SVG | 1 | 0 | 0 | 172 |
DOS Batch | 2 | 17 | 1 | 104 |
Python | 2 | 69 | 144 | 81 |
make | 1 | 15 | 4 | 70 |
Bourne Shell | 4 | 13 | 0 | 55 |
C/C++ Header | 2 | 19 | 21 | 55 |
m4 | 2 | 13 | 12 | 46 |
HTML | 12 | 0 | 0 | 35 |
INI | 1 | 1 | 0 | 6 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 414.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 267 | |
Interfaces | 210 | |
Traits | 5 | |
Classes | 2,006 | |
▷ Abstract classes | 106 | 5.28% |
▷ Concrete classes | 1,900 | 94.72% |
▷ Final classes | 82 | 4.32% |
Methods | 15,499 | |
▷ Static methods | 743 | 4.79% |
▷ Public methods | 13,009 | 83.93% |
▷ Protected methods | 1,554 | 10.03% |
▷ Private methods | 936 | 6.04% |
Functions | 596 | |
▷ Named functions | 108 | 18.12% |
▷ Anonymous functions | 488 | 81.88% |
Constants | 907 | |
▷ Global constants | 10 | 1.10% |
▷ Class constants | 897 | 98.90% |
▷ Public constants | 897 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/public/assets/img/wf-light.png | 39.67KB | 14.83KB | ▼ 62.62% |
includes/public/assets/img/editor/livepreview/50.png | 1.09KB | 0.29KB | ▼ 73.93% |
includes/public/assets/img/editor/theme2.png | 3.38KB | 2.47KB | ▼ 27.02% |
includes/public/assets/img/editor/livepreview/v-blue.png | 0.96KB | 0.10KB | ▼ 89.07% |
includes/public/assets/img/editor/livepreview/20.png | 1.01KB | 0.17KB | ▼ 83.41% |