Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.89ms] Passed 4 tests
This is a short check of server-side resources used by Linguise - Automatic multilingual translation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 45.93 ▲8.51 |
Dashboard /wp-admin | 3.64 ▲0.34 | 46.57 ▲1.31 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 46.39 ▼1.55 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 81.57 ▼11.04 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.52 ▼0.29 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 298 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_linguise_urls |
New WordPress options |
---|
db_upgraded |
linguise_install_time |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
linguise_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Linguise - Automatic multilingual translation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲61 | 14.05 ▼0.27 | 1.74 ▲0.02 | 43.20 ▲2.24 |
Dashboard /wp-admin | 2,225 ▲48 | 5.51 ▼0.15 | 83.19 ▼11.05 | 75.88 ▲32.20 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.11 ▲0.10 | 35.40 ▼4.59 | 33.06 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,557 ▲21 | 21.03 ▼2.34 | 750.84 ▼5.91 | 56.43 ▲4.04 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.21 ▼0.09 | 97.30 ▼4.09 | 68.43 ▲21.61 |
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
- The uninstall procedure failed, leaving 1 table in the database
- wp_linguise_urls
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- linguise_version
- db_upgraded
- theysaidso_admin_options
- linguise_install_time
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/linguise/src/frontend/ukrainian_redirection.php
- > /wp-content/plugins/linguise/src/admin/menu.php
- > /wp-content/plugins/linguise/src/frontend/browser_language.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linguise/src/install.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function linguiseGetOptions() in wp-content/plugins/linguise/src/elementor.php:10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/linguise/src/woocommerce.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ImposterInterface' not found in wp-content/plugins/linguise/vendor/typisttech/imposter/src/Imposter.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/linguise/src/woocommerce.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\FilesystemInterface' not found in wp-content/plugins/linguise/vendor/typisttech/imposter/src/Filesystem.php:12
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigInterface' not found in wp-content/plugins/linguise/vendor/typisttech/imposter/src/ProjectConfigInterface.php:7
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/linguise/src/woocommerce.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\TransformerInterface' not found in wp-content/plugins/linguise/vendor/typisttech/imposter/src/Transformer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/linguise/src/woocommerce.php:16
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: translation, woocommerce translation, front-end translation, multilingual, automatic translation...
linguise/linguise.php 92% from 13 tests
"Linguise - Automatic multilingual translation" version 1.10.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
There were no executable files found in this plugin21,169 lines of code in 273 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,542 | 1,839 | 10,171 |
SVG | 168 | 18 | 147 | 6,284 |
Sass | 3 | 235 | 0 | 1,845 |
JSON | 8 | 1 | 0 | 1,225 |
JavaScript | 5 | 117 | 23 | 987 |
Markdown | 5 | 208 | 0 | 417 |
XML | 1 | 42 | 80 | 126 |
HTML | 1 | 0 | 0 | 111 |
CSS | 2 | 2 | 8 | 3 |
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.44 |
Average class complexity | 16.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 49 | 100.00% |
▷ Final classes | 3 | 6.12% |
Methods | 346 | |
▷ Static methods | 126 | 36.42% |
▷ Public methods | 297 | 85.84% |
▷ Protected methods | 19 | 5.49% |
▷ Private methods | 30 | 8.67% |
Functions | 105 | |
▷ Named functions | 60 | 57.14% |
▷ Anonymous functions | 45 | 42.86% |
Constants | 63 | |
▷ Global constants | 59 | 93.65% |
▷ Class constants | 4 | 6.35% |
▷ Public constants | 3 | 75.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.20KB | 0.21KB | 0.00% |
assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |