83% wp-arabic-virtual-keyboard

Code Review | WP Arabic Virtual Keyboard

WordPress plugin WP Arabic Virtual Keyboard scored83%from 54 tests.

About plugin

  • Plugin page: wp-arabic-virtual...
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Mar 31, 2023
  • Number of updates: 27
  • Update frequency: every 132.2 days
  • Top authors: sumith.harshan (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /3,346 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by WP Arabic Virtual Keyboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1646.68 ▼0.64
Dashboard /wp-admin3.33 ▲0.0353.62 ▼0.11
Posts /wp-admin/edit.php3.39 ▲0.0348.58 ▼2.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.54 ▼14.21
Media Library /wp-admin/upload.php3.26 ▲0.0336.83 ▼2.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WP Arabic Virtual Keyboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲5514.26 ▼0.093.49 ▲1.3743.28 ▼1.58
Dashboard /wp-admin2,209 ▲355.56 ▼0.0682.61 ▼21.2977.05 ▲36.28
Posts /wp-admin/edit.php2,120 ▲201.99 ▼0.0333.97 ▼6.5135.13 ▼5.24
Add New Post /wp-admin/post-new.php1,544 ▲1623.02 ▼0.40785.28 ▲157.8361.06 ▲5.87
Media Library /wp-admin/upload.php1,414 ▲144.11 ▼0.05100.41 ▼5.3269.78 ▲26.57

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means 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
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-arabic-virtual-keyboard/wp-virtual-keyboard.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-arabic-virtual-keyboard/admin.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/wp-arabic-virtual-keyboard/wp-virtual-keyboard.php on line 11
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/wp-arabic-virtual-keyboard/admin.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-arabic-virtual-keyboard/wp-virtual-keyboard.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-arabic-virtual-keyboard/admin.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Arabic Virtual Keyboard structure.) image missing
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-arabic-virtual-keyboard === )
You can look at the official readme.txt

wp-arabic-virtual-keyboard/wp-virtual-keyboard.php 85% from 13 tests

The main PHP file in "WP Arabic Virtual Keyboard" ver. 4.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 398 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-arabic-virtual-keyboard.php" instead of "wp-virtual-keyboard.php")

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,111 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript315780609
CSS17412349
PHP33213153

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/keyboard-icon.png1.17KB1.25KB0.00%
screenshot-1.png41.81KB16.05KB▼ 61.61%