83% sp-rtl-rus-to-lat

Code Review | SP RTL (RusToLat)

WordPress plugin SP RTL (RusToLat) scored83%from 54 tests.

About plugin

  • Plugin page: sp-rtl-rus-to-lat
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Mar 8, 2019
  • Number of updates: 19
  • Update frequency: every 19.8 days
  • Top authors: spoot1986 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /22,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by SP RTL (RusToLat)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.99 ▼1.96
Dashboard /wp-admin3.32 ▲0.0243.35 ▼3.87
Posts /wp-admin/edit.php3.37 ▲0.0146.03 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.64 ▼6.84
Media Library /wp-admin/upload.php3.24 ▲0.0136.70 ▲1.46

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SP RTL (RusToLat)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.201.56 ▼0.1941.80 ▼1.83
Dashboard /wp-admin2,206 ▲184.80 ▼1.00107.45 ▲5.0842.55 ▼2.23
Posts /wp-admin/edit.php2,089 ▼01.98 ▲0.0140.84 ▲2.7434.88 ▲2.42
Add New Post /wp-admin/post-new.php1,533 ▼923.20 ▲4.84667.74 ▲16.2452.71 ▼1.63
Media Library /wp-admin/upload.php1,382 ▼94.16 ▼0.1495.04 ▼1.3039.98 ▼3.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-rtl-rus-to-lat/sp-rtl.php:35

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rustolat, slugs, russian, translations, transliteration

sp-rtl-rus-to-lat/sp-rtl.php 77% from 13 tests

This is the main PHP file of "SP RTL (RusToLat)" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sp-rtl-rus-to-lat.php" instead of "sp-rtl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12925

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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