Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by WooCommerce Product Price x Quantity Preview
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.02 ▼13.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.46 ▼7.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 55.88 ▲6.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.95 ▼11.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.36 ▲2.66 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/woo-product-price-x-quantity-preview/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Product Price x Quantity Preview
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.46 ▲0.08 | 1.82 ▼0.10 | 39.18 ▼10.74 |
Dashboard /wp-admin | 2,218 ▲18 | 4.88 ▼0.98 | 124.79 ▲22.28 | 44.04 ▲1.61 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.03 ▲0.04 | 36.56 ▼5.06 | 32.56 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 22.88 ▼0.17 | 669.81 ▲8.14 | 58.17 ▲1.68 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.21 ▼0.04 | 98.57 ▼0.84 | 42.33 ▼2.61 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: dynamic price, woocommerce, price display, final price, price times quantity...
woo-product-price-x-quantity-preview/woocommerce-product-price-x-quantity-preview.php 85% from 13 tests
The entry point to "WooCommerce Product Price x Quantity Preview" version 1.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-price-x-quantity-preview.php" instead of "woocommerce-product-price-x-quantity-preview.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.8" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin174 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 35 | 94 |
JavaScript | 1 | 11 | 1 | 65 |
PO File | 1 | 1 | 1 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin