94% wp-keyboard-navigation

Code Review | WP Keyboard Navigation

WordPress plugin WP Keyboard Navigation scored 94% from 54 tests.

About plugin

  • Plugin page: wp-keyboard-navig...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.6
  • WordPress version: 5.8.1
  • First release: Sep 13, 2013
  • Latest release: Oct 9, 2013
  • Number of updates: 6
  • Update frequency: every 4.3 days
  • Top authors: leondoornkamp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active / 2,137 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by WP Keyboard Navigation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0146.67 ▲2.68
Dashboard /wp-admin3.07 ▲0.0152.45 ▼12.05
Posts /wp-admin/edit.php3.12 ▲0.0149.54 ▲1.45
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.98 ▼697.99
Media Library /wp-admin/upload.php3.01 ▲0.0137.56 ▼0.68

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WP Keyboard Navigation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲13515.91 ▲0.2710.44 ▼0.2250.22 ▼3.01
Dashboard /wp-admin2,967 ▲365.89 ▼0.30147.24 ▼29.39115.97 ▲2.10
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0068.06 ▼2.1593.89 ▲0.81
Add New Post /wp-admin/post-new.php1,615 ▲3421.02 ▲4.66339.10 ▼124.08111.70 ▼4.29
Media Library /wp-admin/upload.php1,807 ▲745.04 ▲0.05163.87 ▲4.02121.17 ▲0.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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
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/wp-keyboard-navigation/wp-keyboard-navigation.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp keyboard navigation, arrow, numeric navigation, keyboard, plugin

wp-keyboard-navigation/wp-keyboard-navigation.php Passed 13 tests

"WP Keyboard Navigation" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Let's your visitors navigate to different pages with the keyboard arrows and numbers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions1
▷ Named functions1100.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
No PNG files were detected