10% cyrillic-slugs

Code Review | Cyrillic Permalinks

WordPress plugin Cyrillic Permalinks scored 10% from 54 tests.

About plugin

  • Plugin page: cyrillic-slugs
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-5.8
  • WordPress version: 5.8.1
  • First release: Jun 17, 2007
  • Latest release: Jul 22, 2021
  • Number of updates: 20
  • Update frequency: every 257.5 days
  • Top authors: pbosakov (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 7,008 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/cyrillic-slugs/wp-settings-framework/wp-settings-framework.php+474
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.52MB] [CPU: ▼185.46ms] 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 /2.11 ▼0.616.70 ▼15.28
Dashboard /wp-admin2.13 ▼0.936.64 ▼38.59
Posts /wp-admin/edit.php2.13 ▼0.986.44 ▼35.10
Add New Post /wp-admin/post-new.php2.13 ▼3.306.89 ▼643.47
Media Library /wp-admin/upload.php2.13 ▼0.876.30 ▼24.69
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings2.136.55

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, no new 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 /3,684 ▲8816.02 ▲0.368.84 ▼2.0347.22 ▲0.97
Dashboard /wp-admin2,975 ▲445.85 ▼0.20155.91 ▲2.64103.63 ▼7.93
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0066.14 ▼0.5195.86 ▲8.37
Add New Post /wp-admin/post-new.php1,686 ▼1,96716.31 ▼3.19437.03 ▼47.11107.17 ▲2.57
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.03162.03 ▲8.69117.00 ▲2.81
Cyrillic Permalinks /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings1,1742.7367.9886.00

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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/cyrillic-slugs/wp-settings-framework/wp-settings-framework.php+474
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=cyr-slugs-settings-general-settings
    • > Deprecated in wp-content/plugins/cyrillic-slugs/wp-settings-framework/wp-settings-framework.php+474
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

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 add_filter() in wp-content/plugins/cyrillic-slugs/settings/settings-general.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cyrillic-slugs/cyr-slugs.php:37

User-side errors Passed 1 test

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

Optimizations

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.3 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,933 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript272,3421,96810,068
PHP41942661,858
HTML4390381,714
CSS36837256
Markdown16024
JSON10013

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
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ 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-bg_gloss-wave_35_f6a828_500x100.png3.67KB1.93KB▼ 47.53%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
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_18_b81900_40x40.png0.25KB0.15KB▼ 39.62%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%