93% custom-wpml-admin-language-switcher

Code Review | Custom WPML Admin Menu (Unofficial Addon)

WordPress plugin Custom WPML Admin Menu (Unofficial Addon) scored 93% from 53 tests.

About plugin

  • Plugin page: custom-wpml-admin...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 5.8.1
  • First release: Jan 10, 2013
  • Latest release: Jan 11, 2013
  • Number of updates: 20
  • Update frequency: every 0.1 days
  • Top authors: clubdesign (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,414 total downloads


Plugin footprint Passed 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: ▼330.06ms] Passed 4 tests

A check of server-side resources used by Custom WPML Admin Menu (Unofficial Addon)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0035.22 ▲1.33
Dashboard /wp-admin3.06 ▲0.0142.77 ▲1.32
Posts /wp-admin/edit.php3.11 ▲0.0041.56 ▲2.74
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.16 ▼1,321.35
Media Library /wp-admin/upload.php3.00 ▼0.0132.44 ▼1.53

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Custom WPML Admin Menu (Unofficial Addon)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲11716.08 ▲0.517.36 ▼0.6948.54 ▲4.33
Dashboard /wp-admin2,962 ▲1065.91 ▲0.06133.95 ▲0.9286.80 ▼20.49
Posts /wp-admin/edit.php2,735 ▲292.69 ▼0.0061.56 ▲1.8897.42 ▲7.66
Add New Post /wp-admin/post-new.php1,476 ▼37518.11 ▲0.35260.07 ▼87.30118.54 ▲12.11
Media Library /wp-admin/upload.php1,800 ▲284.99 ▼0.04148.40 ▲11.3694.49 ▼19.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-wpml-admin-language-switcher/custom-wpml-admin-js.php
    • > /wp-content/plugins/custom-wpml-admin-language-switcher/custom-wpml-admin-menu.php

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === custom-wpml-admin-language-switcher === )
The official readme.txt is a good inspiration

custom-wpml-admin-language-switcher/custom-wpml-admin-menu.php 85% from 13 tests

"Custom WPML Admin Menu (Unofficial Addon)" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 230 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-wpml-admin-language-switcher.php" instead of "custom-wpml-admin-menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin