Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.46MB] [CPU: ▲0.36ms] Passed 4 tests
This is a short check of server-side resources used by PDF Importer for Gravity Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 43.39 ▲6.49 |
Dashboard /wp-admin | 3.80 ▲0.50 | 48.96 ▼1.78 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 45.60 ▼1.76 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 91.81 ▼1.52 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.39 ▲10.68 |
Server storage [IO: ▲23.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 519 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_rnpdfimportergravity_pdf_import |
wp_rnpdfimportergravity_form_config |
wp_rnpdfimportergravity_records |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
rednao_rnpdfimportergravity_db_version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Importer for Gravity Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 14.37 ▼0.01 | 1.70 ▲0.02 | 44.61 ▲5.01 |
Dashboard /wp-admin | 2,214 ▲37 | 5.58 ▲0.01 | 93.11 ▼6.92 | 41.99 ▼0.45 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.00 ▲0.05 | 38.24 ▼1.79 | 35.16 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.36 ▲0.16 | 693.80 ▲55.03 | 55.91 ▼2.26 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.19 ▲0.02 | 96.92 ▼1.17 | 43.20 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_rnpdfimportergravity_records
- wp_rnpdfimportergravity_pdf_import
- wp_rnpdfimportergravity_form_config
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- rednao_rnpdfimportergravity_db_version
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/pdf-importer-for-gravity/TEST.PHP
- > /wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdf/tutorial/tuto6.php
- 184× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\Streams\\PDFFlatStream' not found in wp-content/plugins/pdf-importer-for-gravity/JPDFGenerator/JSONItem/Streams/ContentStreamJSONItem.php:9
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\PDFLib\\core\\syntax\\CharCodes' not found in wp-content/plugins/pdf-importer-for-gravity/PDFLib/core/syntax/Numeric.php:22
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php:16
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\JSONItem\\SubDictionary\\FieldJSONItem' not found in wp-content/plugins/pdf-importer-for-gravity/JPDFGenerator/JSONItem/SubDictionary/PDFFields/ImagePDFField.php:14
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/pdf-importer-for-gravity/vendor/phenx/php-font-lib/src/FontLib/WOFF/File.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/pdf-importer-for-gravity/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\JPDFGenerator\\Appearance\\AppearanceBase' not found in wp-content/plugins/pdf-importer-for-gravity/JPDFGenerator/Appearance/DefaultImageAppearance.php:20
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\core\\Integration\\Processors\\Entry\\EntryItems\\EntryItemBase' not found in wp-content/plugins/pdf-importer-for-gravity/core/Integration/Processors/Entry/EntryItems/DateEntryItem.php:10
- > PHP Fatal error
Uncaught Error: Class 'rnpdfimporter\\PDFLib\\core\\acroform\\PDFAcroTerminal' not found in wp-content/plugins/pdf-importer-for-gravity/PDFLib/core/acroform/PDFAcroSignature.php:7
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/pdf-importer-for-gravity/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: pdf builder, wpforms, pdf, forms, wpform
pdf-importer-for-gravity/PDFImporterForGravity.php 77% from 13 tests
Analyzing the main PHP file in "PDF Importer for Gravity Forms" version 1.3.43
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pdf-importer-for-gravity.php" instead of "PDFImporterForGravity.php")
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 plugin50,539 lines of code in 427 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 337 | 7,783 | 7,776 | 39,165 |
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 tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,487)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 245)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,487.00 |
Average method complexity | 4.27 |
▷ 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,912 | |
▷ Static methods | 236 | 12.34% |
▷ Public methods | 1,674 | 87.55% |
▷ Protected methods | 145 | 7.58% |
▷ Private methods | 93 | 4.86% |
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.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fieldIcons/dropdown.png | 0.40KB | 0.25KB | ▼ 36.54% |
vendor/setasign/fpdf/tutorial/logo.png | 2.32KB | 2.26KB | ▼ 2.57% |
images/adIcons/stp.png | 10.54KB | 4.75KB | ▼ 54.92% |
images/adIcons/wpform.png | 11.95KB | 3.97KB | ▼ 66.77% |
images/fieldIcons/radio.png | 1.19KB | 1.29KB | 0.00% |