84% axp-cyrtolat

Code Review | AXP Cyrillic to Latin

WordPress plugin AXP Cyrillic to Latin scored84%from 54 tests.

About plugin

  • Plugin page: axp-cyrtolat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.7.0
  • WordPress version: 6.3.1
  • First release: Jan 1, 2017
  • Latest release: Jan 1, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: axpdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /6,243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.56ms] Passed 4 tests

Server-side resources used by AXP Cyrillic to Latin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.94 ▼0.76
Dashboard /wp-admin3.36 ▲0.0650.20 ▼10.61
Posts /wp-admin/edit.php3.42 ▲0.0651.11 ▲3.90
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.10 ▼2.77
Media Library /wp-admin/upload.php3.29 ▲0.0639.01 ▲4.71
Cyrillic to Latin /wp-admin/options-general.php?page=axp-cyrtolat3.2531.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AXP Cyrillic to Latin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.72 ▲0.371.84 ▼0.3343.44 ▲1.00
Dashboard /wp-admin2,193 ▲165.55 ▼0.0784.30 ▼4.3040.55 ▼0.74
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0539.23 ▲2.3536.80 ▼0.77
Add New Post /wp-admin/post-new.php1,529 ▲323.72 ▲0.64703.25 ▲13.0752.98 ▼4.06
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.0197.55 ▼16.0343.31 ▼3.56
Cyrillic to Latin /wp-admin/options-general.php?page=axp-cyrtolat8392.0024.8327.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • axp-cyrtolat-fields
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/axp-cyrtolat/axp-cyrtolat.php:41

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

axp-cyrtolat/axp-cyrtolat.php Passed 13 tests

The main PHP script in "AXP Cyrillic to Latin" version 1.0.0 is automatically included on every request by WordPress
62 characters long description:
Converts Cyrillic characters in post slugs to Latin characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected418 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33121361
PO File1161647
Markdown12010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected