Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▲3.56ms] Passed 4 tests
A check of server-side resources used by PDF Forms Filler for WPForms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 39.35 ▼3.39 |
Dashboard /wp-admin | 4.00 ▲0.70 | 49.60 ▲0.49 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 53.80 ▲9.22 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 114.23 ▲16.00 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 41.51 ▲7.90 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.03 | 35.27 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Forms Filler for WPForms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲89 | 14.34 ▼0.05 | 1.63 ▼0.10 | 40.60 ▼4.25 |
Dashboard /wp-admin | 2,235 ▲57 | 5.66 ▼0.03 | 93.17 ▼18.41 | 47.16 ▲2.75 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.18 ▲0.16 | 45.26 ▲9.48 | 41.77 ▲7.31 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 24.92 ▲1.68 | 619.69 ▼75.07 | 76.91 ▲25.40 |
Media Library /wp-admin/upload.php | 1,457 ▲63 | 4.26 ▲0.12 | 96.81 ▼2.26 | 46.15 ▲4.63 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 989 | 2.22 | 26.64 | 31.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/pdf-forms-for-wpforms/modules/downloads.php+167
opendir(wp-content/uploads/pdf_forms_for_wpforms_downloads): failed to open dir: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/pdf-forms-for-wpforms/inc/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Class 'Pdf_Forms_For_WPForms_Service' not found in wp-content/plugins/pdf-forms-for-wpforms/modules/pdf-ninja.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/pdf-forms-for-wpforms/pdf-forms-for-wpforms.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/pdf-forms-for-wpforms/inc/class-tgm-plugin-activation.php:2109
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: pdf, download, attach, wpforms, filler...
pdf-forms-for-wpforms/pdf-forms-for-wpforms.php Passed 13 tests
"PDF Forms Filler for WPForms" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Build WPForms from PDF forms. Get PDFs filled automatically and attached to email messages and/or website responses on form submissions.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,496 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 979 | 2,047 | 4,172 |
PO File | 9 | 972 | 1,070 | 2,678 |
JavaScript | 65 | 557 | 142 | 2,075 |
CSS | 4 | 55 | 10 | 301 |
HTML | 4 | 18 | 0 | 270 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 145)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 352.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 145.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 235 | |
▷ Static methods | 37 | 15.74% |
▷ Public methods | 183 | 77.87% |
▷ Protected methods | 23 | 9.79% |
▷ Private methods | 29 | 12.34% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 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
PNG images were not found in this plugin