83% indian-keyboard

Code Review | Indian Keyboard

WordPress plugin Indian Keyboard scored83%from 54 tests.

About plugin

  • Plugin page: indian-keyboard
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2018
  • Latest release: Feb 4, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Binodwpcitizen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Indian Keyboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.57 ▼9.80
Dashboard /wp-admin3.32 ▲0.0143.84 ▼6.50
Posts /wp-admin/edit.php3.36 ▲0.0155.89 ▲7.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.81 ▼7.67
Media Library /wp-admin/upload.php3.24 ▲0.0138.16 ▲1.93

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Indian Keyboard: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲6514.22 ▼0.161.82 ▼0.2339.50 ▼6.96
Dashboard /wp-admin2,267 ▲875.85 ▲0.1898.89 ▲6.9042.68 ▲2.15
Posts /wp-admin/edit.php2,172 ▲692.44 ▲0.3243.61 ▲6.4333.53 ▼1.61
Add New Post /wp-admin/post-new.php1,592 ▲6623.11 ▼0.04657.68 ▼37.3660.33 ▲6.55
Media Library /wp-admin/upload.php1,472 ▲724.26 ▲0.12109.33 ▲2.0543.67 ▼2.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/indian-keyboard/indiankeyboard.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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
The official readme.txt is a good inspiration

indian-keyboard/indiankeyboard.php 85% from 13 tests

"Indian Keyboard" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("indian-keyboard.php" instead of "indiankeyboard.php")
  • Description: The description should be shorter than 140 characters (currently 415 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
Good job! No executable or dangerous file extensions detected129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12942129

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png11.05KB7.72KB▼ 30.16%
screenshot-2.png26.47KB21.29KB▼ 19.57%
assets/images/in-keyboard.png1.88KB1.37KB▼ 26.94%