Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼3.16ms] Passed 4 tests
A check of server-side resources used by Lokalise Companion Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 41.39 ▼0.12 |
Dashboard /wp-admin | 3.65 ▲0.30 | 50.31 ▼13.37 |
Posts /wp-admin/edit.php | 3.71 ▲0.34 | 53.55 ▲4.82 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.35 | 85.64 ▼3.70 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 38.55 ▲4.54 |
Lokalise /wp-admin/options-general.php?page=lokalise | 3.55 | 31.86 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 82 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_lokalise_auth_tokens |
New WordPress options |
---|
can_compress_scripts |
lokalise_version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
lokalise_secret |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Lokalise Companion Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲62 | 14.25 ▼0.14 | 1.63 ▼0.05 | 41.06 ▼2.87 |
Dashboard /wp-admin | 2,214 ▲40 | 5.60 ▲0.06 | 89.81 ▼13.70 | 38.53 ▼4.74 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.10 ▲0.12 | 40.56 ▲3.65 | 38.01 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,544 ▲13 | 23.41 ▲0.51 | 668.68 ▼8.82 | 54.30 ▼4.33 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.15 ▼0.07 | 98.92 ▼4.87 | 42.73 ▼0.54 |
Lokalise /wp-admin/options-general.php?page=lokalise | 804 | 2.04 | 28.01 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Lokalise_Locales' not found in wp-content/plugins/lokalise/include/Locales/class-lokalise-locales-site.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/Model/class-lokalise-post-types-provider.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/class-lokalise-i18n.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/Provider/class-lokalise-provider-wpml.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/class-lokalise-rest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/Provider/class-lokalise-provider-polylang.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Lokalise_Locales' not found in wp-content/plugins/lokalise/include/Locales/class-lokalise-locales-wpml.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lokalise/template/admin-notice-many-providers.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lokalise/template/admin-notice-secret.php:4
- > PHP Fatal error
Uncaught Error: Class 'Lokalise_Registrable' not found in wp-content/plugins/lokalise/include/class-lokalise-dashboard.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
lokalise/plugin.php 92% from 13 tests
The main PHP script in "Lokalise Companion Plugin" version 1.6.8 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lokalise.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,889 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 573 | 977 | 2,539 |
PO File | 3 | 72 | 0 | 178 |
CSS | 2 | 11 | 0 | 79 |
JSON | 2 | 0 | 0 | 75 |
Markdown | 1 | 9 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 3 | 8.33% |
▷ Concrete classes | 33 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 26 | 11.66% |
▷ Public methods | 192 | 86.10% |
▷ Protected methods | 4 | 1.79% |
▷ Private methods | 27 | 12.11% |
Functions | 14 | |
▷ Named functions | 4 | 28.57% |
▷ Anonymous functions | 10 | 71.43% |
Constants | 25 | |
▷ Global constants | 8 | 32.00% |
▷ Class constants | 17 | 68.00% |
▷ Public constants | 17 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/lokalise-logo.png | 0.25KB | 0.29KB | 0.00% |