Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.37ms] Passed 4 tests
A check of server-side resources used by Dynamic Price Change for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.51 ▼6.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.03 ▲0.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 60.08 ▲7.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.00 ▲1.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.99 ▼1.22 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Price Change for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.21 ▼1.17 | 1.59 ▼0.24 | 38.36 ▼2.52 |
Dashboard /wp-admin | 2,212 ▲24 | 4.86 ▼0.08 | 109.19 ▼6.89 | 44.39 ▲3.86 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.04 ▲0.04 | 43.64 ▲0.40 | 38.93 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.27 ▼0.10 | 652.11 ▼12.19 | 58.75 ▲4.00 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.21 ▼0.06 | 96.02 ▼6.00 | 42.70 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | 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
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
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found
dynamic-price-change-for-woocommerce/dynamic-price-change-for-woocommerce.php Passed 13 tests
The principal PHP file in "Dynamic Price Change for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
103 characters long description:
Change Prices on Products with defined Times. Build scarcity so your customers won't be able to resist.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,321 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 259 | 704 |
JavaScript | 4 | 41 | 33 | 331 |
CSS | 4 | 2 | 0 | 281 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-128x128.png | 7.39KB | 2.59KB | ▼ 64.91% |
assets/images/logo-256x256.png | 12.75KB | 4.22KB | ▼ 66.90% |