Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+123
Undefined index: text_string
Server metrics [RAM: ▼0.29MB] [CPU: ▼15.76ms] Passed 4 tests
Analyzing server-side resources used by Save as PDF Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 33.60 ▼7.56 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.52 ▼3.29 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.97 ▼1.99 |
Add New Post /wp-admin/post-new.php | 4.64 ▼1.25 | 44.01 ▼48.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.38 ▼3.65 |
Restpack PDF /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php | 3.21 | 36.43 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
rpkeyoptions |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Save as PDF Button: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.33 ▼1.05 | 4.31 ▲2.61 | 42.55 ▼11.31 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▲0.95 | 98.25 ▼3.60 | 37.71 ▼3.96 |
Posts /wp-admin/edit.php | 2,096 ▲2 | 1.98 ▼0.03 | 34.57 ▼21.60 | 31.27 ▼11.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.49 ▼4.68 | 636.33 ▼48.76 | 50.37 ▼10.41 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.22 ▲0.04 | 98.87 ▼5.91 | 41.83 ▼2.26 |
Restpack PDF /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php | 1,412 | 2.08 | 28.67 | 26.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- rpkeyoptions
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+505
Undefined index: placeholder
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+497
Undefined index: textarea
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+500
Undefined index: readonly
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: display_pages
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: api_key
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: pdf_margins
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: pdf_header
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: pdf_footer
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: width
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: emulate_media
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: js
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: css
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+428
Undefined index: form_data
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+428
Undefined index: block_cookie_warnings
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+428
Undefined index: block_ads
- > GET request to /wp-admin/options-general.php?page=save-as-pdf/save-as-pdf.php
- > Notice in wp-content/plugins/save-as-pdf/save-as-pdf.php+398
Undefined index: http_headers
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/save-as-pdf/save-as-pdf.php:49
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: html2pdf, pdf, article to pdf, create pdf, convert to pdf...
save-as-pdf/save-as-pdf.php Passed 13 tests
The principal PHP file in "Save as PDF Button" v. 1.9.2 is loaded by WordPress automatically on each request
48 characters long description:
Allows visitors to save current page as PDF file
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin652 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 88 | 12 | 528 |
SVG | 11 | 0 | 0 | 116 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin