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.00MB] [CPU: ▼2.81ms] Passed 4 tests
A check of server-side resources used by WooCommerce Birthday Discount Vouchers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.20 ▼0.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.31 ▼2.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.08 ▼1.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.88 ▲4.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.28 ▼6.02 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WooCommerce Birthday Discount Vouchers: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.38 ▼0.80 | 1.71 ▼0.34 | 38.33 ▼7.34 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼1.00 | 98.36 ▼12.00 | 38.93 ▼6.79 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.02 | 40.09 ▲2.95 | 34.50 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.12 ▼0.25 | 603.26 ▼62.99 | 50.89 ▼9.34 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.07 | 99.92 ▼6.40 | 44.72 ▼2.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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: birthday discount vouchers, woocommerce coupons, woocommerce discount, birthday reminder, woocommerce birthday coupons
birthday-discount-vouchers/birthday-discount-vouchers.php Passed 13 tests
"WooCommerce Birthday Discount Vouchers" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
This plugin allows you to send discount vouchers to your customers on their birthday
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,177 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 93 | 186 | 2,745 |
PHP | 4 | 213 | 123 | 1,133 |
JavaScript | 11 | 3 | 349 | 299 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 68.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |