Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.53ms] Passed 4 tests
An overview of server-side resources used by Currency Switcher for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.37 ▼1.76 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.20 ▼4.45 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.68 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.23 ▼7.23 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.60 ▼4.68 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 290 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Currency Switcher for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.34 | 1.77 ▼0.08 | 43.80 ▲0.34 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▼0.04 | 107.71 ▼7.90 | 38.61 ▼5.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 41.21 ▲6.21 | 35.48 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.92 ▼0.45 | 654.80 ▼23.83 | 56.73 ▲3.00 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.02 | 98.93 ▼0.24 | 43.71 ▼3.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/currency-switcher-woocommerce/includes/functions/alg-switcher-functions.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/currency-switcher-woocommerce/includes/functions/alg-switcher-selector-functions.php:179
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: currency, currency switcher, multi currency, multicurrency, switcher
currency-switcher-woocommerce/currency-switcher-woocommerce.php Passed 13 tests
The main file in "Currency Switcher for WooCommerce" v. 2.15.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Currency Switcher for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,359 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 483 | 1,634 | 5,017 |
JavaScript | 6 | 35 | 58 | 174 |
CSS | 1 | 2 | 9 | 168 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 23.72 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 120 | |
▷ Static methods | 11 | 9.17% |
▷ Public methods | 118 | 98.33% |
▷ Protected methods | 1 | 0.83% |
▷ Private methods | 1 | 0.83% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
256 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flag-icons/ao.png | 0.42KB | 0.58KB | 0.00% |
assets/images/flag-icons/uy.png | 0.52KB | 0.73KB | 0.00% |
assets/images/flag-icons/mr.png | 0.56KB | 0.71KB | 0.00% |
assets/images/flag-icons/om.png | 0.47KB | 0.64KB | 0.00% |
assets/images/flag-icons/no-flag.png | 0.56KB | 0.53KB | ▼ 5.24% |