89% form-multilingual-for-givewp

Code Review | Form Multilingual for GiveWP

WordPress plugin Form Multilingual for GiveWP scored89%from 54 tests.

About plugin

  • Plugin page: form-multilingual...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Aug 3, 2023
  • Number of updates: 13
  • Update frequency: every 32.4 days
  • Top authors: linknacional (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.58ms] Passed 4 tests

Server-side resources used by Form Multilingual for GiveWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.14 ▼1.72
Dashboard /wp-admin3.31 ▲0.0049.90 ▼1.67
Posts /wp-admin/edit.php3.36 ▲0.0044.57 ▼9.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.30 ▼7.50
Media Library /wp-admin/upload.php3.23 ▲0.0034.74 ▼3.49

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Form Multilingual for GiveWP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.16 ▼0.342.04 ▼0.0146.57 ▲2.42
Dashboard /wp-admin2,189 ▲125.64 ▼0.03117.11 ▲27.1154.31 ▲11.63
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0337.99 ▼2.0932.52 ▼8.25
Add New Post /wp-admin/post-new.php1,526 ▼1123.48 ▲5.23676.45 ▲31.3856.98 ▼22.79
Media Library /wp-admin/upload.php1,397 ▼04.17 ▼0.0198.63 ▼3.2542.15 ▼1.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Example of a translated receipt.) image not found
The official readme.txt is a good inspiration

form-multilingual-for-givewp/lkn-form-multilingual-give.php 85% from 13 tests

"Form Multilingual for GiveWP" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("form-multilingual-for-givewp.php" instead of "lkn-form-multilingual-give.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 detected286 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP379205262
Markdown119022
PO File1012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods110.00%
▷ Public methods440.00%
▷ Protected methods00.00%
▷ Private methods660.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
There are no PNG files in this plugin