Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.20ms] Passed 4 tests
An overview of server-side resources used by WPMK PDF Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.30 ▲5.63 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.00 ▼6.95 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.29 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.95 ▼8.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.02 ▲3.20 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
wpmk_pdf_option |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WPMK PDF Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲205 | 17.96 ▲3.59 | 10.79 ▲8.97 | 42.36 ▲2.75 |
Dashboard /wp-admin | 2,224 ▲63 | 5.98 ▲0.36 | 97.23 ▼7.68 | 90.06 ▲46.53 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 3.29 ▲1.28 | 39.81 ▼0.64 | 32.44 ▼5.64 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 24.31 ▲1.34 | 654.79 ▼54.92 | 34.77 ▼26.89 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 5.24 ▲1.05 | 106.17 ▲1.71 | 92.22 ▲50.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Admin Screen), #2 (Preview Screen), #3 (Downloaded PDF Preview)
- Requires php: Invalid version format
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
wpmk-pdf-generator/wpmk-pdf.php 85% from 13 tests
The main file in "WPMK PDF Generator" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpmk-pdf-generator.php" instead of "wpmk-pdf.php")
- 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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin289 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 142 | 216 |
CSS | 1 | 1 | 0 | 45 |
JavaScript | 4 | 19 | 270 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.06MB with 0.57MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 287.85KB | 92.15KB | ▼ 67.99% |
screenshot-2.png | 523.78KB | 158.01KB | ▼ 69.83% |
assets/images/pdf-icon.png | 0.12KB | 0.11KB | ▼ 9.60% |
screenshot-1.png | 277.41KB | 92.99KB | ▼ 66.48% |