79% arabic-woocommerce-middle-east-currencies

Code Review | Arabic Woocommerce Middle east currencies

WordPress plugin Arabic Woocommerce Middle east currencies scored79%from 54 tests.

About plugin

  • Plugin page: arabic-woocommerc...
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Feb 27, 2018
  • Number of updates: 166
  • Update frequency: every 2.9 days
  • Top authors: t3rep.com (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /6,447 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.76ms] Passed 4 tests

Server-side resources used by Arabic Woocommerce Middle east currencies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.14 ▼42.96
Dashboard /wp-admin2.08 ▼1.235.31 ▼46.62
Posts /wp-admin/edit.php2.08 ▼1.287.32 ▼40.40
Add New Post /wp-admin/post-new.php2.08 ▼3.816.08 ▼93.04
Media Library /wp-admin/upload.php2.08 ▼1.154.86 ▼31.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Arabic Woocommerce Middle east currencies: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.74 ▲0.521.71 ▼0.2241.05 ▼3.74
Dashboard /wp-admin2,208 ▲204.87 ▼1.14112.11 ▼6.7142.96 ▲0.63
Posts /wp-admin/edit.php2,094 ▲51.98 ▼0.0341.10 ▲0.4135.38 ▲2.43
Add New Post /wp-admin/post-new.php1,516 ▼417.57 ▼5.65657.18 ▼69.7649.27 ▼21.00
Media Library /wp-admin/upload.php1,393 ▲54.16 ▼0.0498.52 ▼12.8146.73 ▲0.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

arabic-woocommerce-middle-east-currencies/ar-wooco.php 77% from 13 tests

"Arabic Woocommerce Middle east currencies" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 586 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("arabic-woocommerce-middle-east-currencies.php" instead of "ar-wooco.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected15,209 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File36,8818,92513,897
CSS131211,234
PHP1212543
JavaScript11735

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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 functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin