83% cyr2lat

Code Review | Cyr-To-Lat

WordPress plugin Cyr-To-Lat scored83%from 54 tests.

About plugin

  • Plugin page: cyr2lat
  • Plugin version: 6.0.5
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2008
  • Latest release: Oct 9, 2023
  • Number of updates: 160
  • Update frequency: every 35.8 days
  • Top authors: mihdan (58.75%)SergeyBiryukov (34.38%)Atrax (8.13%)

Code review

54 tests

User reviews

92 reviews

Install metrics

200,000+ active /2,041,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.87ms] Passed 4 tests

Server-side resources used by Cyr-To-Lat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2345.49 ▼0.94
Dashboard /wp-admin3.52 ▲0.1851.03 ▼19.21
Posts /wp-admin/edit.php3.57 ▲0.2250.37 ▲5.51
Add New Post /wp-admin/post-new.php6.10 ▲0.2296.20 ▼4.82
Media Library /wp-admin/upload.php3.44 ▲0.2242.59 ▲8.90
Cyr To Lat /wp-admin/options-general.php?page=cyr-to-lat3.3946.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cyr-To-Lat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.38 ▼0.803.97 ▲2.0540.33 ▼5.07
Dashboard /wp-admin2,210 ▲194.83 ▼0.07111.22 ▼4.6141.62 ▼0.70
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0139.36 ▲3.1938.40 ▲4.19
Add New Post /wp-admin/post-new.php1,536 ▲823.04 ▲4.90586.75 ▼44.5465.76 ▲14.74
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.04103.58 ▲0.3144.02 ▼1.35
Cyr To Lat /wp-admin/options-general.php?page=cyr-to-lat9,3862.50113.2341.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/cyr2lat/src/php/WPCli.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'CyrToLat\\WP_Background_Processing\\WP_Background_Process' not found in wp-content/plugins/cyr2lat/src/php/BackgroundProcesses/ConversionProcess.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'CyrToLat\\Settings\\Abstracts\\SettingsInterface' not found in wp-content/plugins/cyr2lat/src/php/Settings/Settings.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/cyr2lat/bin/wp-background-processing.scoper.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'CyrToLat\\Settings\\PluginSettingsBase' not found in wp-content/plugins/cyr2lat/src/php/Settings/SystemInfo.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CyrToLat\\BackgroundProcesses\\ConversionProcess' not found in wp-content/plugins/cyr2lat/src/php/BackgroundProcesses/TermConversionProcess.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CyrToLat\\BackgroundProcesses\\ConversionProcess' not found in wp-content/plugins/cyr2lat/src/php/BackgroundProcesses/PostConversionProcess.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CyrToLat\\Settings\\Abstracts\\SettingsBase' not found in wp-content/plugins/cyr2lat/src/php/Settings/PluginSettingsBase.php:17
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/cyr2lat/libs/polyfill-mbstring/bootstrap80.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/cyr2lat/bin/polyfill-mbstring.scoper.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

cyr2lat/cyr-to-lat.php 77% from 13 tests

The main PHP script in "Cyr-To-Lat" version 6.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cyr2lat.php" instead of "cyr-to-lat.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,435 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP409892,8638,800
CSS8792451
Bourne Again Shell2231179
JavaScript6111459
SVG30141
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity15.86
▷ Minimum class complexity1.00
▷ Maximum class complexity172.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces11
Interfaces1
Traits0
Classes42
▷ Abstract classes49.52%
▷ Concrete classes3890.48%
▷ Final classes12.63%
Methods349
▷ Static methods6518.62%
▷ Public methods20759.31%
▷ Protected methods9828.08%
▷ Private methods4412.61%
Functions88
▷ Named functions7787.50%
▷ Anonymous functions1112.50%
Constants51
▷ Global constants1529.41%
▷ Class constants3670.59%
▷ Public constants36100.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 files were detected