84% wphindi

Code Review | WPHindi - Type in Hindi in WordPress

WordPress plugin WPHindi - Type in Hindi in WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wphindi
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 10, 2019
  • Latest release: Feb 14, 2022
  • Number of updates: 46
  • Update frequency: every 20.0 days
  • Top authors: zozuk1 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /21,675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WPHindi - Type in Hindi in WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.18 ▼3.84
Dashboard /wp-admin3.32 ▲0.0250.01 ▼5.38
Posts /wp-admin/edit.php3.37 ▲0.0250.65 ▼6.27
Add New Post /wp-admin/post-new.php5.87 ▼0.0191.85 ▼4.31
Media Library /wp-admin/upload.php3.25 ▲0.0240.14 ▲6.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPHindi - Type in Hindi in WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.33 ▼1.051.68 ▼0.0846.33 ▼1.56
Dashboard /wp-admin2,213 ▲254.85 ▼0.03113.18 ▼9.7644.15 ▼2.02
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0040.68 ▲2.7538.61 ▼0.28
Add New Post /wp-admin/post-new.php6,197 ▲4,66919.74 ▼3.46968.16 ▲271.5938.15 ▼12.26
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.06102.27 ▼8.3950.25 ▲8.09

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wphindi/constant.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wphindi/zozuk-translator.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
5 plugin tags: hindi, transliteration, typing, hinglish, writing

wphindi/zozuk-translator.php 85% from 13 tests

The main PHP file in "WPHindi - Type in Hindi in WordPress" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wphindi.php" instead of "zozuk-translator.php")
  • Description: The description should be shorter than 140 characters (currently 148 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
Everything looks great! No dangerous files found in this plugin1,964 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS322361,043
JavaScript74468712
PHP52720144
Markdown124065

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods220.00%
▷ Protected methods00.00%
▷ Private methods880.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/wphindi-logo.png1.45KB1.63KB0.00%