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: ▲0.77MB] [CPU: ▼0.43ms] Passed 4 tests
A check of server-side resources used by PDF Forms Filler for CF7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 42.18 ▲2.89 |
Dashboard /wp-admin | 4.08 ▲0.78 | 50.14 ▲1.87 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 53.86 ▲4.37 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 89.12 ▼10.87 |
Media Library /wp-admin/upload.php | 4.01 ▲0.77 | 45.05 ▲11.47 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.11 | 34.95 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Forms Filler for CF7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲89 | 14.26 ▼0.25 | 1.63 ▼0.35 | 39.72 ▼4.57 |
Dashboard /wp-admin | 2,244 ▲70 | 5.64 ▲0.04 | 93.29 ▼8.51 | 42.13 ▼0.99 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.16 ▲0.22 | 42.60 ▲2.03 | 40.09 ▲3.96 |
Add New Post /wp-admin/post-new.php | 1,563 ▲32 | 23.67 ▲0.83 | 685.55 ▲68.86 | 70.83 ▲7.16 |
Media Library /wp-admin/upload.php | 1,457 ▲60 | 4.27 ▲0.09 | 101.89 ▲1.88 | 47.38 ▲3.76 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 989 | 2.22 | 28.47 | 31.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/pdf-forms-for-contact-form-7/modules/downloads.php+164
opendir(wp-content/uploads/wpcf7_pdf_forms_downloads): failed to open dir: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pdf-forms-for-contact-form-7/wpcf7-pdf-forms.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WPCF7_Service' not found in wp-content/plugins/pdf-forms-for-contact-form-7/modules/service.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPCF7_Pdf_Forms_Service' not found in wp-content/plugins/pdf-forms-for-contact-form-7/modules/pdf-ninja.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/pdf-forms-for-contact-form-7/inc/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/pdf-forms-for-contact-form-7/pdf-forms-for-contact-form-7.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/pdf-forms-for-contact-form-7/inc/class-tgm-plugin-activation.php:2109
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/pdf-forms-for-contact-form-7/wpcf7-pdf-forms.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/pdf-forms-for-contact-form-7/wpcf7-pdf-forms.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: download, contact form, email, filler, pdf...
pdf-forms-for-contact-form-7/pdf-forms-for-contact-form-7.php Passed 13 tests
This is the main PHP file of "PDF Forms Filler for CF7" version 2.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
Build Contact Form 7 forms from PDF forms. Get PDFs auto-filled and attached to email messages and/or website responses on form submission.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,222 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,115 | 2,145 | 4,853 |
PO File | 10 | 1,478 | 1,792 | 3,911 |
JavaScript | 63 | 534 | 113 | 1,807 |
HTML | 7 | 33 | 0 | 365 |
CSS | 3 | 54 | 0 | 285 |
YAML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 79.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 483.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 260 | |
▷ Static methods | 37 | 14.23% |
▷ Public methods | 197 | 75.77% |
▷ Protected methods | 23 | 8.85% |
▷ Private methods | 40 | 15.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin