89% acf-rus-to-lat

Code Review | ACF: Rus-To-Lat

WordPress plugin ACF: Rus-To-Lat scored 89% from 54 tests.

About plugin

  • Plugin page: acf-rus-to-lat
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 5.9.2
  • First release: Aug 31, 2016
  • Latest release: Nov 19, 2018
  • Number of updates: 16
  • Update frequency: every 51.1 days
  • Top authors: andreykashops (68.75%)preslilvs (25%)sovacode (18.75%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 188,461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.37MB] [CPU: ▼329.97ms] Passed 4 tests

Analyzing server-side resources used by ACF: Rus-To-Lat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1260.46 ▲6.72
Dashboard /wp-admin2.95 ▼0.4514.36 ▼18.40
Posts /wp-admin/edit.php2.95 ▼0.6814.83 ▼26.53
Add New Post /wp-admin/post-new.php2.95 ▼4.0114.89 ▼1,258.30
Media Library /wp-admin/upload.php2.95 ▼0.3513.62 ▼16.66

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
wbcr_acfr_an__activated_on

Browser metrics Passed 4 tests

ACF: Rus-To-Lat: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,861 ▲10715.77 ▲0.196.29 ▲0.352.32 ▼0.26
Dashboard /wp-admin2,972 ▲1146.29 ▲0.10121.64 ▼11.50218.44 ▲56.20
Posts /wp-admin/edit.php2,764 ▲703.37 ▲0.1466.12 ▼0.55178.75 ▲33.52
Add New Post /wp-admin/post-new.php1,776 ▲6516.04 ▼5.04369.19 ▼105.85173.53 ▲9.30
Media Library /wp-admin/upload.php1,771 ▲735.57 ▲0.03127.39 ▼16.74241.59 ▲51.20

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-admin/includes/plugin.php+290
    opendir(wp-content/plugins/../mu-plugins): failed to open dir: No such file or directory

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Add an image for screenshot #1 (Converts Cyrillic characters in field name to Latin characters.)
You can take inspiration from this readme.txt

acf-rus-to-lat/acf-rus-to-lat.php 92% from 13 tests

The primary PHP file in "ACF: Rus-To-Lat" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin414 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115168345
CSS111069

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.00
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1041.67%
▷ Protected methods00.00%
▷ Private methods1458.33%
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
1 PNG file occupies 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png134.43KB53.97KB▼ 59.86%