74% qtranslate-support-for-woocommerce

Code Review | qTranslate support for WooCommerce

WordPress plugin qTranslate support for WooCommerce scored 74% from 54 tests.

About plugin

  • Plugin page: qtranslate-suppor...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Feb 20, 2015
  • Number of updates: 19
  • Update frequency: every 22.0 days
  • Top authors: michel.weimerskirch (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 17,205 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.40MB] [CPU: ▼43.42ms] Passed 4 tests

Analyzing server-side resources used by qTranslate support for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.57 ▼0.8910.66 ▼31.40
Dashboard /wp-admin2.62 ▼0.6918.45 ▼32.07
Posts /wp-admin/edit.php2.62 ▼0.7415.61 ▼27.66
Add New Post /wp-admin/post-new.php2.62 ▼3.2713.76 ▼82.56
Media Library /wp-admin/upload.php2.62 ▼0.6113.12 ▼21.56

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for qTranslate support for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.211.76 ▼0.1438.95 ▼9.94
Dashboard /wp-admin2,203 ▲155.83 ▲0.9199.10 ▼20.4238.11 ▼7.82
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0539.02 ▲2.4735.08 ▼0.39
Add New Post /wp-admin/post-new.php1,533 ▲1923.44 ▲5.97656.18 ▼10.5349.82 ▼0.38
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.03103.74 ▲7.9144.50 ▲4.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/qtranslate-support-for-woocommerce/qtranslate-support-for-woocommerce.php+103
    Trying to access array offset on value of type null
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qtranslate-support-for-woocommerce/qtranslate-support-for-woocommerce.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

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

The main PHP script in "qTranslate support for WooCommerce" version 1.1.0 is automatically included on every request by WordPress
38 characters long description:
Makes qTranslate work with WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13723141

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin