Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼6.50ms] Passed 4 tests
An overview of server-side resources used by E2Pdf - Export To Pdf Tool for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 40.87 ▼0.57 |
Dashboard /wp-admin | 3.68 ▲0.33 | 47.42 ▼11.85 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 64.76 ▲16.96 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 74.89 ▼16.12 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 35.84 ▲2.56 |
Templates /wp-admin/admin.php?page=e2pdf-templates | 4.12 | 397.46 |
Settings /wp-admin/admin.php?page=e2pdf-settings | 4.08 | 399.33 |
License /wp-admin/admin.php?page=e2pdf-license | 3.63 | 378.79 |
Export /wp-admin/admin.php?page=e2pdf | 3.74 | 388.18 |
Server storage [IO: ▲11.93MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 463 new files
Database: 7 new tables, 11 new options
New tables |
---|
wp_e2pdf_pages |
wp_e2pdf_bulks |
wp_e2pdf_templates |
wp_e2pdf_entries |
wp_e2pdf_elements |
wp_e2pdf_datasets |
wp_e2pdf_revisions |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
e2pdf_license |
e2pdf_cache_fonts |
e2pdf_version |
e2pdf_nonce_key |
widget_recent-posts |
e2pdf_cache |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for E2Pdf - Export To Pdf Tool for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.54 ▼0.83 | 8.75 ▲7.09 | 41.94 ▼2.22 |
Dashboard /wp-admin | 2,261 ▲83 | 5.59 ▼0.24 | 80.60 ▼35.65 | 35.69 ▼5.87 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.02 ▼0.01 | 50.06 ▲14.06 | 46.08 ▲14.29 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.18 ▲0.02 | 682.08 ▲2.01 | 55.68 ▼1.19 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.26 ▲0.10 | 103.97 ▼6.26 | 44.61 ▼3.03 |
Templates /wp-admin/admin.php?page=e2pdf-templates | 1,200 | 1.91 | 30.34 | 33.47 |
Settings /wp-admin/admin.php?page=e2pdf-settings | 1,254 | 1.82 | 29.84 | 36.98 |
License /wp-admin/admin.php?page=e2pdf-license | 965 | 2.25 | 27.51 | 29.81 |
Export /wp-admin/admin.php?page=e2pdf | 1,146 | 1.79 | 27.44 | 26.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_e2pdf_bulks
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 77× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/e2pdf/classes/helper/e2pdf-shortcode.php
- > /wp-content/plugins/e2pdf/classes/view/page-e2pdf-settings.php
- > /wp-content/plugins/e2pdf/classes/helper/e2pdf-qrcode.php
- > /wp-content/plugins/e2pdf/classes/model/e2pdf-filter.php
- > /wp-content/plugins/e2pdf/classes/model/e2pdf-element.php
- > /wp-content/plugins/e2pdf/classes/model/e2pdf-action.php
- > /wp-content/plugins/e2pdf/classes/model/e2pdf-api.php
- > /wp-content/plugins/e2pdf/classes/helper/e2pdf-image.php
- > /wp-content/plugins/e2pdf/classes/helper/e2pdf-simplexmlelement.php
- > /wp-content/plugins/e2pdf/classes/view/metaboxes/e2pdf_templates_save.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
e2pdf/e2pdf.php Passed 13 tests
The principal PHP file in "E2Pdf - Export To Pdf Tool for WordPress" v. 1.20.25 is loaded by WordPress automatically on each request
18 characters long description:
Export to PDF tool
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected118,265 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 13,041 | 819 | 72,200 |
PHP | 77 | 4,196 | 3,063 | 38,414 |
CSS | 7 | 1,334 | 39 | 5,486 |
PO File | 1 | 769 | 1,131 | 1,407 |
HTML | 1 | 66 | 16 | 426 |
SVG | 84 | 0 | 97 | 332 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,253)
- Method cyclomatic complexity should be reduced to less than 100 (currently 373)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 164.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,253.00 |
Average method complexity | 12.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 373.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 54 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 754 | |
▷ Static methods | 6 | 0.80% |
▷ Public methods | 659 | 87.40% |
▷ Protected methods | 2 | 0.27% |
▷ Private methods | 93 | 12.33% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pdf.js/web/images/shadow.png | 0.26KB | 0.35KB | 0.00% |