83% filenames-to-latin

Code Review | Filenames to latin

WordPress plugin Filenames to latin scored83%from 54 tests.

About plugin

  • Plugin page: filenames-to-latin
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 2, 2011
  • Latest release: Aug 10, 2020
  • Number of updates: 48
  • Update frequency: every 66.8 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /75,635 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.15ms] Passed 4 tests

A check of server-side resources used by Filenames to latin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.02 ▼5.13
Dashboard /wp-admin3.31 ▲0.0142.18 ▼4.98
Posts /wp-admin/edit.php3.36 ▲0.0043.73 ▼4.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.01 ▼21.72
Media Library /wp-admin/upload.php3.23 ▲0.0035.68 ▲0.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Filenames to latin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.111.60 ▲0.0640.92 ▲0.13
Dashboard /wp-admin2,198 ▲275.62 ▲0.0889.08 ▲0.9835.50 ▼12.01
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.1938.28 ▲4.6835.04 ▼1.23
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.27709.12 ▲43.1354.84 ▼4.15
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0798.68 ▼15.3640.92 ▼6.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/filenames-to-latin/filenames-to-latin.php:194

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (filenames converted without and with the plugin) image required
  • Tags: There are too many tags (25 tag instead of maximum 10)
The official readme.txt is a good inspiration

filenames-to-latin/filenames-to-latin.php 92% from 13 tests

The primary PHP file in "Filenames to latin" version 2.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin180 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1124180

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.03KB4.47KB0.00%