84% ukr-to-lat

Code Review | Ukr-To-Lat

WordPress plugin Ukr-To-Lat scored84%from 54 tests.

About plugin

  • Plugin page: ukr-to-lat
  • Plugin version: 1.3.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Sep 17, 2018
  • Latest release: Jul 21, 2020
  • Number of updates: 25
  • Update frequency: every 27.0 days
  • Top authors: BArS (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

5,000+ active /16,168 total downloads


Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼1.85ms] Passed 4 tests

Analyzing server-side resources used by Ukr-To-Lat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.66 ▼2.02
Dashboard /wp-admin3.33 ▲0.0349.85 ▼2.54
Posts /wp-admin/edit.php3.38 ▲0.0250.94 ▲0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.46 ▼1.82
Media Library /wp-admin/upload.php3.25 ▲0.0238.41 ▼1.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ukr-To-Lat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.23 ▼1.381.73 ▼0.0342.18 ▼2.60
Dashboard /wp-admin2,224 ▲214.84 ▼1.0098.77 ▼6.4937.48 ▼5.37
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0040.26 ▼4.1936.32 ▼2.85
Add New Post /wp-admin/post-new.php1,554 ▲2818.27 ▲0.64636.15 ▼54.6853.65 ▲0.77
Media Library /wp-admin/upload.php1,400 ▼04.35 ▲0.0995.17 ▼19.8740.13 ▼9.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ukr-to-lat/ukr-to-lat.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: ukrainian, ukrtolat, cyr2lat, translations, cyrillic...

ukr-to-lat/ukr-to-lat.php 92% from 13 tests

This is the main PHP file of "Ukr-To-Lat" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin