89% woo-multi-currency

Code Review | CURCY - Multi Currency for WooCommerce - The best free currency exchange plugin - Run smoothly on WooCommerce 8.x

WordPress plugin CURCY - Multi Currency for WooCommerce - The best free currency exchange plugin - Run smoothly on WooCommerce 8.x scored89%from 54 tests.

About plugin

  • Plugin page: woo-multi-currency
  • Plugin version: 2.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Oct 4, 2023
  • Number of updates: 258
  • Update frequency: every 10.7 days
  • Top authors: mrt3vn (63.95%)kimvt1991 (16.28%)thanhtd (13.57%)villatheme (6.59%)

Code review

54 tests

User reviews

218 reviews

Install metrics

20,000+ active /766,402 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼5.62ms] Passed 4 tests

This is a short check of server-side resources used by CURCY - Multi Currency for WooCommerce - The best free currency exchange plugin - Run smoothly on WooCommerce 8.x
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.07 ▲0.33
Dashboard /wp-admin3.47 ▲0.1747.82 ▼1.93
Posts /wp-admin/edit.php3.59 ▲0.2345.61 ▲4.59
Add New Post /wp-admin/post-new.php6.05 ▲0.1786.89 ▼20.68
Media Library /wp-admin/upload.php3.40 ▲0.1735.29 ▼0.18

Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
woo_multi_currency_params
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

CURCY - Multi Currency for WooCommerce - The best free currency exchange plugin - Run smoothly on WooCommerce 8.x: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.47 ▲0.091.76 ▼0.0042.97 ▲0.13
Dashboard /wp-admin2,218 ▲275.89 ▲0.97107.05 ▲4.0044.16 ▲7.21
Posts /wp-admin/edit.php2,080 ▼92.00 ▼0.0234.69 ▼7.0031.42 ▼3.99
Add New Post /wp-admin/post-new.php1,542 ▲923.11 ▲0.09665.14 ▲66.0052.41 ▲5.01
Media Library /wp-admin/upload.php1,394 ▲34.22 ▼0.0598.43 ▼4.0743.76 ▼0.70

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • woo_multi_currency_params
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

woo-multi-currency/woo-multi-currency.php 92% from 13 tests

The main PHP script in "CURCY - Multi Currency for WooCommerce - The best free currency exchange plugin - Run smoothly on WooCommerce 8.x" version 2.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected29,588 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript161,54645811,079
PHP671,4121,90410,753
SVG50144,013
CSS284141682,482
Sass21230791
PO File1177346470

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity27.31
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes64
▷ Abstract classes00.00%
▷ Concrete classes64100.00%
▷ Final classes00.00%
Methods467
▷ Static methods265.57%
▷ Public methods43392.72%
▷ Protected methods132.78%
▷ Private methods214.50%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
images/select2.png0.60KB0.99KB0.00%
css/images/cal_logo.png2.12KB0.97KB▼ 54.53%
css/images/flags-64.png62.55KB61.24KB▼ 2.09%
css/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%