83% loderi-virtual-keayboard

Code Review | Loderi Virtual Keyboard

WordPress plugin Loderi Virtual Keyboard scored83%from 54 tests.

About plugin

  • Plugin page: loderi-virtual-ke...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: Aug 22, 2015
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: jj1981ua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.18ms] Passed 4 tests

A check of server-side resources used by Loderi Virtual Keyboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.24 ▲0.16
Dashboard /wp-admin3.40 ▲0.0951.52 ▲1.35
Posts /wp-admin/edit.php3.45 ▲0.0953.74 ▲5.19
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.03 ▼9.25
Media Library /wp-admin/upload.php3.32 ▲0.0937.32 ▲3.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 283 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_kbrd_widget
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Loderi Virtual Keyboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼0.801.67 ▼0.1344.57 ▼0.12
Dashboard /wp-admin2,203 ▲154.84 ▼0.05109.42 ▼3.3140.19 ▼0.62
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0539.67 ▼0.5834.60 ▼0.49
Add New Post /wp-admin/post-new.php3,505 ▲1,96320.44 ▲2.13687.92 ▲66.6362.17 ▲3.60
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0399.67 ▼6.7845.64 ▼0.25

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: 7 options
    • widget_kbrd_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/loderi-virtual-keayboard/loderi-virtual-keyboard.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Automatically appends to the comments form), #2 (Multiple skins available), #3 (Also available as popup from widget-button)
You can look at the official readme.txt

loderi-virtual-keayboard/loderi-virtual-keyboard.php 92% from 13 tests

The entry point to "Loderi Virtual Keyboard" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("loderi-virtual-keayboard.php" instead of "loderi-virtual-keyboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,890 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2512602,6506,974
CSS91682724,096
PHP1447820

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.49MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/css/winxp/thumbnail.png8.68KB5.08KB▼ 41.47%
js/css/air_mid/thumbnail.png34.28KB17.28KB▼ 49.60%
screenshot-2.png73.29KB30.86KB▼ 57.89%
js/css/goldie/button_set.png20.87KB8.75KB▼ 58.10%
js/css/flat_gray/thumbnail.png26.38KB13.13KB▼ 50.25%