Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor
Server metrics [RAM: ▼1.59MB] [CPU: ▼313.85ms] Passed 4 tests
An overview of server-side resources used by Language Translation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼0.79 | 10.48 ▼25.64 |
Dashboard /wp-admin | 2.06 ▼0.99 | 7.64 ▼32.90 |
Posts /wp-admin/edit.php | 2.06 ▼1.04 | 7.25 ▼27.24 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.37 | 7.83 ▼1,166.85 |
Media Library /wp-admin/upload.php | 2.06 ▼0.95 | 6.84 ▼28.39 |
/wp-admin/admin.php?page=lt-conv-price-opt | 2.06 | 7.53 |
All Conversions /wp-admin/edit.php?post_type=lang_conv | 2.06 | 6.46 |
Orders /wp-admin/edit.php?post_type=lang_conv&page=lt-orders | 2.06 | 7.88 |
Languages /wp-admin/edit.php?post_type=lang_trans | 2.06 | 6.72 |
Settings /wp-admin/edit.php?post_type=lang_conv&page=lt-settings | 2.06 | 7.06 |
Add New /wp-admin/post-new.php?post_type=lang_conv | 2.06 | 8.38 |
Server storage [IO: ▲0.96MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 4 new options
New WordPress options |
---|
lt_set_option |
lt_options |
lt_set_pages |
widget_lt-order |
Browser metrics Passed 4 tests
Language Translation: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲265 | 16.50 ▲0.95 | 22.26 ▲13.71 | 48.58 ▲3.46 |
Dashboard /wp-admin | 2,985 ▲132 | 6.19 ▲0.34 | 146.82 ▲14.08 | 106.98 ▼4.58 |
Posts /wp-admin/edit.php | 2,764 ▲61 | 2.70 ▲0.02 | 69.84 ▲1.19 | 84.94 ▼21.87 |
Add New Post /wp-admin/post-new.php | 1,627 ▲39 | 21.63 ▼0.26 | 278.14 ▼11.74 | 110.89 ▲3.31 |
Media Library /wp-admin/upload.php | 1,830 ▲58 | 5.03 ▲0.03 | 151.65 ▼12.08 | 121.92 ▼11.77 |
/wp-admin/admin.php?page=lt-conv-price-opt | 1,067 | 2.10 | 57.45 | 55.48 |
All Conversions /wp-admin/edit.php?post_type=lang_conv | 1,445 | 2.64 | 73.61 | 71.98 |
Orders /wp-admin/edit.php?post_type=lang_conv&page=lt-orders | 1,267 | 2.10 | 56.26 | 57.46 |
Languages /wp-admin/edit.php?post_type=lang_trans | 1,433 | 2.64 | 67.46 | 61.21 |
Settings /wp-admin/edit.php?post_type=lang_conv&page=lt-settings | 2,055 | 2.11 | 59.09 | 81.29 |
Add New /wp-admin/post-new.php?post_type=lang_conv | 2,065 | 3.37 | 104.62 | 86.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_lt-order
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lang_conv
- > Deprecated in wp-content/plugins/language-translate/includes/widgets/class-lt-order.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; Lt_Order has a deprecated constructor
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lang_conv
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in Lt_Order is deprecated since version 4.3.0! Use __construct() instead.
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: translator, deals, posts, plugin, widget
language-translate/language-translate.php Passed 13 tests
Analyzing the main PHP file in "Language Translation" version 1.0.0
112 characters long description:
Language Translation provides a facility where the end-user can convert the contents from one language to other.
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
Good job! No executable or dangerous file extensions detected5,815 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 759 | 253 | 2,293 |
PHP | 25 | 816 | 740 | 2,241 |
CSS | 4 | 47 | 10 | 774 |
SVG | 2 | 0 | 0 | 507 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin