Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 35.22 ▲1.33 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.77 ▲1.32 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 41.56 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.16 ▼1,321.35 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲117 | 16.08 ▲0.51 | 7.36 ▼0.69 | 48.54 ▲4.33 |
Dashboard /wp-admin | 2,962 ▲106 | 5.91 ▲0.06 | 133.95 ▲0.92 | 86.80 ▼20.49 |
Posts /wp-admin/edit.php | 2,735 ▲29 | 2.69 ▼0.00 | 61.56 ▲1.88 | 97.42 ▲7.66 |
Add New Post /wp-admin/post-new.php | 1,476 ▼375 | 18.11 ▲0.35 | 260.07 ▼87.30 | 118.54 ▲12.11 |
Media Library /wp-admin/upload.php | 1,800 ▲28 | 4.99 ▼0.04 | 148.40 ▲11.36 | 94.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
Optimizations
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 9 | 116 |
CSS | 1 | 14 | 9 | 76 |
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 code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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