93% admin-language-per-user

Code Review | Admin Language Per User

WordPress plugin Admin Language Per User scored 93% from 54 tests.

About plugin

  • Plugin page: admin-language-pe...
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 5.9.2
  • First release: Feb 13, 2016
  • Latest release: Apr 8, 2020
  • Number of updates: 32
  • Update frequency: every 47.4 days
  • Top authors: unclego (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

9,000+ active / 46,889 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼298.19ms] Passed 4 tests

Server-side resources used by Admin Language Per User
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0755.59 ▲1.43
Dashboard /wp-admin3.48 ▲0.0734.36 ▲0.41
Posts /wp-admin/edit.php3.70 ▲0.0736.68 ▼0.96
Add New Post /wp-admin/post-new.php6.94 ▼0.0395.27 ▼1,191.84
Media Library /wp-admin/upload.php3.36 ▲0.0624.26 ▼0.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Language Per User: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.98 ▼0.076.10 ▼0.312.73 ▼0.30
Dashboard /wp-admin2,895 ▲376.17 ▲0.01123.29 ▼11.31148.03 ▼15.75
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0164.98 ▼0.68142.55 ▲0.62
Add New Post /wp-admin/post-new.php1,661 ▼5016.04 ▼5.35408.20 ▼46.42152.85 ▼6.56
Media Library /wp-admin/upload.php1,701 ▲35.47 ▼0.07137.88 ▼12.80183.47 ▼17.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_language_per_user\\_e() in wp-content/plugins/admin-language-per-user/templates/user-profile.php:5

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Wordpress admin screen)
You can look at the official readme.txt

admin-language-per-user/admin-language-per-user.php 92% from 13 tests

"Admin Language Per User" version 1.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods10100.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.66MB with 0.45MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png109.68KB37.46KB▼ 65.84%
assets/icon-128x128.png33.78KB10.57KB▼ 68.72%
assets/banner-1544x500.png417.48KB144.66KB▼ 65.35%
assets/icon-256x256.png116.60KB32.52KB▼ 72.11%