94% woocommerce-prices-in-other-currencies-checker

Code Review | WooCommerce Prices in Other Currencies Checker

WordPress plugin WooCommerce Prices in Other Currencies Checker scored 94% from 54 tests.

About plugin

  • Plugin page: woocommerce-price...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Oct 2, 2014
  • Latest release: Oct 2, 2014
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: chrislomas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 676 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.06MB] [CPU: ▼146.75ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Prices in Other Currencies Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.98 ▲4.24
Dashboard /wp-admin2.83 ▼0.2323.42 ▼20.36
Posts /wp-admin/edit.php3.11 ▲0.0142.73 ▲0.15
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.66 ▼559.05
Media Library /wp-admin/upload.php3.00 ▲0.0027.29 ▼7.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Prices in Other Currencies Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.87 ▼0.018.45 ▼1.3844.48 ▼0.43
Dashboard /wp-admin2,970 ▲395.88 ▼0.05130.26 ▼7.43111.04 ▲0.69
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0161.86 ▼0.2183.44 ▼10.00
Add New Post /wp-admin/post-new.php1,504 ▼16818.49 ▼0.61359.65 ▼22.56103.00 ▼2.06
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.01154.45 ▲7.48118.23 ▲5.08

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 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-prices-in-other-currencies-checker/woocommerce-prices-in-other-currencies.php:25

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, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, currency

woocommerce-prices-in-other-currencies-checker/woocommerce-prices-in-other-currencies.php 85% from 13 tests

The main PHP script in "WooCommerce Prices in Other Currencies Checker" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-prices-in-other-currencies-checker.php" instead of "woocommerce-prices-in-other-currencies.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)

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
Good job! No executable or dangerous file extensions detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin