Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.03ms] Passed 4 tests
This is a short check of server-side resources used by Multisite Language Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 37.46 ▼4.46 |
Dashboard /wp-admin | 3.54 ▲0.20 | 48.35 ▼15.15 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.80 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 94.46 ▼4.32 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.58 ▲1.32 |
Server storage [IO: ▲5.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,036 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multisite Language Switcher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲24 | 14.67 ▲0.40 | 1.60 ▼0.31 | 37.59 ▼6.43 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.03 | 93.68 ▼11.40 | 46.50 ▼0.37 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▲0.03 | 39.87 ▲2.52 | 38.37 ▲6.09 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.39 ▲0.58 | 645.90 ▼16.45 | 60.82 ▼0.88 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.20 ▼0.00 | 96.49 ▲3.00 | 42.29 ▲0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 158× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/PantheonInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'lloc\\Msls\\ContentImport\\Importers\\ImportersBaseFactory' not found in wp-content/plugins/multisite-language-switcher/includes/ContentImport/Importers/PostMetaImporters.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > PHP Fatal error
Uncaught Error: Class 'lloc\\Msls\\MslsRegistryInstance' not found in wp-content/plugins/multisite-language-switcher/includes/ContentImport/MetaBox.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/multisite-language-switcher/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: multilingual, multisite, localization, switcher, language
multisite-language-switcher/MultisiteLanguageSwitcher.php 92% from 13 tests
"Multisite Language Switcher" version 2.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multisite-language-switcher.php" instead of "MultisiteLanguageSwitcher.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected50,346 lines of code in 746 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 514 | 0 | 0 | 35,062 |
PHP | 193 | 1,820 | 3,978 | 6,792 |
PO File | 28 | 2,253 | 3,017 | 6,528 |
CSS | 3 | 0 | 0 | 1,564 |
JSON | 1 | 0 | 0 | 160 |
YAML | 3 | 31 | 3 | 123 |
JavaScript | 3 | 2 | 0 | 79 |
LESS | 1 | 1 | 0 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 176 | |
▷ Abstract classes | 4 | 2.27% |
▷ Concrete classes | 172 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 493 | |
▷ Static methods | 81 | 16.43% |
▷ Public methods | 416 | 84.38% |
▷ Protected methods | 65 | 13.18% |
▷ Private methods | 12 | 2.43% |
Functions | 27 | |
▷ Named functions | 6 | 22.22% |
▷ Anonymous functions | 21 | 77.78% |
Constants | 23 | |
▷ Global constants | 3 | 13.04% |
▷ Class constants | 20 | 86.96% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
250 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/fam.png | 0.52KB | 0.72KB | 0.00% |
flags/cf.png | 0.60KB | 0.72KB | 0.00% |
flags/la.png | 0.55KB | 0.70KB | 0.00% |
flags/bt.png | 0.62KB | 0.70KB | 0.00% |
flags/cg.png | 0.51KB | 0.62KB | 0.00% |