Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.03ms] Passed 4 tests
Analyzing server-side resources used by Gravity PDF
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.42 ▲3.20 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.23 ▲1.52 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.83 ▼6.28 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.27 ▲1.44 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.88 ▲5.01 |
Server storage [IO: ▲15.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,358 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity PDF
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.31 ▼0.42 | 1.62 ▼0.23 | 36.41 ▼10.48 |
Dashboard /wp-admin | 2,221 ▲46 | 5.64 ▼0.02 | 93.81 ▼12.01 | 43.32 ▼3.47 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.09 ▲0.07 | 41.94 ▼0.41 | 37.94 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.34 ▲0.51 | 590.48 ▲5.68 | 52.05 ▲1.02 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.21 ▲0.01 | 97.89 ▲0.46 | 42.69 ▼1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 387× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/mpdf/mpdf/src/Tag/Header.php:5
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/mpdf/mpdf/src/Tag/Details.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GFPDF_Vendor\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/monolog/src/Monolog/Formatter/MongoDBFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/league/uri/src/Http.php:21
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/setasign/fpdi/src/PdfParser/Type/PdfStream.php:25
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/setasign/fpdi/src/PdfParser/Filter/FilterException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/monolog/src/Monolog/Handler/NativeMailerHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'GFPDF_Vendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/gravity-forms-pdf-extended/vendor_prefixed/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #17, #18 in gravity-forms-pdf-extended/assets to your readme.txt
gravity-forms-pdf-extended/pdf.php 92% from 13 tests
This is the main PHP file of "Gravity PDF" version 6.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-pdf-extended.php" instead of "pdf.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin113,096 lines of code in 930 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 858 | 7,512 | 49,446 | 108,010 |
JSON | 5 | 0 | 0 | 2,592 |
Sass | 43 | 299 | 0 | 1,667 |
CSS | 3 | 65 | 18 | 406 |
Markdown | 6 | 99 | 0 | 321 |
JavaScript | 12 | 0 | 413 | 77 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,027)
- Method cyclomatic complexity should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 31.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,027.00 |
Average method complexity | 6.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 98 | |
Interfaces | 66 | |
Traits | 18 | |
Classes | 669 | |
▷ Abstract classes | 31 | 4.63% |
▷ Concrete classes | 638 | 95.37% |
▷ Final classes | 51 | 7.99% |
Methods | 4,491 | |
▷ Static methods | 463 | 10.31% |
▷ Public methods | 3,704 | 82.48% |
▷ Protected methods | 423 | 9.42% |
▷ Private methods | 364 | 8.11% |
Functions | 115 | |
▷ Named functions | 9 | 7.83% |
▷ Anonymous functions | 106 | 92.17% |
Constants | 758 | |
▷ Global constants | 15 | 1.98% |
▷ Class constants | 743 | 98.02% |
▷ Public constants | 637 | 85.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/templates/images/zadani.png | 42.81KB | 42.51KB | ▼ 0.72% |
src/templates/images/focus-gravity.png | 49.37KB | 48.93KB | ▼ 0.88% |
src/templates/images/blank-slate.png | 36.38KB | 35.54KB | ▼ 2.29% |
src/assets/images/cap-paws-sitting.png | 24.94KB | 8.95KB | ▼ 64.13% |
src/templates/images/rubix.png | 44.43KB | 43.85KB | ▼ 1.31% |