83% cyrlitera

Code Review | Cyrlitera – transliteration of links and file names

WordPress plugin Cyrlitera – transliteration of links and file names scored83%from 54 tests.

About plugin

  • Plugin page: cyrlitera
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Nov 23, 2023
  • Number of updates: 16
  • Update frequency: every 129.9 days
  • Top authors: alexkovalevv (62.5%)webcraftic (43.75%)

Code review

54 tests

User reviews

48 reviews

Install metrics

30,000+ active /129,200 total downloads

Benchmarks

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.24MB] [CPU: ▼4.76ms] Passed 4 tests

A check of server-side resources used by Cyrlitera – transliteration of links and file names
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.80 ▼4.20
Dashboard /wp-admin3.62 ▲0.2849.17 ▼14.97
Posts /wp-admin/edit.php3.67 ▲0.3254.81 ▲5.88
Add New Post /wp-admin/post-new.php6.16 ▲0.2794.23 ▼0.87
Media Library /wp-admin/upload.php3.48 ▲0.2537.01 ▲0.99
Cyrlitera /wp-admin/options-general.php?page=transliteration-wbcr_cyrlitera4.11337.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 232 new files
Database: no new tables, 11 new options
New WordPress options
wbcr_cyrlitera_use_transliteration
widget_recent-posts
wbcr_cyrlitera_filename_to_lowercase
widget_theysaidso_widget
wbcr_cyrlitera_use_transliteration_filename
db_upgraded
wbcr_cyrlitera_plugin_version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

Cyrlitera – transliteration of links and file names: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9114.25 ▼0.021.76 ▲0.0236.79 ▼7.32
Dashboard /wp-admin2,252 ▲755.62 ▼0.0392.40 ▼0.2041.53 ▲1.10
Posts /wp-admin/edit.php2,167 ▲642.05 ▲0.0538.54 ▼0.1335.71 ▲4.63
Add New Post /wp-admin/post-new.php1,561 ▲19723.35 ▲7.04681.33 ▲174.5552.97 ▲6.00
Media Library /wp-admin/upload.php1,437 ▲464.21 ▲0.0297.24 ▼4.2742.47 ▼4.46
Cyrlitera /wp-admin/options-general.php?page=transliteration-wbcr_cyrlitera1,3982.3637.7538.20

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/cyrlitera/libs/factory/templates/pages/setup-parts/class-step-form.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/cyrlitera/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/cyrlitera/libs/factory/forms/controls/google-font.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/cyrlitera/migrations/010004.php:7

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please a description for screenshot #3 in cyrlitera/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

cyrlitera/cyrlitera.php 92% from 13 tests

The main PHP file in "Cyrlitera – transliteration of links and file names" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin19,130 lines of code in 173 files:
LanguageFilesBlank linesComment linesLines of code
PHP1143,1267,29811,069
CSS251662512,570
LESS6409911,973
JSON1001,810
PO File103366561,060
JavaScript16191200646
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity15.88
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces9
Interfaces2
Traits1
Classes97
▷ Abstract classes1616.49%
▷ Concrete classes8183.51%
▷ Final classes00.00%
Methods690
▷ Static methods334.78%
▷ Public methods52175.51%
▷ Protected methods14020.29%
▷ Private methods294.20%
Functions36
▷ Named functions2055.56%
▷ Anonymous functions1644.44%
Constants48
▷ Global constants4185.42%
▷ Class constants714.58%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png3.51KB0.70KB▼ 79.99%
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%
libs/factory/templates/pages/templates/impressive-lite/assets/img/5-stars22.png3.51KB0.70KB▼ 79.99%
libs/factory/templates/pages/templates/impressive/assets/img/webcraftic-plugin-icon.png1.97KB0.75KB▼ 61.79%
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png12.44KB4.99KB▼ 59.88%