10% title-rus-to-eng

Code Review | Title Rus to Eng

WordPress plugin Title Rus to Eng scored10%from 54 tests.

About plugin

  • Plugin page: title-rus-to-eng
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Mar 18, 2014
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: zetrider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,892 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/title-rus-to-eng/title-rus-to-eng.php+146
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Title Rus to Eng
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.89 ▲3.70
Dashboard /wp-admin3.31 ▼0.0453.25 ▼10.84
Posts /wp-admin/edit.php3.36 ▲0.0049.61 ▼1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.51 ▼13.26
Media Library /wp-admin/upload.php3.23 ▲0.0034.93 ▼3.93

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Title Rus to Eng
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.501.55 ▼0.5838.61 ▼3.23
Dashboard /wp-admin2,195 ▲155.62 ▼0.0292.26 ▲4.5238.05 ▼5.00
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0438.96 ▲0.4235.76 ▼4.51
Add New Post /wp-admin/post-new.php1,526 ▼023.82 ▲0.75686.89 ▲68.0754.73 ▼0.73
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0294.68 ▼12.2146.25 ▲0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/title-rus-to-eng/title-rus-to-eng.php on line 146

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Страница настроек)
Please take inspiration from this readme.txt

title-rus-to-eng/title-rus-to-eng.php Passed 13 tests

The main PHP script in "Title Rus to Eng" version 1.0 is automatically included on every request by WordPress
139 characters long description:
Автоматический перевод заголовка постов и страниц с Русского на Английский

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
There were no executable files found in this plugin108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11622108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin