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: ▼1.72ms] Passed 4 tests
Analyzing server-side resources used by Product Price by Quantity for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.95 ▼0.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.96 ▼2.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.26 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.48 ▼3.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.26 ▼0.82 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Product Price by Quantity for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.57 ▲0.31 | 1.67 ▼0.09 | 39.85 ▼3.44 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.07 | 91.42 ▲0.20 | 42.21 ▲1.42 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▼0.03 | 38.76 ▼0.58 | 34.35 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.10 ▲0.02 | 607.30 ▼48.31 | 53.58 ▼6.13 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.02 | 96.47 ▼4.66 | 43.33 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: product price by quantity, buy more pay more, buy more pay less, wholesale, dynamic pricing...
wholesale-pricing-woocommerce/wholesale-pricing-woocommerce.php Passed 13 tests
This is the main PHP file of "Product Price by Quantity for WooCommerce" version 3.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Set WooCommerce product prices depending on quantity in cart.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,145 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 361 | 1,276 | 3,037 |
JavaScript | 4 | 28 | 57 | 90 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 25.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 125 | |
▷ Static methods | 1 | 0.80% |
▷ Public methods | 125 | 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 | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin