83% cyrillic-slugs

Code Review | Cyrillic Permalinks

WordPress plugin Cyrillic Permalinks scored83%from 54 tests.

About plugin

  • Plugin page: cyrillic-slugs
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2007
  • Latest release: Aug 21, 2023
  • Number of updates: 22
  • Update frequency: every 268.6 days
  • Top authors: pbosakov (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /10,922 total downloads


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

An overview of server-side resources used by Cyrillic Permalinks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3042.38 ▲5.84
Dashboard /wp-admin3.61 ▲0.2648.99 ▼10.30
Posts /wp-admin/edit.php3.72 ▲0.3645.24 ▼1.84
Add New Post /wp-admin/post-new.php6.19 ▲0.3082.05 ▼15.34
Media Library /wp-admin/upload.php3.53 ▲0.3035.62 ▲1.80
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings3.5134.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Cyrillic Permalinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.121.70 ▼0.0244.34 ▲4.14
Dashboard /wp-admin2,202 ▲255.59 ▲0.0385.01 ▼8.5637.62 ▼4.16
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0034.13 ▼2.4533.93 ▼2.31
Add New Post /wp-admin/post-new.php1,529 ▲323.10 ▼0.51664.43 ▼41.2870.37 ▲11.23
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.04107.65 ▲5.5548.40 ▲4.63
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings9261.9537.8429.79

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cyrillic-slugs/cyr-slugs.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cyrillic-slugs/settings/settings-general.php:2

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: Add a description for screenshot #1 in cyrillic-slugs/assets to your readme.txt
The official readme.txt might help

cyrillic-slugs/cyr-slugs.php 92% from 13 tests

The main PHP file in "Cyrillic Permalinks" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cyrillic-slugs.php" instead of "cyr-slugs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin13,935 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity30.33
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_228ef1_256x240.png4.27KB4.11KB▼ 3.78%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png0.25KB0.15KB▼ 37.45%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_flat_10_000000_40x100.png0.17KB0.08KB▼ 51.12%