Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼3.17ms] Passed 4 tests
This is a short check of server-side resources used by PDF Importer for WPForms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 44.56 ▲3.07 |
Dashboard /wp-admin | 3.79 ▲0.44 | 50.63 ▼9.98 |
Posts /wp-admin/edit.php | 3.85 ▲0.48 | 52.25 ▼0.57 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 95.47 ▼5.18 |
Media Library /wp-admin/upload.php | 3.72 ▲0.48 | 38.52 ▲4.81 |
Our WPForms Plugins /wp-admin/admin.php?page=rnpdfimporter_additional_plugins | 3.63 | 33.72 |
PDF Importer for WPFORM /wp-admin/admin.php?page=rnpdfimporter | 3.65 | 38.04 |
Server storage [IO: ▲23.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 528 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_rnpdfimporter_pdf_import |
wp_rnpdfimporter_form_config |
wp_rnpdfimporter_records |
New WordPress options |
---|
theysaidso_admin_options |
rednao_rnpdfimporter_db_version |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
PDF Importer for WPForms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.60 ▲0.36 | 1.60 ▼0.08 | 35.69 ▼7.26 |
Dashboard /wp-admin | 2,222 ▲45 | 5.62 ▼0.04 | 94.02 ▲1.49 | 38.09 ▼6.39 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.00 ▼0.15 | 38.57 ▼3.00 | 35.40 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.31 ▲0.03 | 629.87 ▲25.52 | 51.87 ▲1.90 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.17 ▼0.01 | 98.75 ▲3.09 | 42.20 ▼1.88 |
Our WPForms Plugins /wp-admin/admin.php?page=rnpdfimporter_additional_plugins | 1,105 | 1.99 | 25.04 | 27.33 |
PDF Importer for WPFORM /wp-admin/admin.php?page=rnpdfimporter | 884 | 3.22 | 58.88 | 27.03 |
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
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_rnpdfimporter_form_config
- wp_rnpdfimporter_records
- wp_rnpdfimporter_pdf_import
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- rednao_rnpdfimporter_db_version
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/pdf-importer-for-wpform/TEST.PHP
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdf/tutorial/tuto6.php
- 191× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\PDFLib\\core\\objects\\PDFStream' not found in wp-content/plugins/pdf-importer-for-wpform/PDFLib/core/objects/PDFRawStream.php:9
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\PDFLib\\core\\acroform\\flags' not found in wp-content/plugins/pdf-importer-for-wpform/PDFLib/core/acroform/AcroChoiceFlags.php:17
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\db\\core\\RepositoryBase' not found in wp-content/plugins/pdf-importer-for-wpform/core/db/TemplateRepository.php:11
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\Integration\\Processors\\Entry\\EntryProcessorBase' not found in wp-content/plugins/pdf-importer-for-wpform/core/Integration/Adapters/WPForm/Entry/WPFormEntryProcessor.php:37
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\SubDictionary\\FieldJSONItem' not found in wp-content/plugins/pdf-importer-for-wpform/JPDFGenerator/JSONItem/SubDictionary/PDFFields/TextPDFField.php:13
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/pdf-importer-for-wpform/vendor/setasign/fpdi/src/PdfParser/CrossReference/LineReader.php:22
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\Appearance\\Layout\\LayoutBase' not found in wp-content/plugins/pdf-importer-for-wpform/JPDFGenerator/Appearance/Layout/SingleLineTextLayout.php:9
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\PageBase' not found in wp-content/plugins/pdf-importer-for-wpform/Pages/Settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\Streams\\StreamJSONItemBase' not found in wp-content/plugins/pdf-importer-for-wpform/JPDFGenerator/JSONItem/Streams/RawJSONItem.php:7
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\SubDictionary\\FieldJSONItem' not found in wp-content/plugins/pdf-importer-for-wpform/JPDFGenerator/JSONItem/SubDictionary/PDFFields/ImagePDFField.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/wpform.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/pagebuilder.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/stp128.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/pdfbuilder.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/repeater.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/format_number.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=rnpdfimporter_additional_plugins
- > Network (severe)
wp-content/plugins/pdf-importer-for-wpform/images/adicons/calculation.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wpforms, wpform, forms, pdf builder, pdf
pdf-importer-for-wpform/PDFImporterForWPForm.php 77% from 13 tests
The principal PHP file in "PDF Importer for WPForms" v. 1.3.43 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("pdf-importer-for-wpform.php" instead of "PDFImporterForWPForm.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin51,011 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 344 | 7,899 | 7,862 | 39,637 |
CSS | 7 | 955 | 125 | 7,566 |
HTML | 59 | 72 | 0 | 3,240 |
JSON | 6 | 0 | 0 | 331 |
Markdown | 5 | 54 | 0 | 168 |
XML | 3 | 4 | 1 | 32 |
JavaScript | 9 | 12 | 218 | 31 |
TypeScript | 1 | 1 | 0 | 6 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,487)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 245)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,487.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 245.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 3 | |
Traits | 2 | |
Classes | 322 | |
▷ Abstract classes | 21 | 6.52% |
▷ Concrete classes | 301 | 93.48% |
▷ Final classes | 0 | 0.00% |
Methods | 1,952 | |
▷ Static methods | 236 | 12.09% |
▷ Public methods | 1,710 | 87.60% |
▷ Protected methods | 149 | 7.63% |
▷ Private methods | 93 | 4.76% |
Functions | 46 | |
▷ Named functions | 18 | 39.13% |
▷ Anonymous functions | 28 | 60.87% |
Constants | 336 | |
▷ Global constants | 7 | 2.08% |
▷ Class constants | 329 | 97.92% |
▷ Public constants | 329 | 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
15 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/adIcons/repeater.png | 1.57KB | 1.49KB | ▼ 5.53% |
images/fieldIcons/text.png | 2.97KB | 0.27KB | ▼ 91.03% |
images/fieldIcons/radio.png | 1.19KB | 1.29KB | 0.00% |
images/fieldIcons/signature.png | 0.91KB | 0.74KB | ▼ 19.02% |
images/adIcons/format_number.png | 2.10KB | 2.21KB | 0.00% |