Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.02ms] Passed 4 tests
Server-side resources used by Minimum Purchase Amount For Woo Cart - For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.01 ▼3.70 |
Dashboard /wp-admin | 3.31 ▼0.03 | 42.42 ▼19.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.20 ▲1.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.17 ▲5.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.52 ▲1.65 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Minimum Purchase Amount For Woo Cart - For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲54 | 14.18 ▼0.05 | 1.87 ▲0.20 | 43.26 ▼0.52 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.02 | 97.25 ▲0.51 | 42.98 ▼3.11 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▲0.00 | 40.05 ▼1.76 | 36.07 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.26 ▼0.11 | 632.94 ▼66.61 | 56.31 ▲2.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.03 | 96.56 ▲1.43 | 41.94 ▼2.19 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/minimum-purchase-amount-for-woo-cart/templates/ct-mpac-promotion-notice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/minimum-purchase-amount-for-woo-cart/templates/ct-promotions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/minimum-purchase-amount-for-woo-cart/templates/ct-mpac-minimum-amount-notice.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: "paypal.me/cttalks"
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
minimum-purchase-amount-for-woo-cart/minimum-purchase-amount-for-woocommerce-cart.php 77% from 13 tests
"Minimum Purchase Amount For Woo Cart - For WooCommerce" version 2.3.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.5")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minimum-purchase-amount-for-woo-cart.php" instead of "minimum-purchase-amount-for-woocommerce-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin16,980 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 4,128 | 14,199 | 13,870 |
CSS | 19 | 59 | 123 | 2,008 |
PHP | 5 | 88 | 107 | 632 |
PO File | 3 | 150 | 174 | 456 |
SVG | 1 | 0 | 0 | 11 |
Markdown | 1 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/DataTables/DataTables-1.10.22/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/lib/DataTables/DataTables-1.10.22/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/lib/DataTables/DataTables-1.10.22/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/lib/DataTables/DataTables-1.10.22/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/lib/DataTables/DataTables-1.10.22/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |