Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼289.96ms] Passed 4 tests
This is a short check of server-side resources used by Admin bar languages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.35 | 53.72 ▲5.19 |
Dashboard /wp-admin | 3.64 ▲0.23 | 34.36 ▲2.52 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 38.09 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 96.75 ▼1,165.30 |
Media Library /wp-admin/upload.php | 3.65 ▲0.35 | 26.27 ▲2.52 |
Server storage [IO: ▲0.12MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 247 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin bar languages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲41 | 15.95 ▲0.31 | 6.48 ▲0.10 | 2.64 ▲0.32 |
Dashboard /wp-admin | 2,880 ▲19 | 6.08 ▼0.08 | 118.69 ▼13.50 | 151.57 ▼7.65 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.03 ▼0.20 | 63.98 ▼6.34 | 142.77 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,753 ▲92 | 20.83 ▲4.67 | 464.52 ▲28.89 | 176.78 ▲29.55 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.51 ▼0.01 | 146.36 ▲5.66 | 188.98 ▲5.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 | 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/admin-bar-languages/admin-bar-languages.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
admin-bar-languages/admin-bar-languages.php Passed 13 tests
The main PHP script in "Admin bar languages" version 1.2 is automatically included on every request by WordPress
67 characters long description:
Show flags for languages at "My sites" list in WordPress admin bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected94 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 44 | 51 |
Markdown | 1 | 15 | 0 | 24 |
CSS | 1 | 4 | 2 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
242 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/BB.png | 0.27KB | 0.25KB | ▼ 5.49% |
flags/PT.png | 0.59KB | 0.63KB | 0.00% |
flags/DK.png | 0.13KB | 0.12KB | ▼ 3.13% |
flags/PY.png | 0.31KB | 0.31KB | ▼ 1.55% |
flags/GT.png | 0.31KB | 0.32KB | 0.00% |