80% wpt-custom-mo-file

Code Review | WPT Custom Mo File

WordPress plugin WPT Custom Mo File scored80%from 54 tests.

About plugin

  • Plugin page: wpt-custom-mo-file
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2016
  • Latest release: Nov 3, 2022
  • Number of updates: 25
  • Update frequency: every 89.6 days
  • Top authors: wptranslationsteam (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,766 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.09ms] Passed 4 tests

This is a short check of server-side resources used by WPT Custom Mo File
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.17 ▼0.96
Dashboard /wp-admin3.43 ▲0.0848.70 ▼9.35
Posts /wp-admin/edit.php3.54 ▲0.1848.17 ▲1.75
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.42 ▼15.91
Media Library /wp-admin/upload.php3.35 ▲0.1235.21 ▼2.13
WPT Custom Mo File /wp-admin/tools.php?page=wpt-custom-mo-file3.78497.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
wpt_customofile_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WPT Custom Mo File: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.24 ▼1.121.68 ▼0.2339.65 ▼1.73
Dashboard /wp-admin2,204 ▲124.89 ▼0.07110.20 ▼2.4940.33 ▼1.84
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0040.95 ▼0.5636.63 ▲1.59
Add New Post /wp-admin/post-new.php1,536 ▲2223.05 ▲5.63650.90 ▼32.8355.23 ▼2.67
Media Library /wp-admin/upload.php1,392 ▲104.12 ▼0.1297.07 ▼7.5440.81 ▼2.83
WPT Custom Mo File /wp-admin/tools.php?page=wpt-custom-mo-file1,5931.9432.71129.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/wpt-custom-mo-file/uninstall.php+43
    unlink(wp-content/uploads/wpt-custom-mo-file): No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The slick but efficient WPT Custom Mo File settings panel.) image not found
You can look at the official readme.txt

wpt-custom-mo-file/wpt-custom-mo-file.php Passed 13 tests

The primary PHP file in "WPT Custom Mo File" version 1.2.2 is used by WordPress to initiate all plugin functionality
92 characters long description:
A powerful WordPress plugin that let you use your own translation .mo files. Simple as that.

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 plugin7,842 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,9807,0216,500
PHP7171316648
PO File2110118304
CSS45833257
Sass1390132
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin