Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▼0.36ms] Passed 4 tests
An overview of server-side resources used by PDF Importer for Ninja Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 41.17 ▲1.00 |
Dashboard /wp-admin | 3.73 ▲0.38 | 56.26 ▼6.26 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 55.17 ▲5.42 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 96.66 ▼1.60 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.89 ▲8.81 |
Server storage [IO: ▲23.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 519 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_rnpdfimporterninjafrms_records |
wp_rnpdfimporterninjafrms_pdf_import |
wp_rnpdfimporterninjafrms_form_config |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
rednao_rnpdfimporterninjafrms_db_version |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Importer for Ninja Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲59 | 14.21 ▼0.56 | 1.76 ▲0.13 | 38.25 ▼5.45 |
Dashboard /wp-admin | 2,214 ▲36 | 5.65 ▼0.06 | 90.78 ▼22.49 | 41.42 ▼2.93 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.07 ▼0.01 | 40.57 ▲0.36 | 34.41 ▼7.20 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 23.08 ▼2.12 | 629.04 ▲20.06 | 54.58 ▼18.53 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.22 ▲0.03 | 97.94 ▲3.98 | 40.58 ▼1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 3 tables
- wp_rnpdfimporterninjafrms_pdf_import
- wp_rnpdfimporterninjafrms_form_config
- wp_rnpdfimporterninjafrms_records
- This plugin did not uninstall successfully, leaving 7 options in the database
- rednao_rnpdfimporterninjafrms_db_version
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/TEST.PHP
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdf/tutorial/tuto2.php
- 184× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObject.php:20
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\SubDictionary\\FieldJSONItem' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/JPDFGenerator/JSONItem/SubDictionary/PDFFields/FieldWithParent.php:11
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\Integration\\Processors\\Settings\\Forms\\Fields\\FieldSettingsBase' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/core/Integration/Processors/Settings/Forms/Fields/TextFieldSettings.php:14
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\Integration\\Processors\\Entry\\EntryItems\\EntryItemBase' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/core/Integration/Processors/Entry/EntryItems/SimpleTextWithAmountEntryItem.php:15
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdi/src/PdfParser/Type/PdfNumeric.php:16
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\Integration\\Processors\\Entry\\EntryItems\\EntryItemBase' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/core/Integration/Processors/Entry/EntryItems/DateTimeEntryItem.php:9
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/setasign/fpdi/src/PdfParser/Filter/FilterException.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/pdf-importer-for-ninjaforms-pro/vendor/phenx/php-font-lib/src/FontLib/TrueType/TableDirectoryEntry.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: pdf, forms, pdf builder, wpforms, wpform
pdf-importer-for-ninjaforms-pro/PDFImporterForNinjaForms.php 77% from 13 tests
The principal PHP file in "PDF Importer for Ninja Forms" v. 1.3.43 is loaded by WordPress automatically on each request
It is important to fix the following:
- 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: It is recommended to name the main PHP file as the plugin slug ("pdf-importer-for-ninjaforms-pro.php" instead of "PDFImporterForNinjaForms.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin50,353 lines of code in 427 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 337 | 7,753 | 7,776 | 38,979 |
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
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity 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.37 |
Average class complexity | 20.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,487.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 245.00 |
Code structure | ||
---|---|---|
Namespaces | 77 | |
Interfaces | 3 | |
Traits | 2 | |
Classes | 315 | |
▷ Abstract classes | 21 | 6.67% |
▷ Concrete classes | 294 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,910 | |
▷ Static methods | 236 | 12.36% |
▷ Public methods | 1,672 | 87.54% |
▷ Protected methods | 145 | 7.59% |
▷ Private methods | 93 | 4.87% |
Functions | 45 | |
▷ Named functions | 17 | 37.78% |
▷ Anonymous functions | 28 | 62.22% |
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.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/adIcons/wpform.png | 11.95KB | 3.97KB | ▼ 66.77% |
images/fieldIcons/dropdown.png | 0.40KB | 0.25KB | ▼ 36.54% |
images/adIcons/format_number.png | 2.10KB | 2.21KB | 0.00% |
images/fieldIcons/text.png | 2.97KB | 0.27KB | ▼ 91.03% |
vendor/setasign/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |