Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼11.59ms] Passed 4 tests
An overview of server-side resources used by R3DF Dashboard Language Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 32.74 ▼8.40 |
Dashboard /wp-admin | 3.61 ▲0.31 | 51.31 ▼21.78 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.97 ▼5.46 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 90.83 ▼10.73 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 41.37 ▲0.25 |
Dashboard Language /wp-admin/options-general.php?page=r3df-dashboard-language-switcher | 3.62 | 34.88 |
Server storage [IO: ▲0.34MB] [DB: ▲0.05MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 300 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for R3DF Dashboard Language Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.70 ▲0.35 | 2.12 ▲0.38 | 44.17 ▲3.47 |
Dashboard /wp-admin | 2,205 ▲31 | 5.62 ▼0.03 | 93.03 ▲5.61 | 37.12 ▼2.48 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.10 ▲0.12 | 37.97 ▼5.92 | 35.42 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,413 ▼122 | 17.87 ▼0.45 | 596.66 ▼52.94 | 54.34 ▼8.11 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.19 ▼0.04 | 99.11 ▼21.38 | 42.67 ▼6.89 |
Dashboard Language /wp-admin/options-general.php?page=r3df-dashboard-language-switcher | 956 | 2.03 | 23.27 | 30.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=r3df-dashboard-language-switcher
- > Notice in wp-content/plugins/r3df-dashboard-language-switcher/r3df-dashboard-language-switcher.php+792
Undefined index: en_US
- > GET request to /wp-admin/options-general.php?page=r3df-dashboard-language-switcher
- > Notice in wp-content/plugins/r3df-dashboard-language-switcher/r3df-dashboard-language-switcher.php+938
Only variables should be passed by reference
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (The admin toolbar language selector.) image required
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
r3df-dashboard-language-switcher/r3df-dashboard-language-switcher.php 92% from 13 tests
The primary PHP file in "R3DF Dashboard Language Switcher" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,233 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 6 | 0 | 602 |
PHP | 3 | 136 | 367 | 538 |
PO File | 1 | 31 | 40 | 93 |
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.49 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 98.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.09KB | 13.11KB | ▼ 60.38% |