84% edd-multilingual

Code Review | EDD Multilingual

WordPress plugin EDD Multilingual scored84%from 54 tests.

About plugin

  • Plugin page: edd-multilingual
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Nov 20, 2023
  • Number of updates: 51
  • Update frequency: every 78.8 days
  • Top authors: dgwatkins (62.75%)vukvukovich (27.45%)strategio (9.8%)AmirHelzer (5.88%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.51ms] Passed 4 tests

A check of server-side resources used by EDD Multilingual
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.48 ▼3.59
Dashboard /wp-admin3.34 ▼0.0146.73 ▼15.90
Posts /wp-admin/edit.php3.39 ▲0.0349.90 ▲4.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.40 ▼12.81
Media Library /wp-admin/upload.php3.27 ▲0.0332.63 ▼1.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EDD Multilingual
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲7914.06 ▼0.651.94 ▲0.1438.22 ▼5.87
Dashboard /wp-admin2,206 ▲255.60 ▼0.0793.66 ▼21.2943.49 ▼4.07
Posts /wp-admin/edit.php2,114 ▲142.09 ▲0.1539.71 ▲0.8235.06 ▲2.04
Add New Post /wp-admin/post-new.php1,537 ▲1123.45 ▼0.07624.88 ▼47.8251.12 ▼5.09
Media Library /wp-admin/upload.php1,411 ▲114.20 ▼0.0695.14 ▼5.3242.37 ▼2.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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: Call to undefined function add_action() in wp-content/plugins/edd-multilingual/class-edd-multilingual.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: download, e-commerce, edd, multilingual, wpml

edd-multilingual/edd-multilingual.php 85% from 13 tests

The primary PHP file in "EDD Multilingual" version 1.4.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24286124
XML12060

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected