Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.10ms] Passed 4 tests
Analyzing server-side resources used by WP PDF Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.95 ▲2.49 |
Dashboard /wp-admin | 3.38 ▲0.07 | 52.54 ▼3.72 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.56 ▼4.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.26 ▼6.45 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.75 ▼1.33 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wpexperts_pdf_option |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP PDF Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 14.94 ▲0.58 | 36.72 ▲35.21 | 43.70 ▲1.17 |
Dashboard /wp-admin | 2,211 ▲37 | 5.56 ▼0.08 | 94.02 ▲1.11 | 88.11 ▲45.10 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▼0.02 | 36.75 ▼1.92 | 32.80 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.13 ▲0.05 | 677.00 ▲18.75 | 63.72 ▲2.26 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.10 ▲0.04 | 104.21 ▼8.39 | 74.60 ▲29.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-pdf-generator/wp_objects_save_data.php:17
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (18 tag instead of maximum 10)
wp-pdf-generator/wp_objects_pdf.php 77% from 13 tests
"WP PDF Generator" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-pdf-generator.php" instead of "wp_objects_pdf.php")
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 3.0.1")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected381 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 7 | 175 | 269 |
JavaScript | 6 | 27 | 270 | 61 |
CSS | 2 | 1 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 28.57% |
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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pdf11.png | 0.47KB | 0.47KB | 0.00% |
images/images.png | 0.56KB | 0.56KB | 0.35% |
images/download.png | 0.64KB | 0.64KB | 0.15% |