Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.28ms] Passed 4 tests
Server-side resources used by WCDPUE Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.14 ▼6.97 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.10 ▼4.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.86 ▼4.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.80 ▼9.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.64 ▲0.31 |
WCDPUE Lite /wp-admin/options-general.php?page=wcdpue-lite | 3.22 | 35.33 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_woocommerce_downloadable_product_emails_tld |
New WordPress options |
---|
db_upgraded |
tld_table_version |
widget_recent-comments |
theysaidso_admin_options |
tld-wcdpue-schedule-setting-value |
widget_theysaidso_widget |
tld_wcdpue_activation_date |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WCDPUE Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 13.29 ▼1.01 | 1.53 ▼0.09 | 38.37 ▼3.99 |
Dashboard /wp-admin | 2,249 ▲52 | 4.91 ▼0.19 | 114.12 ▼0.36 | 42.19 ▼4.42 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.08 ▲0.07 | 39.80 ▼3.55 | 39.06 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.36 ▼0.02 | 665.83 ▼14.80 | 71.12 ▲17.17 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.30 ▲0.05 | 104.64 ▼6.72 | 44.67 ▼4.30 |
WCDPUE Lite /wp-admin/options-general.php?page=wcdpue-lite | 969 | 1.90 | 25.13 | 33.00 |
Uninstaller [IO: ▲0.18MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the followingZombie tables detected upon uninstall: 1 table Zombie WordPress options detected upon uninstall: 9 options
- The plugin did not uninstall correctly, leaving 19 files (0.18MB) in the plugin directory
- (new file) assets/js/uilang.js
- (new file) assets/screenshot-1.png
- (new file) assets/js/js.cookie.js
- (new file) assets/screenshot-2.png
- (new file) assets/css/style.css
- (new file) assets/screenshot-3.PNG
- (new file) includes/admin/tld-clear-queue.php
- (new file) assets/screenshot-4.PNG
- (new file) assets/js/tld-scripts.js
- (new file) assets/screenshot-5.PNG
- ...
- wp_woocommerce_downloadable_product_emails_tld
- tld_table_version
- widget_theysaidso_widget
- widget_recent-posts
- tld_wcdpue_activation_date
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- tld-wcdpue-schedule-setting-value
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/tld-woocommerce-downloadable-product-update-emails/tld-wc-dl-product-update-emails.php
- > /wp-content/plugins/tld-woocommerce-downloadable-product-update-emails/includes/admin/tld-clear-queue.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tld-woocommerce-downloadable-product-update-emails/includes/tld-schedule-mail.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tld-woocommerce-downloadable-product-update-emails/includes/admin/tld-settings-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== tld-woocommerce-downloadable-product-update-emails ===
)
tld-woocommerce-downloadable-product-update-emails/tld-wc-dl-product-update-emails.php 85% from 13 tests
The main PHP file in "WCDPUE Lite" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.1" instead of "2.6.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tld-woocommerce-downloadable-product-update-emails.php" instead of "tld-wc-dl-product-update-emails.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin751 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 231 | 70 | 517 |
JavaScript | 3 | 54 | 14 | 166 |
CSS | 1 | 21 | 23 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
5 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.PNG | 22.95KB | 9.37KB | ▼ 59.18% |
assets/screenshot-1.png | 10.66KB | 5.91KB | ▼ 44.56% |
assets/screenshot-3.PNG | 92.49KB | 40.53KB | ▼ 56.18% |
assets/screenshot-2.png | 11.42KB | 5.86KB | ▼ 48.66% |
assets/screenshot-4.PNG | 4.70KB | 2.84KB | ▼ 39.66% |