10% keyboard-nav

Code Review | WP Keyboard Navigation

WordPress plugin WP Keyboard Navigation scored10%from 54 tests.

About plugin

  • Plugin page: keyboard-nav
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2013
  • Latest release: Mar 14, 2020
  • Number of updates: 5
  • Update frequency: every 480.2 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,434 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/keyboard-nav/key-nav.php+122
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by WP Keyboard Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.06 ▼6.31
Dashboard /wp-admin3.31 ▲0.0051.45 ▲1.63
Posts /wp-admin/edit.php3.36 ▲0.0047.91 ▼3.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.80 ▼14.70
Media Library /wp-admin/upload.php3.23 ▲0.0038.48 ▲2.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Keyboard Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.001.67 ▼0.1539.05 ▼4.63
Dashboard /wp-admin2,198 ▲245.60 ▼0.0684.50 ▼11.9940.21 ▲0.11
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0537.49 ▼5.3135.45 ▼3.94
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.42683.73 ▲41.8160.87 ▲10.87
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.05104.24 ▼2.0649.76 ▲4.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/keyboard-nav/key-nav.php on line 122

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: mouse, shortcut, navigation, keyboard

keyboard-nav/key-nav.php 92% from 13 tests

The main PHP script in "WP Keyboard Navigation" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("keyboard-nav.php" instead of "key-nav.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
Good job! No executable or dangerous file extensions detected179 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172183
JavaScript2111253
CSS16043

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png62.13KB20.40KB▼ 67.16%