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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.76ms] Passed 4 tests
A check of server-side resources used by PDF Builder for Ninja Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.43 ▼5.77 |
Dashboard /wp-admin | 3.38 ▲0.03 | 46.46 ▼15.01 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.96 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.91 ▼9.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.82 ▲3.25 |
Entries /wp-admin/admin.php?page=rednaopdfninja_pdf_builder_entries | 3.29 | 30.93 |
Ninja Forms PDF Builder /wp-admin/admin.php?page=rednaopdfninja_pdf_builder | 3.30 | 34.34 |
Server storage [IO: ▲35.94MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Total filesystem usage must be limited to 25MB (currently using 35.94MB)
Filesystem: 664 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_rednaopdfninja_custom_field |
wp_rednaopdfninja_templates |
wp_rednaopdfninja_records |
wp_rednaopdfninja_form_config |
wp_rednaopdfninja_links |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
rednao_rednaopdfninja_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Builder for Ninja Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲45 | 14.16 ▼0.15 | 1.66 ▼0.32 | 42.34 ▲0.11 |
Dashboard /wp-admin | 2,225 ▲45 | 5.60 ▼0.07 | 88.36 ▼7.75 | 41.72 ▼1.76 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.97 ▼0.09 | 40.21 ▲0.12 | 37.37 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.05 ▼0.07 | 665.00 ▲62.63 | 50.25 ▼7.59 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.17 ▼0.03 | 96.23 ▼2.13 | 42.59 ▼2.29 |
Entries /wp-admin/admin.php?page=rednaopdfninja_pdf_builder_entries | 799 | 2.19 | 23.17 | 25.09 |
Ninja Forms PDF Builder /wp-admin/admin.php?page=rednaopdfninja_pdf_builder | 907 | 3.05 | 54.25 | 27.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 5 tables
- wp_rednaopdfninja_templates
- wp_rednaopdfninja_custom_field
- wp_rednaopdfninja_form_config
- wp_rednaopdfninja_links
- wp_rednaopdfninja_records
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- rednao_rednaopdfninja_db_version
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pdf-builder-for-ninja-forms/vendor/sabberworm/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/pdf-builder-for-ninja-forms/Pages/AdditionalPlugins.php
- > /wp-content/plugins/pdf-builder-for-ninja-forms/Pages/PDFBuilder.php
- > /wp-content/plugins/pdf-builder-for-ninja-forms/vendor/phpqrcode/index.php
- 280× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 45
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 58
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/src/Renderer/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'rednaoformpdfbuilder\\Integration\\Processors\\Entry\\EntryItems\\EntryItemBase' not found in wp-content/plugins/pdf-builder-for-ninja-forms/Integration/Adapters/NinjaForms/Entry/EntryItems/NinjaFormsAddressEntryItem.php:15
- > PHP Warning
include(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/printnode/printnode-php/examples/example-2-creating-a-child-account.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'rednaoformpdfbuilder\\Integration\\Processors\\Loader\\ProcessorLoaderBase' not found in wp-content/plugins/pdf-builder-for-ninja-forms/Integration/Adapters/NinjaForms/Loader/NinjaFormsProcessorLoader.php:16
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/src/FrameReflower/TableRowGroup.php:18
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/printnode/printnode-php/tests/AccountsTests.php:4
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-builder-for-ninja-forms/vendor/dompdf/dompdf/src/FrameDecorator/Table.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The first drag and drop pdf builder), #2 (You can easily customize the colors, sizes etc), #3 (Arrange multiple items without issues using the alignment tools)
pdf-builder-for-ninja-forms/rednaopdfninja.php 77% from 13 tests
The principal PHP file in "PDF Builder for Ninja Forms" v. 1.2.81 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pdf-builder-for-ninja-forms.php" instead of "rednaopdfninja.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/pdf-builder-for-ninja-forms/vendor/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 368 | 13,566 | 21,130 | 95,130 |
JavaScript | 19 | 1,956 | 1,691 | 12,338 |
CSS | 47 | 251 | 173 | 4,121 |
SVG | 14 | 0 | 7 | 2,740 |
Markdown | 10 | 318 | 0 | 1,029 |
JSON | 15 | 1 | 0 | 641 |
XML | 6 | 7 | 14 | 218 |
YAML | 4 | 19 | 2 | 108 |
HTML | 1 | 0 | 0 | 17 |
TypeScript | 1 | 0 | 0 | 6 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,487)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,487.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 355 | |
▷ Abstract classes | 25 | 7.04% |
▷ Concrete classes | 330 | 92.96% |
▷ Final classes | 0 | 0.00% |
Methods | 3,092 | |
▷ Static methods | 273 | 8.83% |
▷ Public methods | 2,585 | 83.60% |
▷ Protected methods | 324 | 10.48% |
▷ Private methods | 183 | 5.92% |
Functions | 29 | |
▷ Named functions | 6 | 20.69% |
▷ Anonymous functions | 23 | 79.31% |
Constants | 431 | |
▷ Global constants | 105 | 24.36% |
▷ Class constants | 326 | 75.64% |
▷ Public constants | 326 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/adIcons/stp.png | 10.54KB | 4.75KB | ▼ 54.92% |
images/toolIcons/start.png | 0.62KB | 0.88KB | 0.00% |
images/toolIcons/figures.png | 0.61KB | 0.74KB | 0.00% |
images/temporalImage-107x107.png | 13.46KB | 6.59KB | ▼ 51.05% |
images/toolIcons/image.png | 0.60KB | 0.70KB | 0.00% |