84% custom-transliteration

Code Review | Custom Transliteration

WordPress plugin Custom Transliteration scored 84% from 54 tests.

About plugin

  • Plugin page: custom-transliter...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Feb 14, 2019
  • Number of updates: 13
  • Update frequency: every 76.1 days
  • Top authors: thekrotek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲4.95ms] Passed 4 tests

An overview of server-side resources used by Custom Transliteration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.77 ▼0.94
Dashboard /wp-admin3.32 ▲0.0152.96 ▲2.22
Posts /wp-admin/edit.php3.37 ▲0.0170.46 ▲16.41
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.18 ▲12.47
Media Library /wp-admin/upload.php3.24 ▲0.0140.81 ▲6.05

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Transliteration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3613.24 ▲0.081.88 ▼0.1343.80 ▲1.82
Dashboard /wp-admin2,206 ▼05.03 ▼0.85105.36 ▼8.5741.93 ▲1.89
Posts /wp-admin/edit.php2,092 ▼02.03 ▼0.1241.33 ▲6.8336.90 ▲3.73
Add New Post /wp-admin/post-new.php1,537 ▲423.29 ▲0.21643.95 ▼65.1748.20 ▼5.62
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.04100.40 ▼0.0543.22 ▲1.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-transliteration/custom-transliteration.php

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: transliterate, srbtranslatin, cyrillic slugs, cyr2lat, hytolat...

custom-transliteration/custom-transliteration.php 92% from 13 tests

The principal PHP file in "Custom Transliteration" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301385

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin