84% cyrillic-to-latin

Code Review | Cyrillic To Latin

WordPress plugin Cyrillic To Latin scored84%from 54 tests.

About plugin

  • Plugin page: cyrillic-to-latin
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2017
  • Latest release: Aug 4, 2018
  • Number of updates: 4
  • Update frequency: every 66.2 days
  • Top authors: dlesendric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /924 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.11MB] [CPU: ▼8.32ms] Passed 4 tests

A check of server-side resources used by Cyrillic To Latin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.33 ▼0.93
Dashboard /wp-admin3.42 ▲0.1147.47 ▼9.49
Posts /wp-admin/edit.php3.53 ▲0.1747.77 ▼5.68
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.51 ▼17.19
Media Library /wp-admin/upload.php3.34 ▲0.1147.17 ▲5.67
Convert Cyrillic /wp-admin/options-general.php?page=cyrillic-to-latin3.3135.75

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cyrillic To Latin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼1.304.58 ▲2.5643.62 ▼4.73
Dashboard /wp-admin2,210 ▲285.78 ▲0.87101.50 ▼8.3443.55 ▼1.09
Posts /wp-admin/edit.php2,093 ▲12.03 ▼0.0338.36 ▼3.8034.30 ▼1.15
Add New Post /wp-admin/post-new.php1,536 ▲723.38 ▲5.34688.81 ▲63.2155.63 ▼0.53
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.02101.85 ▼4.1044.78 ▼0.00
Convert Cyrillic /wp-admin/options-general.php?page=cyrillic-to-latin7932.0226.8226.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Sepia\\InterfaceHandler' not found in wp-content/plugins/cyrillic-to-latin/vendor/sepia/po-parser/src/Sepia/FileHandler.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cyrillic-to-latin/vendor/sepia/po-parser/tests/poparserTest.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Sepia\\InterfaceHandler' not found in wp-content/plugins/cyrillic-to-latin/vendor/sepia/po-parser/src/Sepia/StringHandler.php:35

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: serbian, jezik, language, latinica, latin...

cyrillic-to-latin/cyrillic-to-latin.php 92% from 13 tests

The main PHP script in "Cyrillic To Latin" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("src/Resources/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,343 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP173206541,713
PO File128784397
JSON300100
Markdown232089
YAML24036
XML1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity23.55
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods93
▷ Static methods66.45%
▷ Public methods7479.57%
▷ Protected methods1415.05%
▷ Private methods55.38%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin