Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.24MB] [CPU: ▲12.82ms] Passed 4 tests
A check of server-side resources used by WBW Currency Switcher for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.72 ▲2.26 | 51.88 ▲10.89 |
Dashboard /wp-admin | 5.55 ▲2.24 | 56.66 ▲8.25 |
Posts /wp-admin/edit.php | 5.66 ▲2.30 | 63.99 ▲18.02 |
Add New Post /wp-admin/post-new.php | 8.13 ▲2.24 | 108.89 ▲14.13 |
Media Library /wp-admin/upload.php | 5.47 ▲2.24 | 55.13 ▲21.44 |
Overview /wp-admin/admin.php?page=woo-currency&tab=overview | 5.85 | 56.99 |
/wp-admin/admin.php?page=woo-currency | 5.60 | 54.67 |
Settings /wp-admin/admin.php?page=woo-currency&tab=settings | 5.60 | 50.55 |
Server storage [IO: ▲5.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 293 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_wcu_modules_type |
wp_wcu_usage_stat |
wp_wcu_modules |
New WordPress options |
---|
wcu_opts_data |
widget_wcucurrencyswitcherwidget |
wcu_plug_was_used |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_wcucurrencyconverterwidget |
widget_wcucurrencyrateswidget |
wp_wcu_db_version |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WBW Currency Switcher for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲80 | 14.39 ▲0.04 | 1.69 ▼0.10 | 38.76 ▼9.49 |
Dashboard /wp-admin | 2,247 ▲70 | 5.76 ▲0.22 | 96.62 ▼6.32 | 43.89 ▲0.38 |
Posts /wp-admin/edit.php | 2,157 ▲60 | 2.24 ▲0.30 | 43.40 ▲7.22 | 34.98 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,567 ▲37 | 23.06 ▼0.08 | 692.56 ▼1.10 | 38.32 ▼49.69 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.50 ▲0.23 | 101.13 ▼1.37 | 45.91 ▲2.02 |
Overview /wp-admin/admin.php?page=woo-currency&tab=overview | 1,552 | 3.85 | 70.01 | 60.80 |
/wp-admin/admin.php?page=woo-currency | 1,335 | 4.07 | 72.80 | 43.18 |
Settings /wp-admin/admin.php?page=woo-currency&tab=settings | 1,338 | 4.07 | 71.64 | 39.57 |
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
- Zombie WordPress options were found after uninstall: 12 options
- theysaidso_admin_options
- widget_wcucurrencyrateswidget
- widget_theysaidso_widget
- widget_wcucurrencyswitcherwidget
- can_compress_scripts
- db_upgraded
- wcu_plug_was_used
- widget_wcucurrencyconverterwidget
- wcu_opts_data
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 80× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-currency/modules/currency/views/tpl/old/designTab.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-currency/modules/currency/views/tpl/childrenMultipleTab.php:2
- > PHP Fatal error
Uncaught Error: Class 'controllerWcu' not found in wp-content/plugins/woo-currency/modules/admin_nav/controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleWcu' not found in wp-content/plugins/woo-currency/modules/mail/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'moduleWcu' not found in wp-content/plugins/woo-currency/modules/adminmenu/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'frameWcu' not found in wp-content/plugins/woo-currency/modules/currency_widget/views/tpl/currencySwitcherForm.php:3
- > PHP Fatal error
Uncaught Error: Class 'modelWcu' not found in wp-content/plugins/woo-currency/modules/options/models/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-currency/config.php:23
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-currency/config.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-currency/modules/options/views/tpl/optionsSettingsTabContent.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woocommerce currency switcher, currency, currency switcher, woocommerce, multi currency...
woo-currency/wcu.php 85% from 13 tests
Analyzing the main PHP file in "WBW Currency Switcher for WooCommerce" version 1.9.2
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-currency.php" instead of "wcu.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin43,758 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 1,269 | 4,140 | 22,590 |
JavaScript | 93 | 502 | 1,883 | 9,472 |
CSS | 36 | 566 | 233 | 6,579 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 2 | 942 | 1,575 | 2,446 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 34.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 418.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 9 | 10.84% |
▷ Concrete classes | 74 | 89.16% |
▷ Final classes | 0 | 0.00% |
Methods | 1,072 | |
▷ Static methods | 268 | 25.00% |
▷ Public methods | 958 | 89.37% |
▷ Protected methods | 88 | 8.21% |
▷ Private methods | 26 | 2.43% |
Functions | 24 | |
▷ Named functions | 21 | 87.50% |
▷ Anonymous functions | 3 | 12.50% |
Constants | 90 | |
▷ Global constants | 69 | 76.67% |
▷ Class constants | 21 | 23.33% |
▷ Public constants | 21 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.63MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_f29a00_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
modules/templates/lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
css/images/ui-icons_c98000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_highlight-soft_60_dddddd_1x100.png | 0.27KB | 0.15KB | ▼ 44.44% |