94% admin-in-english-with-switch

Code Review | Admin in English with Switch

WordPress plugin Admin in English with Switch scored 94% from 54 tests.

About plugin

  • Plugin page: admin-in-english-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 5.9.2
  • First release: Jan 29, 2013
  • Latest release: Jan 31, 2013
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: dontcare (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active / 4,355 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Admin in English with Switch
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.42 ▲6.47
Dashboard /wp-admin3.44 ▲0.0333.55 ▲0.39
Posts /wp-admin/edit.php3.66 ▲0.0238.00 ▲0.82
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.04 ▼1,171.01
Media Library /wp-admin/upload.php3.32 ▲0.0227.25 ▲3.58

Server storage [IO: ▲0.01MB] [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, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin in English with Switch
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,980 ▲22618.64 ▲2.6513.00 ▲6.692.84 ▲0.33
Dashboard /wp-admin2,978 ▲1207.88 ▲1.57126.84 ▼11.71155.97 ▼8.29
Posts /wp-admin/edit.php2,773 ▲794.23 ▲1.0071.94 ▲7.66146.58 ▲4.27
Add New Post /wp-admin/post-new.php1,528 ▼18317.11 ▼3.68328.79 ▼124.3143.26 ▼119.48
Media Library /wp-admin/upload.php1,784 ▲867.12 ▲1.63134.08 ▼1.85184.51 ▼8.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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)
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-in-english-with-switch/admin-in-english-with-switch.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/admin-in-english-with-switch/admin-in-english-with-switch.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: translations, admin, translation, backend, i18n...

admin-in-english-with-switch/admin-in-english-with-switch.php 92% from 13 tests

Analyzing the main PHP file in "Admin in English with Switch" version 1.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 317 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected102 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin