10% many-lingual-text-widget

Code Review | Many lingual text widget

WordPress plugin Many lingual text widget scored10%from 54 tests.

About plugin

  • Plugin page: many-lingual-text...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Jan 28, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: superpuperlesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,036 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.58 ▼37.13
Dashboard /wp-admin2.10 ▼1.205.90 ▼46.30
Posts /wp-admin/edit.php2.10 ▼1.265.77 ▼41.31
Add New Post /wp-admin/post-new.php2.10 ▼3.796.22 ▼86.24
Media Library /wp-admin/upload.php2.10 ▼1.135.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.131.66 ▼0.5544.10 ▲1.30
Dashboard /wp-admin2,206 ▲154.87 ▼0.03112.73 ▼1.3043.14 ▼3.16
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0638.69 ▲1.9535.54 ▲2.75
Add New Post /wp-admin/post-new.php1,542 ▲2318.36 ▼4.77605.83 ▼81.6650.38 ▼6.78
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0696.17 ▼19.7342.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP11322
CSS12019

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 code0.28
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png16.05KB4.89KB▼ 69.52%