10% easy-language

Code Review | Easy Language

WordPress plugin Easy Language scored10%from 54 tests.

About plugin

  • Plugin page: easy-language
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jun 15, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: laolaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /346 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/easy-language/easy-language.php+216
    syntax error, unexpected '|', expecting variable (T_VARIABLE)

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.86ms] Passed 4 tests

A check of server-side resources used by Easy Language
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0030.50 ▼9.38
Dashboard /wp-admin3.31 ▼0.0440.17 ▼18.62
Posts /wp-admin/edit.php3.36 ▲0.0045.96 ▲1.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0075.65 ▼21.19
Media Library /wp-admin/upload.php3.23 ▲0.0030.65 ▼6.25

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Language
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.071.54 ▼0.0736.15 ▼3.01
Dashboard /wp-admin2,198 ▲215.58 ▼0.0993.06 ▲8.3141.50 ▼1.51
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0038.77 ▼0.9435.50 ▼0.67
Add New Post /wp-admin/post-new.php1,526 ▼223.37 ▲0.00678.31 ▲31.6252.04 ▼3.28
Media Library /wp-admin/upload.php1,400 ▲64.17 ▼0.2390.87 ▼7.4342.72 ▲1.32

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/easy-language/easy-language.php on line 216

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: falc, plain language, leichte sprache, easy language

easy-language/easy-language.php 85% from 13 tests

The main PHP file in "Easy Language" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "5.9")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("8.0" instead of "7.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin290 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP563209267
PO File14623

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gfx/en_ls.png0.55KB0.08KB▼ 85.00%
gfx/fr_ls.png0.55KB0.08KB▼ 85.00%
gfx/de_ls.png0.55KB0.08KB▼ 85.00%
gfx/ls.png0.55KB0.08KB▼ 85.00%