Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.40ms] Passed 4 tests
A check of server-side resources used by Generate PDF using Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.08 ▼7.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.49 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.64 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.61 ▼10.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.00 ▼0.72 |
PDF with CF7 /wp-admin/admin.php?page=wp-cf7-send-pdf | 3.00 | 24.03 |
Server storage [IO: ▲17.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 618 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Generate PDF using Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.10 ▼0.53 | 1.70 ▼0.22 | 37.66 ▼0.99 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.13 | 81.18 ▼5.75 | 37.88 ▼0.88 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▼0.01 | 35.81 ▲0.26 | 30.21 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 18.38 ▼4.52 | 596.99 ▼63.33 | 62.99 ▲1.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▲0.01 | 98.13 ▼12.01 | 42.27 ▼4.93 |
PDF with CF7 /wp-admin/admin.php?page=wp-cf7-send-pdf | 28 | 0.42 | 0.06 | 3.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at 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\\BlockTag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/H4.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/setasign/fpdi/src/PdfParser/Type/PdfString.php:18
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/A.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Barcode/Code93.php:9
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/myclabs/deep-copy/src/DeepCopy/Filter/KeepFilter.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Del.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Footer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Cite.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:28
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Div.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp-cf7-send-pdf
- > Network (severe)
wp-admin/admin.php?page=wp-cf7-send-pdf - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: form, contact form, contact, pdf, contact corm 7...
generate-pdf-using-contact-form-7/generate-pdf-using-contact-form-7.php 92% from 13 tests
The primary PHP file in "Generate PDF using Contact Form 7" version 4.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
Code Analysis 95% 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
Success! There were no dangerous files found in this plugin89,903 lines of code in 451 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 392 | 11,225 | 11,801 | 76,055 |
JavaScript | 9 | 1,129 | 1,096 | 9,865 |
CSS | 11 | 176 | 99 | 2,054 |
Markdown | 9 | 385 | 0 | 1,180 |
JSON | 20 | 3 | 0 | 554 |
YAML | 6 | 36 | 4 | 117 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,024)
- 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.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 14.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 286 | |
▷ Abstract classes | 9 | 3.15% |
▷ Concrete classes | 277 | 96.85% |
▷ Final classes | 13 | 4.69% |
Methods | 1,363 | |
▷ Static methods | 139 | 10.20% |
▷ Public methods | 1,179 | 86.50% |
▷ Protected methods | 55 | 4.04% |
▷ Private methods | 129 | 9.46% |
Functions | 39 | |
▷ Named functions | 9 | 23.08% |
▷ Anonymous functions | 30 | 76.92% |
Constants | 433 | |
▷ Global constants | 11 | 2.54% |
▷ Class constants | 422 | 97.46% |
▷ Public constants | 422 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
assets/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/images/pdf-logo.png | 7.99KB | 4.14KB | ▼ 48.19% |
assets/images/arrow-right-top.png | 5.97KB | 2.68KB | ▼ 55.17% |