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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 33.52 ▲3.88 |
Dashboard /wp-admin | 3.10 ▲0.05 | 50.98 ▲17.89 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 43.27 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 87.46 ▼564.34 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 32.52 ▼6.18 |
Flywire Multicurrency /wp-admin/options-general.php?page=flywire-multicurrency-settings | 3.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.78 ▲0.24 | 9.83 ▲1.90 | 47.07 ▼2.49 |
Dashboard /wp-admin | 2,969 ▲35 | 5.90 ▼0.14 | 138.33 ▼6.50 | 113.06 ▲4.16 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 63.14 ▼4.42 | 94.20 ▲4.56 |
Add New Post /wp-admin/post-new.php | 1,675 ▼8 | 18.88 ▲0.14 | 344.74 ▼64.96 | 100.01 ▼23.88 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.00 | 158.39 ▼15.07 | 118.76 ▼15.25 |
Flywire Multicurrency /wp-admin/options-general.php?page=flywire-multicurrency-settings | 1,055 | 2.09 | 56.48 | 80.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 39 | 42 | 194 |
Markdown | 1 | 5 | 0 | 8 |
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 code | 0.41 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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