89% woocommerce-all-currencies

Code Review | All Currencies for WooCommerce

WordPress plugin All Currencies for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woocommerce-all-c...
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Jul 15, 2023
  • Number of updates: 70
  • Update frequency: every 53.6 days
  • Top authors: algoritmika (55.71%)wpwham (45.71%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active / 72,281 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.00MB] [CPU: ▼3.39ms] Passed 4 tests

This is a short check of server-side resources used by All Currencies for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.69 ▲2.70
Dashboard /wp-admin3.31 ▲0.0045.04 ▼0.02
Posts /wp-admin/edit.php3.36 ▲0.0046.53 ▼7.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.47 ▼8.34
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▲3.10

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for All Currencies for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.811.93 ▲0.1737.43 ▼1.20
Dashboard /wp-admin2,203 ▲185.81 ▲0.9297.13 ▼17.8638.47 ▼5.10
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0737.49 ▼2.8932.70 ▼6.36
Add New Post /wp-admin/post-new.php1,533 ▲1423.56 ▲0.28618.75 ▲14.8153.69 ▲7.02
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0097.49 ▲1.7341.06 ▼2.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Looking good! No server-side errors or output 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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: Please take inspiration from this readme.txt

woocommerce-all-currencies/woocommerce-all-currencies.php 92% from 13 tests

The main file in "All Currencies for WooCommerce" v. 2.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0")

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
Good job! No executable or dangerous file extensions detected1,044 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10963511,044

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity7.38
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods31
▷ Static methods619.35%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin