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.00MB] [CPU: ▼6.62ms] Passed 4 tests
Server-side resources used by Multi Currency For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.76 ▼3.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.70 ▼6.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.87 ▼1.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.91 ▼14.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.90 ▲1.05 |
Server storage [IO: ▲5.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 548 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Multi Currency For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.29 ▼1.16 | 1.78 ▼0.01 | 40.94 ▼6.55 |
Dashboard /wp-admin | 2,214 ▲26 | 4.83 ▼1.05 | 108.52 ▼3.30 | 42.69 ▼2.41 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.00 | 39.23 ▲4.68 | 36.53 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.09 ▲4.81 | 679.13 ▲68.16 | 61.13 ▲9.91 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.24 ▲0.07 | 97.23 ▼2.16 | 39.74 ▼2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/wc-multi-currency/modules/APBDWMC_instruction.php:8
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wc-multi-currency/wcmilticurrency.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-multi-currency/template/popup.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-multi-currency/views/apbdwmc_instruction/main.php:4
- > PHP Fatal error
Uncaught Error: Class 'AppsBDLiteModule' not found in wp-content/plugins/wc-multi-currency/modules/APBDWMC_advance.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-multi-currency/views/apbdwmc_general/main.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-multi-currency/views/apbdwmc_design/default_currency_chooser.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-multi-currency/views/apbdwmc_payment_currency/main.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wc-multi-currency/views/apbdwmc_recommended/main.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-multi-currency/wcmilticurrency.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in wc-multi-currency/assets to your readme.txt
wc-multi-currency/wcmilticurrency.php 77% from 13 tests
Analyzing the main PHP file in "Multi Currency For WooCommerce" version 1.5.5
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 364 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-multi-currency.php" instead of "wcmilticurrency.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected57,035 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 96 | 6,536 | 5,437 | 27,695 |
CSS | 30 | 269 | 183 | 14,467 |
PHP | 41 | 923 | 789 | 6,970 |
JSON | 3 | 0 | 0 | 4,730 |
SVG | 6 | 0 | 0 | 2,849 |
PO File | 1 | 98 | 0 | 209 |
Sass | 4 | 17 | 0 | 113 |
LESS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 363.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 483 | |
▷ Static methods | 48 | 9.94% |
▷ Public methods | 451 | 93.37% |
▷ Protected methods | 21 | 4.35% |
▷ Private methods | 11 | 2.28% |
Functions | 74 | |
▷ Named functions | 71 | 95.95% |
▷ Anonymous functions | 3 | 4.05% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.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
341 PNG files occupy 0.87MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/square/CLF.png | 1.41KB | 0.51KB | ▼ 63.62% |
images/flags/circle/TOP.png | 2.10KB | 1.65KB | ▼ 21.62% |
images/flags/country_flags/northern-marianas-islands.png | 2.91KB | 2.23KB | ▼ 23.15% |
images/flags/square/IQD.png | 1.18KB | 0.33KB | ▼ 72.09% |
images/flags/circle/FKP.png | 3.79KB | 2.31KB | ▼ 39.09% |