Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.43MB] [CPU: ▲2.30ms] Passed 4 tests
An overview of server-side resources used by WP Multilang
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.10 | 49.47 ▲11.39 |
Dashboard /wp-admin | 4.88 ▲1.54 | 54.31 ▼7.12 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 53.43 ▲7.32 |
Add New Post /wp-admin/post-new.php | 7.55 ▲1.66 | 97.94 ▼2.40 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 48.31 ▲15.99 |
WP Multilang /wp-admin/options-general.php?page=wpm-settings | 4.78 | 41.48 |
Server storage [IO: ▲0.55MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 452 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_wpm_language_switcher |
widget_recent-comments |
wpm_site_language |
widget_recent-posts |
wpm_db_version |
db_upgraded |
wpm_uninstall_translations |
can_compress_scripts |
wpm_use_prefix |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Multilang
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲41 | 13.27 ▼0.98 | 1.51 ▼0.81 | 43.44 ▼4.40 |
Dashboard /wp-admin | 2,209 ▲17 | 4.85 ▼0.08 | 98.82 ▼16.67 | 39.15 ▼3.28 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.12 ▲0.07 | 35.77 ▼0.04 | 32.12 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,718 | 18.87 ▼4.34 | 921.12 ▲279.09 | 55.78 ▼4.26 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.23 ▼0.06 | 98.52 ▼3.43 | 42.89 ▼1.80 |
WP Multilang /wp-admin/options-general.php?page=wpm-settings | 975 | 2.08 | 26.14 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_wpm_language_switcher
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-multilang/templates/admin-language-switcher.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-multilang/templates/language-switcher-list.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-multilang/templates/admin-language-switcher.php on line 3
- > PHP Notice
Undefined variable: lang in wp-content/plugins/wp-multilang/templates/admin-language-switcher-customizer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-multilang/templates/language-switcher-dropdown.php:2
- > PHP Notice
Undefined variable: languages in wp-content/plugins/wp-multilang/templates/admin-language-switcher.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-multilang/templates/language-switcher-select.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-multilang/templates/admin-language-switcher-customizer.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-multilang/templates/admin-language-switcher-customizer.php on line 4
- > PHP Notice
Undefined variable: languages in wp-content/plugins/wp-multilang/templates/admin-language-switcher-customizer.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-multilang/templates/admin-language-switcher-customizer.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=wpm-settings
- > Network (severe)
https://www.paypalobjects.com/en_UA/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Requires php: Invalid plugin version format
wp-multilang/wp-multilang.php Passed 13 tests
The entry point to "WP Multilang" version 2.4.1 is a PHP file that has certain tags in its header comment area
33 characters long description:
Multilingual plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,837 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 2,306 | 4,126 | 7,998 |
JSON | 20 | 0 | 0 | 767 |
Sass | 15 | 78 | 2 | 345 |
JavaScript | 14 | 60 | 18 | 269 |
PO File | 1 | 103 | 170 | 243 |
CSS | 6 | 29 | 3 | 215 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 5 | 8.06% |
▷ Concrete classes | 57 | 91.94% |
▷ Final classes | 1 | 1.75% |
Methods | 427 | |
▷ Static methods | 81 | 18.97% |
▷ Public methods | 376 | 88.06% |
▷ Protected methods | 22 | 5.15% |
▷ Private methods | 29 | 6.79% |
Functions | 89 | |
▷ Named functions | 85 | 95.51% |
▷ Anonymous functions | 4 | 4.49% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
298 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/ko.png | 0.25KB | 0.26KB | 0.00% |
flags/bt.png | 0.29KB | 0.30KB | 0.00% |
flags/pt-br.png | 0.33KB | 0.39KB | 0.00% |
flags/ne.png | 0.18KB | 0.29KB | 0.00% |
flags/dk.png | 0.17KB | 0.22KB | 0.00% |