Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.51MB] [CPU: ▼12.30ms] Passed 4 tests
Analyzing server-side resources used by PDF Generator Addon for Elementor Page Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 38.16 ▼0.84 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.46 ▲0.87 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 50.88 ▲6.04 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.56 | 37.91 ▼52.65 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.59 ▲3.41 |
Server storage [IO: ▲8.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 628 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Generator Addon for Elementor Page Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.93 ▼0.08 | 5.33 ▲3.78 | 38.38 ▼8.25 |
Dashboard /wp-admin | 2,235 ▲55 | 5.84 ▲0.24 | 100.98 ▲12.04 | 40.96 ▼4.48 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.40 ▲0.46 | 44.04 ▲6.92 | 35.46 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,576 ▲45 | 18.48 ▼4.46 | 616.88 ▲14.34 | 45.05 ▼6.89 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.48 ▲0.28 | 101.53 ▲1.08 | 43.26 ▼19.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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 50% 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 fix the following
- 237× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Barcode/S25.php:10
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Tag/Figure.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/setasign/fpdi/src/PdfParser/Type/PdfNull.php:16
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Otl.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Barcode/Code93.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Tag/Annotation.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Tag/Tts.php:5
- > PHP Notice
Undefined index: filename in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/data/out.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/mpdf/mpdf/src/Tag/Main.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/includes/mpdf/setasign/fpdi/src/PdfParser/Type/PdfBoolean.php:16
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
pdf-generator-addon-for-elementor-page-builder/pdf-generator-addon-for-elementor-page-builder.php Passed 13 tests
The primary PHP file in "PDF Generator Addon for Elementor Page Builder" version 1.7.2 is used by WordPress to initiate all plugin functionality
124 characters long description:
PDF Generator Addon for WordPress Elementor Page Builder allows to create a static look and generate PDF of pages and posts.
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
Everything looks great! No dangerous files found in this plugin83,028 lines of code in 465 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 424 | 12,193 | 13,450 | 79,564 |
Markdown | 13 | 481 | 0 | 1,472 |
CSS | 5 | 70 | 33 | 773 |
JSON | 8 | 0 | 0 | 705 |
YAML | 9 | 63 | 4 | 236 |
JavaScript | 2 | 19 | 60 | 200 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 7,021)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 56.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,021.00 |
Average method complexity | 12.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 20 | |
Traits | 8 | |
Classes | 302 | |
▷ Abstract classes | 8 | 2.65% |
▷ Concrete classes | 294 | 97.35% |
▷ Final classes | 14 | 4.76% |
Methods | 1,624 | |
▷ Static methods | 147 | 9.05% |
▷ Public methods | 1,405 | 86.51% |
▷ Protected methods | 72 | 4.43% |
▷ Private methods | 147 | 9.05% |
Functions | 40 | |
▷ Named functions | 15 | 37.50% |
▷ Anonymous functions | 25 | 62.50% |
Constants | 461 | |
▷ Global constants | 37 | 8.03% |
▷ Class constants | 424 | 91.97% |
▷ Public constants | 424 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.53MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/rtw_tech_support.png | 2.60KB | 1.94KB | ▼ 25.52% |
admin/assets/rtw_docs.png | 1.34KB | 1.30KB | ▼ 2.99% |
admin/assets/rtw_github.png | 3.58KB | 2.26KB | ▼ 36.68% |
public/images/pdf_down_icon.png | 2.66KB | 2.27KB | ▼ 14.56% |
public/images/pdf_icon.png | 2.02KB | 1.88KB | ▼ 7.15% |