Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.22ms] Passed 4 tests
This is a short check of server-side resources used by ELEX Minimum Order Amount for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.81 ▲7.16 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.62 ▼17.41 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.91 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.57 ▼4.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.11 ▲0.68 |
Server storage [IO: ▲0.94MB] [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, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
elex-minimum-order-amount-for-woocommerce/elex-minimum-order-amount-for-woocommerce.php_activation_date |
Browser metrics Passed 4 tests
Checking browser requirements for ELEX Minimum Order Amount for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲241 | 14.57 ▲0.19 | 1.56 ▼0.07 | 41.53 ▼4.53 |
Dashboard /wp-admin | 2,402 ▲225 | 5.58 ▼0.07 | 86.92 ▼13.32 | 43.93 ▼0.23 |
Posts /wp-admin/edit.php | 2,314 ▲214 | 2.14 ▲0.20 | 40.43 ▲3.02 | 36.33 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,744 ▲215 | 22.99 ▼0.41 | 672.79 ▼106.69 | 49.31 ▼12.03 |
Media Library /wp-admin/upload.php | 1,613 ▲213 | 4.19 ▼0.04 | 98.97 ▼10.93 | 47.16 ▲3.80 |
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: 7 options
- widget_recent-comments
- db_upgraded
- elex-minimum-order-amount-for-woocommerce/elex-minimum-order-amount-for-woocommerce.php_activation_date
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elex-minimum-order-amount-for-woocommerce/review_and_troubleshoot_notify/resources/logo.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-minimum-order-amount-for-woocommerce/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-minimum-order-amount-for-woocommerce/includes/market.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-minimum-order-amount-for-woocommerce/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: minimum order, checkout restriction, woocommerce, role-based restriction, minimum order amount
elex-minimum-order-amount-for-woocommerce/elex-minimum-order-amount-for-woocommerce.php 85% from 13 tests
The entry point to "ELEX Minimum Order Amount for WooCommerce" version 1.3.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.6")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin10,288 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 10 | 6 | 9,440 |
PHP | 9 | 84 | 31 | 848 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.62 |
▷ 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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.67MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/img/bulk_edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
assests/img/address_validation.png | 92.01KB | 25.03KB | ▼ 72.79% |
assests/img/dhl.png | 60.09KB | 12.00KB | ▼ 80.03% |
assests/img/wsdesk.png | 161.93KB | 43.90KB | ▼ 72.89% |
assests/img/easy_post.png | 138.94KB | 38.02KB | ▼ 72.63% |