Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.05ms] Passed 4 tests
A check of server-side resources used by Dynamic Price and Discounts for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.97 ▼2.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.83 ▼6.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.61 ▲5.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.67 ▼24.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.71 ▲1.05 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dynamic Price and Discounts for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.33 ▼0.98 | 5.65 ▲3.87 | 38.66 ▼3.89 |
Dashboard /wp-admin | 2,221 ▲15 | 5.84 ▼0.06 | 122.07 ▲19.69 | 54.03 ▲13.74 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.01 | 40.11 ▲1.78 | 34.64 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.27 ▲5.66 | 599.30 ▼87.04 | 52.15 ▲1.38 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.34 ▲0.10 | 96.80 ▼8.51 | 41.96 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- 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
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
dynamic-price-and-discounts-for-woocommerce/phoen_discounts.php 77% from 13 tests
"Dynamic Price and Discounts for Woocommerce" version 1.4.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.6.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamic-price-and-discounts-for-woocommerce.php" instead of "phoen_discounts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,868 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 783 | 24 | 1,375 |
CSS | 3 | 64 | 45 | 491 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/arrow-prv.png | 1.52KB | 1.36KB | ▼ 10.85% |
assets/images/premium-btn.png | 5.72KB | 5.28KB | ▼ 7.69% |
assets/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/images/aa2.png | 1.34KB | 1.26KB | ▼ 5.77% |