84% save-with-keyboard

Code Review | Save with keyboard

WordPress plugin Save with keyboard scored84%from 54 tests.

About plugin

  • Plugin page: save-with-keyboard
  • Plugin version: 3.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2011
  • Latest release: Nov 3, 2018
  • Number of updates: 40
  • Update frequency: every 63.9 days
  • Top authors: zupolgec (82.5%)Sjeiti (20%)

Code review

54 tests

User reviews

30 reviews

Install metrics

4,000+ active /26,588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Save with keyboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.84 ▼0.59
Dashboard /wp-admin3.31 ▲0.0144.39 ▲0.13
Posts /wp-admin/edit.php3.36 ▲0.0141.68 ▼5.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.69 ▼14.03
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▼0.51

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Save with keyboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.44 ▲0.181.90 ▲0.3444.71 ▲5.67
Dashboard /wp-admin2,203 ▲355.64 ▼0.0387.37 ▼0.9336.73 ▼8.94
Posts /wp-admin/edit.php2,105 ▲52.00 ▲0.0339.27 ▼0.3835.17 ▼1.71
Add New Post /wp-admin/post-new.php1,531 ▲523.03 ▲0.19611.39 ▼4.8583.58 ▲25.81
Media Library /wp-admin/upload.php1,408 ▲84.21 ▲0.08103.17 ▼5.2442.45 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/save-with-keyboard/save_with_keyboard.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

save-with-keyboard/save_with_keyboard.php 92% from 13 tests

The main file in "Save with keyboard" v. 3.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("save-with-keyboard.php" instead of "save_with_keyboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23039125
PHP151416

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin