83% keyboard-save

Code Review | Keyboard Save

WordPress plugin Keyboard Save scored 83% from 54 tests.

About plugin

  • Plugin page: keyboard-save
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: May 5, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: codearachnid (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.66ms] Passed 4 tests

Server-side resources used by Keyboard Save
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.26 ▼2.49
Dashboard /wp-admin3.31 ▲0.0143.92 ▼4.34
Posts /wp-admin/edit.php3.36 ▲0.0147.06 ▼0.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.13 ▲5.01
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲0.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Keyboard Save
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼0.894.50 ▲2.3844.85 ▼4.48
Dashboard /wp-admin2,213 ▲284.85 ▼1.00101.29 ▼4.5438.80 ▼1.45
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0338.36 ▼1.2634.72 ▼1.10
Add New Post /wp-admin/post-new.php1,542 ▼018.53 ▲0.34668.14 ▲52.8057.52 ▲0.43
Media Library /wp-admin/upload.php1,389 ▲14.22 ▲0.0598.21 ▼7.9641.96 ▼4.33

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/keyboard-save/keyboard-save.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

keyboard-save/keyboard-save.php 85% from 13 tests

"Keyboard Save" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182562
JavaScript12511

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin