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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.99ms] Passed 4 tests
This is a short check of server-side resources used by Product Specific Email Content for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.43 ▼1.97 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.47 ▼9.11 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 55.56 ▲13.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.84 ▼25.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.97 ▲0.23 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Product Specific Email Content for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▼0.09 | 1.73 ▲0.11 | 38.12 ▼7.03 |
Dashboard /wp-admin | 2,191 ▲11 | 5.51 ▼0.16 | 81.20 ▼5.26 | 38.78 ▲3.19 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.98 ▲0.01 | 36.35 ▼5.96 | 33.50 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.04 ▲4.88 | 667.91 ▲60.66 | 55.03 ▼19.87 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.22 ▲0.00 | 102.35 ▲1.47 | 43.79 ▲3.10 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/product-specific-email-content-for-woocommerce/public/partials/product-specific-email-content-for-woocommerce-public-display.php
- > /wp-content/plugins/product-specific-email-content-for-woocommerce/admin/partials/product-specific-email-content-for-woocommerce-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: email, woocommerce
product-specific-email-content-for-woocommerce/product-specific-email-content-for-woocommerce.php Passed 13 tests
The main PHP script in "Product Specific Email Content for WooCommerce" version 1.3.0 is automatically included on every request by WordPress
140 characters long description:
This plugin allows you to add content to the order emails per product. This is useful if a purchased product requires some more explanation.
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
Success! There were no dangerous files found in this plugin265 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 515 | 230 |
PO File | 1 | 6 | 5 | 28 |
CSS | 1 | 2 | 4 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.39MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 203.61KB | 46.82KB | ▼ 77.00% |
assets/screenshot-2.png | 194.84KB | 44.35KB | ▼ 77.24% |