Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.93MB] [CPU: ▼30.38ms] Passed 4 tests
An overview of server-side resources used by xili-language
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.04 ▲1.58 | 74.90 ▲29.07 |
Dashboard /wp-admin | 6.23 ▲2.93 | 33.71 ▼41.32 |
Posts /wp-admin/edit.php | 6.23 ▲2.88 | 30.43 ▼26.33 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 29.97 ▼64.84 |
Media Library /wp-admin/upload.php | 6.23 ▲3.01 | 45.64 ▲10.98 |
Languages ©xili /wp-admin/options-general.php?page=language_page | 6.24 | 32.45 |
About xili-language /wp-admin/index.php?page=xl-about | 6.24 | 28.18 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_xili-recent-comments |
widget_xili-recent-posts |
xili_language_settings |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_xili_language_widgets |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for xili-language
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲114 | 13.32 ▲0.07 | 2.14 ▲0.06 | 40.43 ▼4.57 |
Dashboard /wp-admin | 2,288 ▲82 | 4.98 ▲0.12 | 119.28 ▲3.43 | 84.56 ▲42.67 |
Posts /wp-admin/edit.php | 2,290 ▲199 | 2.34 ▲0.35 | 43.76 ▲6.28 | 35.34 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,847 ▲313 | 20.12 ▼2.89 | 806.39 ▲10.23 | 56.67 ▼3.97 |
Media Library /wp-admin/upload.php | 1,493 ▲108 | 4.39 ▲0.22 | 109.48 ▲6.15 | 46.58 ▲3.23 |
Languages ©xili /wp-admin/options-general.php?page=language_page | 2,306 | 2.32 | 49.88 | 149.61 |
About xili-language /wp-admin/index.php?page=xl-about | 933 | 1.86 | 32.65 | 38.01 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/xili-language/xili-includes/locales.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; GP_Locale has a deprecated constructor
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_xili_language_widgets
- widget_recent-posts
- theysaidso_admin_options
- xili_language_settings
- widget_theysaidso_widget
- widget_xili-recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_xili-recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=xl-about
- > Deprecated in wp-content/plugins/xili-language/xili-includes/locales.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; GP_Locale has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=xl-about
- > Deprecated in wp-content/plugins/xili-language/xili-includes/locales.php+56
Methods with the same name as their class will not be constructors in a future version of PHP; GP_Locales has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=xl-about
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=language_page
- > 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=language_page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/xili-language/uninstall.php
- > /wp-content/plugins/xili-language/xili-includes/pll_functions.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xili-language/xili-includes/xili-language-widgets.php:68
- > PHP Fatal error
Uncaught Error: Class 'xili_language' not found in wp-content/plugins/xili-language/xili-includes/xl-class-admin.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xili-language/xili-language.php:6014
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #5 (The plugin settings UI - third tab: Settings for navigation menus and experts.) image required
xili-language/xili-language.php 92% from 13 tests
The main PHP script in "xili-language" version 2.21.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 481 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin16,056 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 2,911 | 3,020 | 13,385 |
PO File | 3 | 791 | 939 | 2,418 |
JavaScript | 6 | 63 | 26 | 226 |
CSS | 2 | 16 | 19 | 27 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,018)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 148.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 1,018.00 |
Average method complexity | 6.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 402 | |
▷ Static methods | 6 | 1.49% |
▷ Public methods | 402 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/xili-xl-bbp-addon-logo-32.png | 2.65KB | 1.64KB | ▼ 37.95% |
xili-css/flags/fr_ca.png | 0.61KB | 0.68KB | 0.00% |
xili-css/flags/fr_fr.png | 0.53KB | 0.63KB | 0.00% |
xili-css/flags/km.png | 0.54KB | 0.72KB | 0.00% |
xili-css/flags/ar_xx.png | 0.40KB | 0.32KB | ▼ 20.87% |