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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.41ms] Passed 4 tests
Server-side resources used by YayCurrency - WooCommerce Multi-Currency Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 38.12 ▲0.43 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.72 ▼0.57 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.66 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.85 ▲8.31 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.05 ▲0.34 |
Help /wp-admin/admin.php?page=yaycommerce-help | 3.18 | 24.70 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 3.36 | 31.40 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 298 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YayCurrency - WooCommerce Multi-Currency Switcher
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲120 | 14.26 ▼0.46 | 1.90 ▲0.19 | 44.75 ▲5.39 |
Dashboard /wp-admin | 2,247 ▲70 | 5.56 ▼0.09 | 83.86 ▼21.32 | 37.63 ▼5.86 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.00 ▲0.04 | 36.84 ▼3.79 | 37.78 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,556 ▲96 | 23.29 ▲5.50 | 594.80 ▼137.09 | 61.46 ▲9.94 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.22 ▼0.02 | 99.00 ▼1.66 | 44.49 ▲3.16 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.41 | 0.09 | 4.24 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 1,124 | 2.24 | 32.13 | 31.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yaycurrency/includes/templates/switcher/list-currencies.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'Yay_Currency\\Utils\\SingletonTrait' not found in wp-content/plugins/yaycurrency/includes/Helpers/SupportHelper.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Yay_Currency\\Helpers\\YayCurrencyHelper' not found in wp-content/plugins/yaycurrency/includes/templates/switcher/currency-selected.php:5
- > PHP Notice
Undefined variable: switcher_size in wp-content/plugins/yaycurrency/includes/templates/switcher/custom-select.php on line 7
- > PHP Fatal error
Trait 'Yay_Currency\\Utils\\SingletonTrait' not found in wp-content/plugins/yaycurrency/includes/Helpers/Helper.php on line 6
- > PHP Notice
Undefined variable: is_show_currency_name in wp-content/plugins/yaycurrency/includes/templates/switcher/custom-select.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yaycurrency/includes/templates/switcher/custom-select.php:9
- > PHP Fatal error
Trait 'Yay_Currency\\Utils\\SingletonTrait' not found in wp-content/plugins/yaycurrency/includes/Helpers/YayCurrencyHelper.php on line 5
- > PHP Fatal error
Trait 'Yay_Currency\\Utils\\SingletonTrait' not found in wp-content/plugins/yaycurrency/includes/Initialize.php on line 10
- > PHP Fatal error
Trait 'Yay_Currency\\Utils\\SingletonTrait' not found in wp-content/plugins/yaycurrency/includes/Engine/ActDeact.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/yaycurrency/includes/templates/switcher/list-currencies.php on line 9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: multicurrency, currency exchange, woocommerce currency switcher, multi currency, currency converter...
yaycurrency/yay-currency.php 77% from 13 tests
"YayCurrency - WooCommerce Multi-Currency Switcher" version 2.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yaycurrency.php" instead of "yay-currency.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "4.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin16,373 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 2,535 | 382 | 11,991 |
PO File | 5 | 810 | 990 | 1,962 |
CSS | 6 | 143 | 8 | 1,038 |
JavaScript | 12 | 133 | 14 | 873 |
SVG | 163 | 3 | 3 | 508 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 268.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 88 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 88 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 714 | |
▷ Static methods | 126 | 17.65% |
▷ Public methods | 699 | 97.90% |
▷ Protected methods | 14 | 1.96% |
▷ Private methods | 1 | 0.14% |
Functions | 18 | |
▷ Named functions | 3 | 16.67% |
▷ Anonymous functions | 15 | 83.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin