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.00MB] [CPU: ▼3.13ms] Passed 4 tests
An overview of server-side resources used by Language Switcher for Elementor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.00 ▲0.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.10 ▼2.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.70 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.23 ▼6.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.32 ▲3.35 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Language Switcher for Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.28 | 1.89 ▲0.29 | 42.10 ▼3.04 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.07 | 87.50 ▲1.04 | 38.50 ▼4.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.06 | 35.98 ▲2.37 | 33.37 ▼6.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 23.25 ▲0.34 | 653.51 ▲10.95 | 50.46 ▼7.19 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.24 ▲0.10 | 96.59 ▲1.91 | 42.87 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: language switcher, menu, pagebuilder, wpml, translate...
language-switcher-for-elementor/language-switcher-for-elementor.php Passed 13 tests
The main PHP file in "Language Switcher for Elementor" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
This plugin adds a language switcher widget to the Elementor Page Builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin799 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 142 | 335 | 556 |
CSS | 4 | 3 | 0 | 243 |
PHP code Passed 2 tests
An short overview of 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.22 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 20 | 74.07% |
▷ Protected methods | 3 | 11.11% |
▷ Private methods | 4 | 14.81% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin