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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.81 ▼2.31 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.99 ▼9.31 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.05 ▼2.51 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 101.95 ▲5.46 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,328 ▲557 | 14.37 ▼0.01 | 14.95 ▲13.03 | 40.91 ▼4.66 |
Dashboard /wp-admin | 2,213 ▲25 | 4.80 ▼0.12 | 110.30 ▼9.25 | 44.59 ▼5.17 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.00 | 40.43 ▲3.54 | 35.23 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.99 ▲4.63 | 661.82 ▼1.46 | 62.38 ▼4.60 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▼0.00 | 94.98 ▼12.22 | 42.80 ▼2.21 |
Virtual Keyboard /wp-admin/virutal-keyboard.php | 26 | 0.44 | 0.14 | 13.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 38 | 27 | 385 |
PHP | 1 | 10 | 9 | 318 |
CSS | 1 | 1 | 0 | 192 |
SVG | 1 | 0 | 1 | 43 |
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 code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/key216.png | 0.26KB | 0.21KB | ▼ 19.85% |
images/computer230.png | 0.22KB | 0.20KB | ▼ 8.33% |
images/closebutton.png | 0.38KB | 0.39KB | 0.00% |