84% uni-localize

Code Review | Uni Localize

WordPress plugin Uni Localize scored 84% from 54 tests.

About plugin

  • Plugin page: uni-localize
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 12, 2021
  • Latest release: Dec 16, 2021
  • Number of updates: 7
  • Update frequency: every 6.9 days
  • Top authors: uiwebkit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.93ms] Passed 4 tests

An overview of server-side resources used by Uni Localize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.45 ▼9.59
Dashboard /wp-admin3.37 ▲0.0744.80 ▼2.56
Posts /wp-admin/edit.php3.42 ▲0.0748.18 ▲1.41
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.95 ▼9.83
Media Library /wp-admin/upload.php3.30 ▲0.0734.48 ▼1.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Uni Localize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15615.69 ▲1.112.74 ▲0.9537.79 ▼9.20
Dashboard /wp-admin2,226 ▲416.20 ▲0.2999.62 ▼0.9540.39 ▼4.66
Posts /wp-admin/edit.php2,127 ▲383.16 ▲1.0041.83 ▲0.6335.36 ▲0.02
Add New Post /wp-admin/post-new.php1,374 ▼14017.29 ▼0.19551.91 ▼59.8228.38 ▼31.10
Media Library /wp-admin/upload.php1,420 ▲355.57 ▲1.3795.45 ▲0.1741.07 ▲0.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_uni_lang_menu_widget
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/uni-localize/widgets/lang-menu/templates/customization/translate.php
    • > /wp-content/plugins/uni-localize/widgets/lang-menu/templates/customization/customize.php
    • > /wp-content/plugins/uni-localize/widgets/lang-menu/i18n/list.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can take inspiration from this readme.txt

uni-localize/uni-localize.php 92% from 13 tests

The primary PHP file in "Uni Localize" version 1.1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 272 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
No dangerous file extensions were detected54,420 lines of code in 1,008 files:
LanguageFilesBlank linesComment linesLines of code
SVG5140035,026
JavaScript4213801,54516,180
TypeScript45333372,248
PHP1311168745
JSON1110131
CSS313150
Markdown124040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity12.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin