Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼27.76ms] Passed 4 tests
Analyzing server-side resources used by JSM User Locale Selector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 43.57 ▼35.60 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.71 ▼2.33 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 48.25 ▼25.43 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 91.47 ▼44.02 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 37.25 ▼5.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for JSM User Locale Selector
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 13.56 ▼0.93 | 1.82 ▼0.23 | 553.38 ▲430.14 |
Dashboard /wp-admin | 2,226 ▲25 | 4.83 ▼0.08 | 101.64 ▼111.66 | 39.55 ▼171.81 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.04 ▼0.01 | 35.37 ▼54.52 | 31.05 ▼164.60 |
Add New Post /wp-admin/post-new.php | 1,530 ▲122 | 23.19 ▲5.09 | 617.07 ▼495.32 | 48.57 ▼99.63 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.19 ▲0.08 | 99.91 ▼145.15 | 46.00 ▼112.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jsm-user-locale/jsm-user-locale.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: back-end, admin, select, locale, front-end...
jsm-user-locale/jsm-user-locale.php Passed 13 tests
The primary PHP file in "JSM User Locale Selector" version 2.2.1 is used by WordPress to initiate all plugin functionality
113 characters long description:
Add a quick and easy user locale / language selector in the WordPress admin back-end and front-end toolbar menus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected385 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 102 | 34 | 338 |
PO File | 1 | 8 | 10 | 28 |
Markdown | 1 | 9 | 0 | 19 |
PHP code Passed 2 tests
Analyzing 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.64 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin