74% cyr-and-lat

Code Review | Cyr to Lat reloaded – transliteration of links and file names

WordPress plugin Cyr to Lat reloaded – transliteration of links and file names scored 74% from 54 tests.

About plugin

  • Plugin page: cyr-and-lat
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.0
  • WordPress version: 6.3.1
  • First release: Nov 29, 2012
  • Latest release: Dec 24, 2018
  • Number of updates: 10
  • Update frequency: every 221.6 days
  • Top authors: necrowolf (70%)webcraftic (40%)

Code review

54 tests

User reviews

11 reviews

Install metrics

40,000+ active / 182,407 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.12MB] [CPU: ▼35.93ms] Passed 4 tests

An overview of server-side resources used by Cyr to Lat reloaded – transliteration of links and file names
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.42 ▼3.27
Dashboard /wp-admin2.82 ▼0.4819.65 ▼27.20
Posts /wp-admin/edit.php2.83 ▼0.5321.87 ▼26.77
Add New Post /wp-admin/post-new.php2.83 ▼3.0618.77 ▼74.59
Media Library /wp-admin/upload.php2.83 ▼0.4019.86 ▼15.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cyr to Lat reloaded – transliteration of links and file names
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12913.17 ▼1.361.59 ▼0.2044.24 ▼1.81
Dashboard /wp-admin2,270 ▲796.01 ▲0.13108.67 ▲10.2845.52 ▲1.16
Posts /wp-admin/edit.php2,156 ▲702.17 ▲0.0342.24 ▲7.5538.34 ▲7.99
Add New Post /wp-admin/post-new.php1,588 ▲5123.63 ▲0.73670.98 ▲29.2848.45 ▼20.10
Media Library /wp-admin/upload.php1,452 ▲644.33 ▲0.09105.52 ▲8.3150.27 ▲8.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/../mu-plugins): failed to open dir: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/cyr-and-lat/includes/admin-notices.php
    • > /wp-content/plugins/cyr-and-lat/includes/functions.php
    • > /wp-content/plugins/cyr-and-lat/includes/plugins/acf.php
    • > /wp-content/plugins/cyr-and-lat/cyr-and-lat.php
    • > /wp-content/plugins/cyr-and-lat/includes/plugins/asgaros.php
    • > /wp-content/plugins/cyr-and-lat/includes/plugins/buddypress.php
    • > /wp-content/plugins/cyr-and-lat/includes/3rd-party.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

cyr-and-lat/cyr-and-lat.php 92% from 13 tests

The main file in "Cyr to Lat reloaded – transliteration of links and file names" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)

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
No dangerous file extensions were detected834 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7157244799
JavaScript17135

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity26.50
▷ Minimum class complexity11.00
▷ Maximum class complexity42.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods1144.00%
▷ Protected methods00.00%
▷ Private methods1456.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/ctr-reloaded-video_03.png21.47KB7.70KB▼ 64.12%