Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.83ms] Passed 4 tests
This is a short check of server-side resources used by PDF Email on Save
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.46 ▼7.82 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.13 ▼0.92 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.70 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.36 ▼15.95 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 36.52 ▲0.76 |
PDF Email on Save /wp-admin/options-general.php?page=pdf-email-on-save | 3.27 | 32.32 |
Server storage [IO: ▲114.03MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 114.03MB)
Filesystem: 804 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Email on Save
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.80 ▲0.15 | 1.80 ▼0.26 | 37.28 ▼2.22 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.09 | 106.36 ▲5.29 | 40.28 ▼2.72 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.02 | 38.83 ▼1.84 | 33.69 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.27 ▲4.96 | 596.83 ▼65.77 | 60.70 ▲7.08 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.18 ▼0.12 | 94.67 ▼3.96 | 40.54 ▼4.34 |
PDF Email on Save /wp-admin/options-general.php?page=pdf-email-on-save | 810 | 2.16 | 23.84 | 32.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 61× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example12_paging_html.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example32_indic.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example47_progress_bars_simple_custom.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/utils/index.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example55_new_mPDF_v5-1_color_and_other_features.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/show_code.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example50_new_mPDF_3_features.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example15_headers_method_1.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example23_orientation.php
- > /wp-content/plugins/pdf-email-on-save/includes/mpdf/examples/example36_annotations_and_Attached_files.php
- 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Cannot assign an empty string to a string offset in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/cssmgr.php on line 1302
- > PHP Warning
Illegal string offset 'ID' in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/cssmgr.php on line 1355
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/pdf-email-on-save/includes/mpdf/mpdf.php on line 6387
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/ttfontsuni.php on line 613
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/ttfontsuni.php on line 1102
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/ttfontsuni.php on line 1102
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/ttfontsuni.php on line 1102
- > PHP Warning
Cannot assign an empty string to a string offset in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/cssmgr.php on line 1302
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pdf-email-on-save/includes/mpdf/classes/ttfontsuni.php on line 1102
- > PHP Warning
A non-numeric value encountered in wp-content/plugins/pdf-email-on-save/includes/mpdf/mpdf.php on line 6387
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: pdf, custom post types, email
pdf-email-on-save/pdf-email-on-save.php 92% from 13 tests
"PDF Email on Save" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected114,110 lines of code in 233 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 11,303 | 10,347 | 110,853 |
SVG | 2 | 0 | 0 | 2,213 |
CSS | 6 | 111 | 23 | 744 |
JSON | 3 | 12 | 0 | 123 |
Markdown | 2 | 43 | 0 | 96 |
PO File | 1 | 7 | 8 | 33 |
HTML | 1 | 4 | 0 | 32 |
XML | 1 | 3 | 0 | 16 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 8,314)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 1,542)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 341.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8,314.00 |
Average method complexity | 19.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,542.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 53 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 991 | |
▷ Static methods | 76 | 7.67% |
▷ Public methods | 928 | 93.64% |
▷ Protected methods | 48 | 4.84% |
▷ Private methods | 15 | 1.51% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 400 | |
▷ Global constants | 75 | 18.75% |
▷ Class constants | 325 | 81.25% |
▷ Public constants | 325 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.76MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/mpdf/examples/tiger2.png | 145.75KB | 47.19KB | ▼ 67.63% |
includes/mpdf/examples/alpha.png | 85.40KB | 33.26KB | ▼ 61.05% |
assets/screenshot-1.png | 92.00KB | 43.21KB | ▼ 53.04% |
includes/mpdf/examples/img3.png | 1.06KB | 0.20KB | ▼ 80.86% |
includes/mpdf/examples/img1.png | 0.98KB | 0.14KB | ▼ 86.10% |