84% transliterate-arabic

Code Review | Transliterate Arabic

WordPress plugin Transliterate Arabic scored84%from 54 tests.

About plugin

  • Plugin page: transliterate-arabic
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 19, 2013
  • Latest release: May 15, 2018
  • Number of updates: 14
  • Update frequency: every 121.4 days
  • Top authors: little-wolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Transliterate Arabic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.46 ▼1.80
Dashboard /wp-admin3.31 ▼0.0447.48 ▼19.23
Posts /wp-admin/edit.php3.36 ▲0.0044.30 ▼6.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.41 ▼25.53
Media Library /wp-admin/upload.php3.23 ▲0.0034.47 ▼2.06

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

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

Browser metrics Passed 4 tests

Transliterate Arabic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.051.61 ▲0.0337.13 ▼3.96
Dashboard /wp-admin2,195 ▲145.63 ▼0.0988.76 ▼12.7234.93 ▼2.17
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0436.47 ▼1.2533.19 ▲1.29
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▲0.02616.75 ▲20.4393.06 ▲18.76
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0493.43 ▼11.3142.43 ▼3.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/transliterate-arabic/transliterate-arabic.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

transliterate-arabic/transliterate-arabic.php Passed 13 tests

This is the main PHP file of "Transliterate Arabic" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
A simple plugin for the transliteration of Arabic words in posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16670

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin