Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/languageswitcher/languageswitcher.php+31
Use of undefined constant Languageswitcher - assumed 'Languageswitcher' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.84MB] [CPU: ▼51.61ms] Passed 4 tests
An overview of server-side resources used by Languageswitcher
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 5.11 ▼34.63 |
Dashboard /wp-admin | 2.17 ▼1.14 | 6.60 ▼46.54 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.76 ▼41.96 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 7.03 ▼83.30 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.70 ▼28.64 |
Languageswitcher /wp-admin/options-general.php?page=languageswitcher | 2.17 | 6.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Languageswitcher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲121 | 13.40 ▼1.14 | 10.18 ▲7.80 | 39.23 ▼0.77 |
Dashboard /wp-admin | 2,205 ▲24 | 5.62 ▼0.09 | 92.11 ▼17.29 | 41.17 ▲2.38 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.04 ▲0.02 | 41.89 ▲3.59 | 37.33 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.26 ▼0.41 | 668.83 ▼31.87 | 53.19 ▼4.54 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▲0.04 | 95.81 ▼32.58 | 46.82 ▼4.91 |
Languageswitcher /wp-admin/options-general.php?page=languageswitcher | 890 | 2.01 | 25.51 | 29.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/languageswitcher/languageswitcher.php+31
Use of undefined constant Languageswitcher - assumed 'Languageswitcher' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=languageswitcher
- > Warning in wp-content/plugins/languageswitcher/languageswitcher.php+31
Use of undefined constant Languageswitcher - assumed 'Languageswitcher' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=languageswitcher
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=languageswitcher
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=languageswitcher
- > Notice in wp-content/plugins/languageswitcher/languageswitcher.php+137
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/languageswitcher/css/style.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant Languageswitcher - assumed 'Languageswitcher' (this will throw an Error in a future version of PHP) in wp-content/plugins/languageswitcher/languageswitcher.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/languageswitcher/languageswitcher.php:93
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
languageswitcher/languageswitcher.php 92% from 13 tests
The principal PHP file in "Languageswitcher" v. 0.2.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin386 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 134 | 259 |
JavaScript | 1 | 20 | 16 | 73 |
PO File | 1 | 17 | 17 | 54 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin