89% easyling

Code Review | Easyling | Website Translation Technology

WordPress plugin Easyling | Website Translation Technology scored89%from 54 tests.

About plugin

  • Plugin page: easyling
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Nov 15, 2023
  • Number of updates: 12
  • Update frequency: every 26.1 days
  • Top authors: easyling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /261 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Easyling | Website Translation Technology
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.23 ▼5.46
Dashboard /wp-admin3.45 ▲0.1447.46 ▼0.30
Posts /wp-admin/edit.php3.57 ▲0.2048.70 ▲4.00
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.00 ▼11.35
Media Library /wp-admin/upload.php3.38 ▲0.1433.94 ▲2.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easyling | Website Translation Technology
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.20 ▼0.151.53 ▼0.4539.29 ▼5.98
Dashboard /wp-admin2,207 ▲305.63 ▲0.0894.63 ▼1.9942.51 ▼4.01
Posts /wp-admin/edit.php2,115 ▲121.94 ▼0.0640.26 ▲0.1535.42 ▼3.39
Add New Post /wp-admin/post-new.php1,536 ▲1023.33 ▼0.25614.89 ▼67.1362.61 ▼1.04
Media Library /wp-admin/upload.php1,412 ▲184.17 ▼0.05100.37 ▼0.8545.41 ▲1.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt might help

easyling/easyling.php 92% from 13 tests

This is the main PHP file of "Easyling | Website Translation Technology" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected729 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3195230650
CSS10050
JavaScript16029

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.67
▷ Minimum class complexity26.00
▷ Maximum class complexity86.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes3100.00%
Methods26
▷ Static methods311.54%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin