10% cyr-to-arabic

Code Review | cyr-to-arabic

WordPress plugin cyr-to-arabic scored 10% from 54 tests.

About plugin

  • Plugin page: cyr-to-arabic
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Feb 4, 2015
  • Number of updates: 20
  • Update frequency: every 12.3 days
  • Top authors: Janibek7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,530 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/cyr-to-arabic/cyr-to-arabic.php+76
    Methods with the same name as their class will not be constructors in a future version of PHP; kk_convert has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.29ms] Passed 4 tests

Server-side resources used by cyr-to-arabic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.22 ▼33.99
Dashboard /wp-admin2.12 ▼1.186.89 ▼41.03
Posts /wp-admin/edit.php2.12 ▼1.246.10 ▼43.11
Add New Post /wp-admin/post-new.php2.12 ▼3.776.20 ▼99.01
Media Library /wp-admin/upload.php2.12 ▼1.116.98 ▼27.70

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_kkconverter

Browser metrics Passed 4 tests

Checking browser requirements for cyr-to-arabic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.021.83 ▼0.2941.60 ▼3.88
Dashboard /wp-admin2,203 ▲115.76 ▲0.79105.19 ▼9.2939.16 ▼2.85
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0039.27 ▼1.2235.03 ▼1.28
Add New Post /wp-admin/post-new.php1,547 ▲3318.83 ▲1.23633.42 ▲17.0765.20 ▲16.19
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0393.95 ▼5.2140.32 ▼3.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/cyr-to-arabic/cyr-to-arabic.php+76
    Methods with the same name as their class will not be constructors in a future version of PHP; kk_convert has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_kkconverter
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyr-to-arabic/cyr-to-arabic.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cyr-to-arabic/inc/widgets.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Cyr-To-Arabic on Plugins page) image missing
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

cyr-to-arabic/cyr-to-arabic.php Passed 13 tests

The primary PHP file in "cyr-to-arabic" version 0.5 is used by WordPress to initiate all plugin functionality
84 characters long description:
Convert text from Kazakh Cyrillic to Arabic script in posts. 2014.1.1, Altai, China.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,552 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,383
PHP21516153
CSS10016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin