93% flywire-payment-gateway-multicurrency-add-on

Code Review | Flywire for WooCommerce Multicurrency Add-On

WordPress plugin Flywire for WooCommerce Multicurrency Add-On scored 93% from 54 tests.

About plugin

  • Plugin page: flywire-payment-g...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 5.8.1
  • First release: Oct 22, 2021
  • Latest release: Oct 22, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: taiflywire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.73ms] Passed 4 tests

Analyzing server-side resources used by Flywire for WooCommerce Multicurrency Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0333.52 ▲3.88
Dashboard /wp-admin3.10 ▲0.0550.98 ▲17.89
Posts /wp-admin/edit.php3.15 ▲0.0543.27 ▼0.27
Add New Post /wp-admin/post-new.php5.46 ▲0.0387.46 ▼564.34
Media Library /wp-admin/upload.php3.05 ▲0.0432.52 ▼6.18
Flywire Multicurrency /wp-admin/options-general.php?page=flywire-multicurrency-settings3.0129.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Flywire for WooCommerce Multicurrency Add-On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.78 ▲0.249.83 ▲1.9047.07 ▼2.49
Dashboard /wp-admin2,969 ▲355.90 ▼0.14138.33 ▼6.50113.06 ▲4.16
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0163.14 ▼4.4294.20 ▲4.56
Add New Post /wp-admin/post-new.php1,675 ▼818.88 ▲0.14344.74 ▼64.96100.01 ▼23.88
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.00158.39 ▼15.07118.76 ▼15.25
Flywire Multicurrency /wp-admin/options-general.php?page=flywire-multicurrency-settings1,0552.0956.4880.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flywire-payment-gateway-multicurrency-add-on/includes/class-flywire-woocommerce-multicurrency-settings.php:189

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
4 plugin tags: woocommerce, multicurrency, currency, multi-currency

flywire-payment-gateway-multicurrency-add-on/flywire-woocommerce-multicurrency.php 77% from 13 tests

The main PHP script in "Flywire for WooCommerce Multicurrency Add-On" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flywire-payment-gateway-multicurrency-add-on.php" instead of "flywire-woocommerce-multicurrency.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin202 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23942194
Markdown1508

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin