Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▼5.05ms] Passed 4 tests
An overview of server-side resources used by WCM User Language Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.43 | 39.00 ▼3.49 |
Dashboard /wp-admin | 3.79 ▲0.41 | 47.05 ▼17.73 |
Posts /wp-admin/edit.php | 3.82 ▲0.43 | 46.94 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.43 | 113.79 ▲1.21 |
Media Library /wp-admin/upload.php | 3.69 ▲0.43 | 37.78 ▲5.87 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WCM User Language Switcher: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.31 ▼0.99 | 1.61 ▼0.51 | 40.53 ▼4.82 |
Dashboard /wp-admin | 2,224 ▲36 | 5.88 ▲0.07 | 108.10 ▼3.73 | 41.77 ▼1.00 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.06 ▲0.04 | 39.23 ▼2.22 | 34.93 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.00 ▲4.86 | 641.73 ▼15.59 | 50.81 ▼8.74 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.18 ▲0.00 | 92.29 ▼8.76 | 40.42 ▼5.10 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcm-user-language-switcher/wcm_lang_switch.class.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: switcher, localisation, language
wcm-user-language-switcher/wcm_lang_switch.class.php 92% from 13 tests
The main file in "WCM User Language Switcher" v. 1.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wcm-user-language-switcher.php" instead of "wcm_lang_switch.class.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,633 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 4,218 |
PHP | 2 | 44 | 142 | 284 |
Markdown | 1 | 70 | 0 | 114 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 51.29KB | 17.25KB | ▼ 66.36% |
assets/logo.png | 2.81KB | 3.05KB | 0.00% |
assets/banner-1544x500.png | 31.07KB | 35.02KB | 0.00% |
screenshot-1.png | 7.82KB | 8.12KB | 0.00% |
assets/banner-772x250.png | 13.92KB | 15.23KB | 0.00% |