89% woocommerce-arabic-currencies

Code Review | Arabic Currencies For WooCommerce

WordPress plugin Arabic Currencies For WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woocommerce-arabi...
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: Nov 18, 2021
  • Number of updates: 67
  • Update frequency: every 34.9 days
  • Top authors: sa3idho (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 9,108 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.58ms] Passed 4 tests

This is a short check of server-side resources used by Arabic Currencies For WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.27 ▼8.70
Dashboard /wp-admin3.34 ▲0.0345.12 ▼4.16
Posts /wp-admin/edit.php3.39 ▲0.0344.80 ▼5.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.80 ▼16.17
Media Library /wp-admin/upload.php3.26 ▲0.0333.95 ▼0.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Arabic Currencies For WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.351.80 ▼0.2041.94 ▼5.68
Dashboard /wp-admin2,206 ▲154.85 ▼0.04107.74 ▼10.5141.33 ▼2.96
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.87 ▲3.9635.58 ▲1.30
Add New Post /wp-admin/post-new.php1,542 ▲418.37 ▼5.14629.04 ▲22.2950.54 ▲2.21
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0994.32 ▼5.3742.27 ▼4.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (The list of arabic currencies in WooCommerce settings (Arabic WordPress site).), #2 (The list of arabic currencies in WooCommerce settings (English WordPress site).)
You can take inspiration from this readme.txt

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

The main PHP script in "Arabic Currencies For WooCommerce" version 1.4.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected230 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11556120
PO File14753110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin