90% chl-change-html-lang

Code Review | CHL-Change HTML Lang

WordPress plugin CHL-Change HTML Lang scored 90% from 54 tests.

About plugin

  • Plugin page: chl-change-html-lang
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2018
  • Latest release: Jul 23, 2023
  • Number of updates: 30
  • Update frequency: every 62.9 days
  • Top authors: pratikthink (60%)pratikkry (43.33%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active / 14,401 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by CHL-Change HTML Lang
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.10 ▼1.98
Dashboard /wp-admin3.32 ▲0.0244.53 ▼8.66
Posts /wp-admin/edit.php3.37 ▲0.0145.98 ▼0.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.44 ▼10.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.93 ▲0.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CHL-Change HTML Lang
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.69 ▼0.851.83 ▼0.1440.12 ▼2.02
Dashboard /wp-admin2,206 ▲214.87 ▼1.00105.14 ▲0.5939.86 ▲1.13
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.34 ▲5.6035.76 ▲0.50
Add New Post /wp-admin/post-new.php1,548 ▲1518.30 ▼4.71639.96 ▼17.5180.72 ▲30.78
Media Library /wp-admin/upload.php1,385 ▲34.23 ▲0.0497.11 ▼2.6142.04 ▼3.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% 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
3 plugin tags: seo, html lang, lang attribute

chl-change-html-lang/chl-change-html-lang.php 92% from 13 tests

This is the main PHP file of "CHL-Change HTML Lang" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)

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
Everything looks great! No dangerous files found in this plugin82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2222866
Markdown14016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.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
There are no PNG files in this plugin