10% language-option-for-acf4-fields

Code Review | Language option for ACF4+ Fields

WordPress plugin Language option for ACF4+ Fields scored 10% from 54 tests.

About plugin

  • Plugin page: language-option-f...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2014
  • Latest release: Sep 3, 2014
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: VoiD2008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,993 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/language-option-for-acf4-fields/index.php+210
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Language option for ACF4+ Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.53 ▼5.74
Dashboard /wp-admin3.31 ▲0.0048.92 ▲3.46
Posts /wp-admin/edit.php3.36 ▲0.0050.56 ▲0.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.98 ▼0.77
Media Library /wp-admin/upload.php3.23 ▲0.0033.17 ▼3.79

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Language option for ACF4+ Fields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.451.69 ▼0.2542.14 ▼1.75
Dashboard /wp-admin2,209 ▲215.85 ▲0.9599.76 ▼12.7940.77 ▼5.70
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0340.80 ▲0.6434.43 ▼3.67
Add New Post /wp-admin/post-new.php1,521 ▼1223.32 ▲0.24630.89 ▼58.9658.91 ▼3.94
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0395.40 ▼7.1840.83 ▼3.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/language-option-for-acf4-fields/index.php on line 210

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wpml, multilanguage, xili, polylang, acf

language-option-for-acf4-fields/index.php 85% from 13 tests

The main PHP file in "Language option for ACF4+ Fields" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("language-option-for-acf4-fields.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected488 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1580281
PHP13110168
PO File19939

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png11.47KB7.19KB▼ 37.32%
screenshot-1.png13.29KB8.77KB▼ 34.03%