Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.51ms] Passed 4 tests
An overview of server-side resources used by ELEX WooCommerce Discount Per Country
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.07 ▼0.29 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.30 ▼13.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.37 ▼4.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.02 ▼15.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.86 ▼0.05 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ELEX WooCommerce Discount Per Country
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲73 | 14.33 ▼0.05 | 1.98 ▲0.30 | 42.95 ▼0.47 |
Dashboard /wp-admin | 2,215 ▲38 | 5.61 ▲0.07 | 91.06 ▼11.71 | 43.04 ▼1.60 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.01 ▲0.01 | 35.75 ▼1.50 | 31.03 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 22.97 ▼0.17 | 668.26 ▼13.65 | 62.86 ▲11.73 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.16 ▼0.03 | 98.60 ▼3.73 | 42.15 ▼3.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/elex-discount-per-country/review_and_troubleshoot_notify/resources/logo.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-discount-per-country/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-discount-per-country/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-discount-per-country/includes/market.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elex-discount-per-country/includes/class-discount-per-country.php:25
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
elex-discount-per-country/elex-discount-per-country.php 92% from 13 tests
"ELEX WooCommerce Discount Per Country" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,668 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 43 | 8 | 6,920 |
PHP | 10 | 192 | 56 | 1,209 |
PO File | 3 | 76 | 92 | 346 |
JavaScript | 1 | 90 | 6 | 193 |
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.42 |
Average class complexity | 21.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.57MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo/bulk_edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
assets/logo/Hide WooCommerce.png | 79.45KB | 18.13KB | ▼ 77.19% |
assets/logo/Request-a-quote.png | 92.71KB | 24.02KB | ▼ 74.09% |
assets/logo/elex-name-your-price.png | 75.69KB | 17.13KB | ▼ 77.37% |
assets/logo/Rolebased-plugin.png | 85.64KB | 21.17KB | ▼ 75.28% |