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
- Install procedure had errors
- > Warning in wp-content/plugins/fluentforms-pdf/Classes/Controller/AvailableOptions.php+214
Use of undefined constant FLUENTFORM_FRAMEWORK_UPGRADE - assumed 'FLUENTFORM_FRAMEWORK_UPGRADE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.82ms] Passed 4 tests
Analyzing server-side resources used by PDF Generator For Fluent Forms - The Contact Form Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.95 ▼0.21 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.83 ▲0.98 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 56.04 ▲5.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 109.47 ▲16.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.50 ▲0.99 |
Server storage [IO: ▲5.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 551 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Generator For Fluent Forms - The Contact Form Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.68 ▼0.51 | 1.75 ▼0.26 | 43.83 ▲0.39 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.97 | 104.07 ▼5.24 | 38.87 ▼5.57 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.17 ▲0.17 | 40.28 ▲2.14 | 37.87 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 18.40 ▼4.72 | 636.23 ▲27.94 | 53.74 ▼0.34 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.02 | 98.94 ▲0.43 | 41.84 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/fluentforms-pdf/Classes/Controller/AvailableOptions.php+214
Use of undefined constant FLUENTFORM_FRAMEWORK_UPGRADE - assumed 'FLUENTFORM_FRAMEWORK_UPGRADE' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 211× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/Ttz.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/Table.php:8
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Writer/ObjectWriter.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/data/CJKdata.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/fluentforms-pdf/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/fluentforms-pdf/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/IndexEntry.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/DotTab.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/IndexInsert.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/fluentforms-pdf/vendor/mpdf/mpdf/src/Tag/S.php:5
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #7 in fluentforms-pdf/assets to your readme.txt
fluentforms-pdf/fluentforms-pdf.php 92% from 13 tests
The principal PHP file in "PDF Generator For Fluent Forms - The Contact Form Plugin" v. 1.1.7 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected78,142 lines of code in 403 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 389 | 10,781 | 11,580 | 76,372 |
Markdown | 2 | 128 | 0 | 621 |
JSON | 2 | 0 | 0 | 573 |
CSS | 2 | 65 | 18 | 405 |
XML | 3 | 11 | 0 | 73 |
YAML | 2 | 11 | 3 | 49 |
JavaScript | 2 | 10 | 1 | 46 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,007)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 59.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,007.00 |
Average method complexity | 13.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 286 | |
▷ Abstract classes | 10 | 3.50% |
▷ Concrete classes | 276 | 96.50% |
▷ Final classes | 13 | 4.71% |
Methods | 1,408 | |
▷ Static methods | 150 | 10.65% |
▷ Public methods | 1,215 | 86.29% |
▷ Protected methods | 58 | 4.12% |
▷ Private methods | 135 | 9.59% |
Functions | 35 | |
▷ Named functions | 6 | 17.14% |
▷ Anonymous functions | 29 | 82.86% |
Constants | 430 | |
▷ Global constants | 8 | 1.86% |
▷ Class constants | 422 | 98.14% |
▷ Public constants | 422 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/myclabs/deep-copy/doc/deep-clone.png | 13.68KB | 6.54KB | ▼ 52.22% |
assets/images/tabular.png | 22.77KB | 11.37KB | ▼ 50.06% |
vendor/myclabs/deep-copy/doc/clone.png | 12.09KB | 5.48KB | ▼ 54.70% |
assets/images/banner-white.png | 50.76KB | 25.05KB | ▼ 50.65% |
assets/images/basic_template.png | 5.62KB | 1.79KB | ▼ 68.08% |