Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.15MB] [CPU: ▼14.21ms] Passed 4 tests
A check of server-side resources used by Rotativa.HQ PDF Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.81 ▼5.78 |
Dashboard /wp-admin | 3.34 ▲0.04 | 56.67 ▼4.92 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.99 ▼8.01 |
Add New Post /wp-admin/post-new.php | 5.17 ▼0.71 | 67.80 ▼38.13 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.65 ▲4.10 |
Rotativa /wp-admin/tools.php?page=rotativa | 3.26 | 33.47 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Rotativa.HQ PDF Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.97 ▼0.41 | 6.84 ▲4.91 | 42.56 ▼0.88 |
Dashboard /wp-admin | 2,236 ▲45 | 5.12 ▲0.21 | 103.09 ▲2.69 | 41.17 ▼1.79 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.49 ▲0.45 | 40.89 ▲3.29 | 33.00 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 23.47 ▲5.15 | 668.66 ▲19.32 | 36.56 ▼26.90 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.47 ▲0.28 | 98.78 ▼5.59 | 43.40 ▼4.02 |
Rotativa /wp-admin/tools.php?page=rotativa | 1,410 | 2.60 | 53.40 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% 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
- 5 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=rotativa
- > Notice in wp-content/plugins/rotativa/admin/class-rotativa-admin.php+579
Undefined index: options
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rotativa/public/partials/rotativa-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/rotativa/admin/partials/rotativa-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: html, cloud, pdf
rotativa/rotativa.php Passed 13 tests
The main PHP script in "Rotativa.HQ PDF Generator" version 1.2.4 is automatically included on every request by WordPress
66 characters long description:
Convert HTML to PDF in the cloud in a extremely easy and fast way.
Code Analysis Passed 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
There were no executable files found in this plugin2,531 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 254 | 4 | 1,538 |
PHP | 12 | 386 | 622 | 808 |
JavaScript | 4 | 47 | 0 | 158 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin