83% gf-hebrew-virtual-keyboard-add-on

Code Review | GF Hebrew Virtual Keyboard Add-On

WordPress plugin GF Hebrew Virtual Keyboard Add-On scored83%from 54 tests.

About plugin

  • Plugin page: gf-hebrew-virtual...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Sep 29, 2023
  • Number of updates: 14
  • Update frequency: every 53.5 days
  • Top authors: abovebits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.83ms] Passed 4 tests

Server-side resources used by GF Hebrew Virtual Keyboard Add-On
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.53 ▼6.47
Dashboard /wp-admin3.31 ▼0.0342.86 ▼18.65
Posts /wp-admin/edit.php3.36 ▲0.0144.02 ▼3.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.85 ▼19.02
Media Library /wp-admin/upload.php3.23 ▲0.0134.82 ▼0.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GF Hebrew Virtual Keyboard Add-On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.19 ▲0.021.74 ▲0.0642.08 ▼1.55
Dashboard /wp-admin2,192 ▲125.52 ▼0.0580.60 ▼7.7638.96 ▼0.57
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0532.56 ▼2.0633.59 ▼4.52
Add New Post /wp-admin/post-new.php1,526 ▼223.66 ▲0.38648.59 ▼7.7058.06 ▼0.34
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.04100.32 ▼10.3043.95 ▼3.22

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
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-hebrew-virtual-keyboard-add-on/HebrewVirtualKeyboard.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-hebrew-virtual-keyboard-add-on/class-gfHebrewVirtualKeyboard.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

gf-hebrew-virtual-keyboard-add-on/HebrewVirtualKeyboard.php 85% from 13 tests

The main PHP file in "GF Hebrew Virtual Keyboard Add-On" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("gf-hebrew-virtual-keyboard-add-on.php" instead of "HebrewVirtualKeyboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin424 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP23445196
CSS2190128
JavaScript674100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin