Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/many-lingual-text-widget/many-lingual-text-widget.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; MLTW_TextWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.75ms] Passed 4 tests
This is a short check of server-side resources used by Many lingual text widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.58 ▼37.13 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.90 ▼46.30 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.77 ▼41.31 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.22 ▼86.24 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.53 ▼28.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_mltwtext |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Many lingual text widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.24 ▼1.13 | 1.66 ▼0.55 | 44.10 ▲1.30 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.03 | 112.73 ▼1.30 | 43.14 ▼3.16 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.06 | 38.69 ▲1.95 | 35.54 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.36 ▼4.77 | 605.83 ▼81.66 | 50.38 ▼6.78 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.06 | 96.17 ▼19.73 | 42.27 ▼7.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/many-lingual-text-widget/many-lingual-text-widget.php+35
Methods with the same name as their class will not be constructors in a future version of PHP; MLTW_TextWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_mltwtext
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/many-lingual-text-widget/many-lingual-text-widget.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot-1.png) image not found
many-lingual-text-widget/many-lingual-text-widget.php Passed 13 tests
The main PHP script in "Many lingual text widget" version 1.0 is automatically included on every request by WordPress
130 characters long description:
Many lingual text widget For Wordpress with Qtranslate or Qtranslate-x. You can quickly and easily make multilingual text widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected41 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 3 | 22 |
CSS | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.05KB | 4.89KB | ▼ 69.52% |