84% qtranslate-support-for-gravityforms

Code Review | qTranslate support for GravityForms

WordPress plugin qTranslate support for GravityForms scored84%from 54 tests.

About plugin

  • Plugin page: qtranslate-suppor...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Oct 5, 2015
  • Number of updates: 11
  • Update frequency: every 58.5 days
  • Top authors: michel.weimerskirch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,444 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.02MB] [CPU: ▼6.42ms] Passed 4 tests

Server-side resources used by qTranslate support for GravityForms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.04 ▼5.32
Dashboard /wp-admin3.34 ▼0.0045.53 ▼14.06
Posts /wp-admin/edit.php3.39 ▲0.0346.45 ▼0.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.15 ▼5.43
Media Library /wp-admin/upload.php3.26 ▲0.0333.53 ▼0.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for qTranslate support for GravityForms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.071.58 ▼0.0537.16 ▼4.81
Dashboard /wp-admin2,195 ▲185.59 ▼0.0887.29 ▼0.8137.56 ▼3.84
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0538.45 ▲3.1035.53 ▼0.26
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▼0.40657.32 ▼8.5243.83 ▼10.00
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.1399.46 ▼12.8844.35 ▼2.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qtranslate-support-for-gravityforms/qtranslate-support-for-gravityforms.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

qtranslate-support-for-gravityforms/qtranslate-support-for-gravityforms.php Passed 13 tests

The main file in "qTranslate support for GravityForms" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Makes qTranslate work with GravityForms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12111120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin