83% rus-to-lat-advanced

Code Review | rus to lat advanced

WordPress plugin rus to lat advanced scored83%from 54 tests.

About plugin

  • Plugin page: rus-to-lat-advanced
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 14, 2013
  • Latest release: Dec 17, 2014
  • Number of updates: 3
  • Update frequency: every 214.3 days
  • Top authors: dmf_tuva (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10,000+ active /76,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.14ms] Passed 4 tests

Analyzing server-side resources used by rus to lat advanced
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.78 ▼1.66
Dashboard /wp-admin3.32 ▲0.0249.23 ▼6.92
Posts /wp-admin/edit.php3.37 ▲0.0255.85 ▲3.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.09 ▼3.44
Media Library /wp-admin/upload.php3.24 ▲0.0240.30 ▲4.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by rus to lat advanced
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.212.08 ▲0.2845.87 ▲6.34
Dashboard /wp-admin2,192 ▲185.64 ▲0.1090.75 ▼2.0441.85 ▼5.69
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0039.97 ▼0.0639.11 ▲4.99
Add New Post /wp-admin/post-new.php1,549 ▲1823.47 ▲0.43654.39 ▼3.7650.78 ▼2.47
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.0199.33 ▼18.0142.28 ▼7.19

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rus-to-lat-advanced/ru-translit.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: These screenshots do not have images: #1 (File sample), #2 (Link sample)
You can take inspiration from this readme.txt

rus-to-lat-advanced/ru-translit.php 85% from 13 tests

The principal PHP file in "rus to lat advanced" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rus-to-lat-advanced.php" instead of "ru-translit.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 374 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161334

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin