78% cool-virtual-keyboard

Code Review | Cool Virtual Keyboard

WordPress plugin Cool Virtual Keyboard scored78%from 54 tests.

About plugin

  • Plugin page: cool-virtual-keyb...
  • Plugin version: 0.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Sep 7, 2016
  • Number of updates: 24
  • Update frequency: every 8.9 days
  • Top authors: jj1981ua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.43ms] Passed 4 tests

Analyzing server-side resources used by Cool Virtual Keyboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.81 ▼2.31
Dashboard /wp-admin3.36 ▲0.0647.99 ▼9.31
Posts /wp-admin/edit.php3.41 ▲0.0649.05 ▼2.51
Add New Post /wp-admin/post-new.php5.94 ▲0.06101.95 ▲5.46
Media Library /wp-admin/upload.php3.29 ▲0.0636.48 ▲0.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cool Virtual Keyboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,328 ▲55714.37 ▼0.0114.95 ▲13.0340.91 ▼4.66
Dashboard /wp-admin2,213 ▲254.80 ▼0.12110.30 ▼9.2544.59 ▼5.17
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0040.43 ▲3.5435.23 ▼0.21
Add New Post /wp-admin/post-new.php1,536 ▲822.99 ▲4.63661.82 ▼1.4662.38 ▼4.60
Media Library /wp-admin/upload.php1,392 ▲44.28 ▼0.0094.98 ▼12.2242.80 ▼2.21
Virtual Keyboard /wp-admin/virutal-keyboard.php260.440.1413.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cool-virtual-keyboard/virtual_keyboard.php:332

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/virutal-keyboard.php
    • > Network (severe)
    wp-admin/virutal-keyboard.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === cool-virtual-keyboard === )
The official readme.txt might help

cool-virtual-keyboard/virtual_keyboard.php 92% from 13 tests

This is the main PHP file of "Cool Virtual Keyboard" version 0.21, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cool-virtual-keyboard.php" instead of "virtual_keyboard.php")

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
Success! There were no dangerous files found in this plugin938 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13827385
PHP1109318
CSS110192
SVG10143

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/key216.png0.26KB0.21KB▼ 19.85%
images/computer230.png0.22KB0.20KB▼ 8.33%
images/closebutton.png0.38KB0.39KB0.00%