Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼298.24ms] 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.61 ▲0.10 | 71.42 ▲12.45 |
Dashboard /wp-admin | 3.50 ▲0.09 | 38.42 ▼0.20 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 41.44 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.97 ▲0.00 | 95.88 ▼1,191.63 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 30.63 ▲0.76 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Price and Discounts for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲15 | 16.03 ▲0.74 | 7.03 ▲1.05 | 2.19 ▼0.28 |
Dashboard /wp-admin | 2,878 ▲20 | 6.12 ▼0.05 | 138.06 ▼11.82 | 163.42 ▲2.22 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.10 ▼0.13 | 60.48 ▼4.19 | 142.30 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,688 ▲27 | 18.34 ▲1.54 | 405.88 ▼15.96 | 193.92 ▲25.27 |
Media Library /wp-admin/upload.php | 1,689 ▼3 | 5.50 ▼0.03 | 138.46 ▼7.87 | 219.80 ▲15.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% 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 require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
dynamic-price-and-discounts-for-woocommerce/phoen_discounts.php 77% from 13 tests
Analyzing the main PHP file in "Dynamic Price and Discounts for Woocommerce" version 1.4.8
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.6.0")
- 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")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected1,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 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |
assets/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/images/aa2.png | 1.34KB | 1.26KB | ▼ 5.77% |
assets/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |