Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.37ms] Passed 4 tests
An overview of server-side resources used by Save Page to PDF
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 46.78 ▲3.69 |
Dashboard /wp-admin | 3.35 ▼0.00 | 51.82 ▼11.08 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.13 ▼2.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.42 ▼14.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.83 ▼1.47 |
PDF Settings /wp-admin/options-general.php?page=save-page-to-pdf | 3.22 | 32.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Save Page to PDF
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.54 ▼1.06 | 8.66 ▲6.86 | 42.76 ▲1.64 |
Dashboard /wp-admin | 2,199 ▲19 | 5.54 ▼0.16 | 84.78 ▼3.65 | 42.11 ▲2.93 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 35.04 ▼2.44 | 38.51 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.16 ▲5.68 | 658.65 ▼17.55 | 54.87 ▲5.69 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.18 ▼0.03 | 95.42 ▼5.03 | 43.39 ▼0.69 |
PDF Settings /wp-admin/options-general.php?page=save-page-to-pdf | 810 | 2.05 | 25.47 | 27.78 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=save-page-to-pdf
- > Notice in wp-content/plugins/save-page-to-pdf/save-page-to-pdf.php+53
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=save-page-to-pdf
- > Notice in wp-content/plugins/save-page-to-pdf/save-page-to-pdf.php+54
Undefined variable: checked
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/save-page-to-pdf/save-page-to-pdf.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: pdf, wkhtmltopdf
save-page-to-pdf/save-page-to-pdf.php Passed 13 tests
The entry point to "Save Page to PDF" version 1.0 is a PHP file that has certain tags in its header comment area
69 characters long description:
Allows visitors of your website to download the current page as a PDF
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected182 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 19 | 173 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin