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.00MB] [CPU: ▼3.83ms] Passed 4 tests
Server-side resources used by Custom Thank You for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.10 ▼3.23 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.70 ▼2.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.62 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.37 ▼8.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.28 ▼0.72 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
ctyw_enable_fb_social_box |
ctyw_enable_twitter_social_box |
ctyw_enable_pinterest_social_box |
ctyw_notice_dismiss |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Thank You for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.54 ▲0.14 | 1.57 ▲0.12 | 37.30 ▼0.59 |
Dashboard /wp-admin | 2,192 ▲18 | 5.66 ▲0.05 | 81.32 ▼8.28 | 39.89 ▲1.53 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.03 | 33.19 ▼3.30 | 35.56 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,535 ▲10 | 18.17 ▼5.68 | 658.96 ▲34.86 | 69.08 ▲9.84 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.11 | 93.60 ▼10.00 | 42.36 ▼1.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- ctyw_enable_twitter_social_box
- widget_theysaidso_widget
- widget_recent-comments
- ctyw_notice_dismiss
- ctyw_enable_fb_social_box
- ctyw_enable_pinterest_social_box
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: receipt, invoice, woocommerce, redirect, checkout...
custom-thank-you-for-woocommerce/custom-thank-you-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Custom Thank You for WooCommerce" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- 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
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.6.0")
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
There were no executable files found in this plugin1,569 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 192 | 238 | 843 |
PO File | 3 | 105 | 114 | 333 |
CSS | 1 | 51 | 1 | 228 |
JavaScript | 3 | 34 | 65 | 161 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 45.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/next.png | 0.80KB | 0.73KB | ▼ 7.98% |
assets/images/prev.png | 0.82KB | 0.76KB | ▼ 6.80% |