Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.19ms] Passed 4 tests
This is a short check of server-side resources used by Download PDF After Submit Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.11 ▲7.99 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.89 ▼4.25 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.74 ▲0.65 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.21 ▼10.44 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.03 ▲1.28 |
View Entries /wp-admin/edit.php?post_type=infomat | 3.36 | 35.76 |
Add New /wp-admin/post-new.php?post_type=infomat | 3.35 | 39.72 |
Settings /wp-admin/edit.php?post_type=infomat&page=settings | 3.28 | 30.12 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Download PDF After Submit Form: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲148 | 13.75 ▼0.59 | 9.55 ▲7.91 | 44.91 ▲8.02 |
Dashboard /wp-admin | 2,231 ▲53 | 5.59 ▼0.12 | 89.39 ▼22.05 | 41.23 ▼1.07 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.03 ▲0.03 | 35.94 ▼6.06 | 32.73 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,553 ▲26 | 22.91 ▼0.19 | 622.51 ▼23.39 | 44.61 ▼11.67 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.23 ▲0.05 | 97.86 ▼4.94 | 43.99 ▲0.90 |
View Entries /wp-admin/edit.php?post_type=infomat | 1,112 | 1.90 | 38.18 | 29.98 |
Add New /wp-admin/post-new.php?post_type=infomat | 1,450 | 2.44 | 46.99 | 47.23 |
Settings /wp-admin/edit.php?post_type=infomat&page=settings | 2,230 | 14.94 | 489.63 | 80.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-pdf-after-submit-form/include/enqueue.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-pdf-after-submit-form/include/posttype.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=infomat&page=settings
- > Network (severe)
wp-content/plugins/download-pdf-after-submit-form//images/custom-gif.gif) - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=infomat&page=settings
- > Other (warning) in unknown
/wp-admin/edit.php?post_type=infomat&page=settings 210 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
download-pdf-after-submit-form/index.php 69% from 13 tests
The main PHP script in "Download PDF After Submit Form" version 2.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("download-pdf-after-submit-form.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,106 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 64 | 16 | 580 |
PHP | 3 | 23 | 53 | 421 |
Markdown | 1 | 59 | 0 | 104 |
JavaScript | 1 | 0 | 2 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom.png | 14.04KB | 5.32KB | ▼ 62.11% |
images/premium.png | 11.84KB | 5.25KB | ▼ 55.67% |
images/classic.png | 11.41KB | 4.52KB | ▼ 60.35% |
images/mordan.png | 11.92KB | 4.57KB | ▼ 61.69% |