89% ni-woocommerce-multi-currency-report

Code Review | WooCommerce Multi Currency Report

WordPress plugin WooCommerce Multi Currency Report scored89%from 54 tests.

About plugin

  • Plugin page: ni-woocommerce-mu...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2019
  • Latest release: Nov 26, 2023
  • Number of updates: 27
  • Update frequency: every 66.3 days
  • Top authors: anzia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by WooCommerce Multi Currency Report
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.87 ▼3.84
Dashboard /wp-admin3.35 ▲0.0546.99 ▼0.06
Posts /wp-admin/edit.php3.40 ▲0.0447.44 ▼0.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.90 ▼11.74
Media Library /wp-admin/upload.php3.27 ▲0.0433.20 ▲2.16
Dashboard /wp-admin/admin.php?page=niwoomcr-dashboard3.2833.70
Order Report /wp-admin/admin.php?page=niwoomcr-order-report3.2931.13
Currency Report /wp-admin/admin.php?page=niwoomcr-currency-report3.2933.17

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WooCommerce Multi Currency Report: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.67 ▲0.392.08 ▲0.4438.63 ▼5.38
Dashboard /wp-admin2,222 ▲485.63 ▼0.0593.86 ▼18.7242.80 ▼1.00
Posts /wp-admin/edit.php2,127 ▲272.02 ▲0.0740.36 ▲1.4236.23 ▲4.25
Add New Post /wp-admin/post-new.php1,551 ▲2523.34 ▲0.06626.35 ▲37.0559.95 ▲11.02
Media Library /wp-admin/upload.php1,427 ▲274.13 ▼0.1295.48 ▼1.3841.04 ▼2.04
Dashboard /wp-admin/admin.php?page=niwoomcr-dashboard1,0541.9026.5589.11
Order Report /wp-admin/admin.php?page=niwoomcr-order-report9691.9535.1333.13
Currency Report /wp-admin/admin.php?page=niwoomcr-currency-report1,0001.9432.1935.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Dashboard Sales count and amount), #2 (Order Report Information), #3 (Currency report)
You can take inspiration from this readme.txt

ni-woocommerce-multi-currency-report/ni-woocommerce-multi-currency-report.php 92% from 13 tests

The primary PHP file in "WooCommerce Multi Currency Report" version 1.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin11,159 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS5717293,983
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP716675853
PO File1385899
JavaScript22718
HTML1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.71
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.47KB23.64KB▼ 41.59%
screenshot-3.png37.19KB19.97KB▼ 46.32%
screenshot-2.png62.20KB30.18KB▼ 51.47%