68% multi-lingual-feedback-tab

Code Review | Multilingual Feedback Tab

WordPress plugin Multilingual Feedback Tab scored68%from 54 tests.

About plugin

  • Plugin page: multi-lingual-fee...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 8, 2012
  • Latest release: May 14, 2012
  • Number of updates: 14
  • Update frequency: every 4.9 days
  • Top authors: One Hour Translation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,693 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.05ms] Passed 4 tests

An overview of server-side resources used by Multilingual Feedback Tab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.85 ▼5.40
Dashboard /wp-admin3.00 ▼0.3020.78 ▼24.43
Posts /wp-admin/edit.php3.01 ▼0.3522.48 ▼23.14
Add New Post /wp-admin/post-new.php3.00 ▼2.8822.99 ▼71.30
Media Library /wp-admin/upload.php3.01 ▼0.2222.16 ▼13.32
Multi-lingual Feedback Tab /wp-admin/tools.php?page=mlft_top3.0122.88

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Multilingual Feedback Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.40 ▲0.071.81 ▲0.0140.25 ▼4.10
Dashboard /wp-admin2,217 ▲405.57 ▼0.0890.81 ▼0.8288.15 ▲46.79
Posts /wp-admin/edit.php2,119 ▲151.97 ▼0.0441.70 ▲4.3537.90 ▲6.86
Add New Post /wp-admin/post-new.php1,545 ▲1723.59 ▲0.39617.87 ▲5.5581.47 ▲26.13
Media Library /wp-admin/upload.php1,422 ▲254.07 ▼0.1099.16 ▼6.5869.70 ▲26.17
Multi-lingual Feedback Tab /wp-admin/tools.php?page=mlft_top9242.1628.3224.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=mlft_top
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/tools.php?page=mlft_top
    • > Notice in wp-content/plugins/multi-lingual-feedback-tab/mlft_admin.php+8
    Undefined index: add_tab
    • > GET request to /wp-admin/tools.php?page=mlft_top
    • > Notice in wp-content/plugins/multi-lingual-feedback-tab/mlft_admin.php+24
    Undefined index: remove_tab

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: remove_tab in wp-content/plugins/multi-lingual-feedback-tab/mlft_admin.php on line 24
    • > PHP Notice
      Undefined index: add_tab in wp-content/plugins/multi-lingual-feedback-tab/mlft_admin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-lingual-feedback-tab/mlft_ins.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multi-lingual-feedback-tab/mlft_admin.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

multi-lingual-feedback-tab/mlft_ins.php 85% from 13 tests

The primary PHP file in "Multilingual Feedback Tab" version 1.00 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-lingual-feedback-tab.php" instead of "mlft_ins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22635116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
icon.png1.28KB1.18KB▼ 8.21%