Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.79ms] Passed 4 tests
Analyzing server-side resources used by Gift upon purchase for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.97 ▼2.98 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.90 ▼1.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.41 ▼1.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.97 ▼18.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.09 ▼3.98 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gift upon purchase for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲33 | 14.05 ▼0.26 | 1.99 ▲0.12 | 33.30 ▼10.96 |
Dashboard /wp-admin | 2,200 ▲26 | 5.66 ▲0.14 | 92.31 ▼4.49 | 41.93 ▼5.71 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.00 | 38.73 ▼0.87 | 38.81 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 22.98 ▼0.25 | 655.06 ▼33.62 | 49.80 ▼16.16 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.23 ▲0.05 | 101.69 ▲3.78 | 44.62 ▲2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
gift-upon-purchase-for-woocommerce/gift-upon-purchase-for-woocommerce.php 92% from 13 tests
"Gift upon purchase for WooCommerce" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin3,247 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 248 | 659 | 2,616 |
PO File | 2 | 754 | 1,692 | 573 |
CSS | 1 | 0 | 1 | 30 |
JavaScript | 1 | 2 | 4 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 58.20 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 3 | 60.00% |
Methods | 82 | |
▷ Static methods | 5 | 6.10% |
▷ Public methods | 54 | 65.85% |
▷ Protected methods | 4 | 4.88% |
▷ Private methods | 24 | 29.27% |
Functions | 42 | |
▷ Named functions | 31 | 73.81% |
▷ Anonymous functions | 11 | 26.19% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.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 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 83.11KB | 30.97KB | ▼ 62.73% |