Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.73MB] [CPU: ▲2.76ms] Passed 4 tests
A check of server-side resources used by Language Switcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 44.31 ▲5.48 |
Dashboard /wp-admin | 4.06 ▲0.76 | 52.56 ▲0.37 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 49.45 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.71 | 82.80 ▲2.98 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 41.65 ▲11.11 |
Settings /wp-admin/admin.php?page=language-switcher | 3.99 | 37.81 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_language_switcher_widget |
db_upgraded |
Browser metrics Passed 4 tests
Language Switcher: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.72 ▼0.56 | 8.76 ▲6.78 | 42.64 ▼0.02 |
Dashboard /wp-admin | 2,221 ▲44 | 5.67 ▲0.13 | 94.82 ▲8.25 | 41.88 ▲2.48 |
Posts /wp-admin/edit.php | 2,120 ▲23 | 2.02 ▲0.05 | 35.26 ▲0.36 | 32.07 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.14 ▼0.01 | 666.18 ▼7.83 | 54.19 ▼6.68 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.23 ▲0.10 | 94.25 ▼4.63 | 44.29 ▲1.04 |
Settings /wp-admin/admin.php?page=language-switcher | 2,687 | 1.66 | 22.36 | 131.86 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_language_switcher_widget
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (The language switcher), #2 (Edit post type language), #3 (Edit tag language), #4 (Select activate languages), #5 (Select activate post types and taxonomies), #6 (Add the language switcher with the widget)
language-switcher/language-switcher.php Passed 13 tests
The entry point to "Language Switcher" version 3.7.5 is a PHP file that has certain tags in its header comment area
52 characters long description:
Add a Language Switcher to Post Types and Taxonomies
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,281 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 1,173 | 495 | 3,021 |
CSS | 3 | 16 | 18 | 233 |
JavaScript | 2 | 18 | 10 | 25 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 71.17 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 2 | 1.92% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.92% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
10 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 29.76KB | 12.30KB | ▼ 58.67% |
assets/images/flags.png | 78.70KB | 26.55KB | ▼ 66.27% |
screenshot-4.png | 46.27KB | 16.01KB | ▼ 65.40% |
screenshot-3.png | 19.74KB | 8.28KB | ▼ 58.06% |
assets/images/dnd-icon.png | 0.63KB | 0.52KB | ▼ 18.52% |