Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.83ms] Passed 4 tests
Server-side resources used by WPSSO User Locale Selector
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.29 ▲3.67 |
Dashboard /wp-admin | 3.41 ▲0.06 | 47.13 ▼16.58 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.68 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.46 ▼13.52 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.75 ▲1.52 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
WPSSO User Locale Selector: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.07 ▼0.34 | 1.83 ▲0.20 | 42.53 ▼5.35 |
Dashboard /wp-admin | 2,195 ▲23 | 5.49 ▼0.19 | 92.84 ▼8.13 | 35.79 ▼6.65 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▼0.00 | 37.74 ▲1.08 | 38.50 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,532 ▼4 | 23.04 ▼0.11 | 651.90 ▲15.59 | 53.45 ▲1.76 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▲0.01 | 99.81 ▲0.92 | 42.83 ▲2.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wpsso-user-locale/lib/filters.php
- > /wp-content/plugins/wpsso-user-locale/lib/register.php
- > /wp-content/plugins/wpsso-user-locale/lib/locale.php
- > /wp-content/plugins/wpsso-user-locale/lib/abstract/com/add-on.php
- > /wp-content/plugins/wpsso-user-locale/gettext/gettext-lib-config.php
- > /wp-content/plugins/wpsso-user-locale/lib/abstract/add-on.php
- > /wp-content/plugins/wpsso-user-locale/gettext/gettext-lib-abstract-com.php
- > /wp-content/plugins/wpsso-user-locale/wpsso-user-locale.php
- > /wp-content/plugins/wpsso-user-locale/lib/config.php
- > /wp-content/plugins/wpsso-user-locale/lib/filters-messages.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: region, toolbar, language, menu, user locale...
wpsso-user-locale/wpsso-user-locale.php Passed 13 tests
The principal PHP file in "WPSSO User Locale Selector" v. 4.0.0 is loaded by WordPress automatically on each request
83 characters long description:
Quick and easy locale / language / region selector for the WordPress admin toolbar.
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
Good job! No executable or dangerous file extensions detected788 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 352 | 171 | 644 |
PO File | 1 | 19 | 19 | 62 |
Markdown | 1 | 26 | 0 | 52 |
HTML | 2 | 32 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 8 | 20.00% |
▷ Public methods | 31 | 77.50% |
▷ Protected methods | 5 | 12.50% |
▷ Private methods | 4 | 10.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 76.45KB | 23.75KB | ▼ 68.93% |
images/icon-128x128.png | 28.14KB | 9.36KB | ▼ 66.76% |