89% arabic-indic-numerals-for-arabic-wp

Code Review | Arabic-Indic Numerals for Arabic Wordpress

WordPress plugin Arabic-Indic Numerals for Arabic Wordpress scored 89% from 54 tests.

About plugin

  • Plugin page: arabic-indic-nume...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 2, 2014
  • Latest release: May 20, 2021
  • Number of updates: 21
  • Update frequency: every 125.7 days
  • Top authors: jvarn13 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 4,022 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.98ms] Passed 4 tests

A check of server-side resources used by Arabic-Indic Numerals for Arabic Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.46 ▼4.28
Dashboard /wp-admin3.31 ▲0.0150.55 ▲5.26
Posts /wp-admin/edit.php3.36 ▲0.0156.89 ▲8.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.37 ▼22.54
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▲1.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Arabic-Indic Numerals for Arabic Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.261.70 ▼0.0344.95 ▲3.32
Dashboard /wp-admin2,206 ▲185.84 ▲0.89103.42 ▼10.6741.18 ▼3.08
Posts /wp-admin/edit.php2,092 ▲62.03 ▲0.0243.17 ▲8.2238.42 ▲6.89
Add New Post /wp-admin/post-new.php1,534 ▲123.04 ▼0.07638.34 ▼67.8953.37 ▼15.18
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.07105.04 ▼9.0545.67 ▼4.66

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Example of date on Twenty Fourteen theme without the plugin.), #2 (Example of date on Twenty Fourteen theme with the plugin.)
The official readme.txt might help

arabic-indic-numerals-for-arabic-wp/jlv-arabic-indic-numerals.php 92% from 13 tests

"Arabic-Indic Numerals for Arabic Wordpress" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("arabic-indic-numerals-for-arabic-wp.php" instead of "jlv-arabic-indic-numerals.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File15530

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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 functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png41.84KB10.96KB▼ 73.81%
screenshot-2.png41.11KB10.75KB▼ 73.84%