78% jcwp-left-right-key-navigation

Code Review | jcwp left right key navigation

WordPress plugin jcwp left right key navigation scored78%from 54 tests.

About plugin

  • Plugin page: jcwp-left-right-k...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2
  • WordPress version: 6.3.1
  • First release: Oct 16, 2012
  • Latest release: Apr 16, 2015
  • Number of updates: 9
  • Update frequency: every 101.4 days
  • Top authors: jaschahal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /3,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by jcwp left right key navigation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.80 ▼0.30
Dashboard /wp-admin3.32 ▲0.0242.74 ▼5.03
Posts /wp-admin/edit.php3.37 ▲0.0242.44 ▼8.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.34 ▼20.37
Media Library /wp-admin/upload.php3.24 ▲0.0133.22 ▲1.65
JCWP Left Right Key /wp-admin/options-general.php?page=jcorglrkn-plugin3.1828.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 15 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
jcorglrkn_exclude_categories
jcorglrkn_linkback
jcorglrkn_minimum_screen_width
jcorglrkn_next_post_label
jcorglrkn_previous_post_label
widget_theysaidso_widget
jcorglrkn_plugin
jcorglrkn_posts_same_category
...

Browser metrics Passed 4 tests

A check of browser resources used by jcwp left right key navigation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19113.61 ▼0.6810.36 ▲8.7444.32 ▲3.97
Dashboard /wp-admin2,213 ▲255.84 ▼0.1995.34 ▼7.8435.81 ▼8.78
Posts /wp-admin/edit.php2,093 ▲12.03 ▼0.0234.21 ▼6.8134.01 ▼0.73
Add New Post /wp-admin/post-new.php1,523 ▲923.44 ▲5.97673.55 ▲40.2148.31 ▼16.38
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0594.18 ▼6.4639.86 ▼6.76
JCWP Left Right Key /wp-admin/options-general.php?page=jcorglrkn-plugin9982.2024.8043.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 15 options in the database
    • jcorglrkn_next_post_label
    • can_compress_scripts
    • db_upgraded
    • jcorglrkn_previous_post_label
    • widget_recent-comments
    • widget_theysaidso_widget
    • jcorglrkn_posts_same_category
    • jcorglrkn_theme
    • jcorglrkn_exclude_categories
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=jcorglrkn-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jcorglrkn-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jcwp-left-right-key-navigation/jcwp-left-right-key-navigation.php:24

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 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (A screen shot of the options page), #2 (Shows usage)
  • Plugin Name: Please specify the plugin name on the first line ( === jcwp-left-right-key-navigation === )
The official readme.txt is a good inspiration

jcwp-left-right-key-navigation/jcwp-left-right-key-navigation.php Passed 13 tests

The primary PHP file in "jcwp left right key navigation" version 1.4 is used by WordPress to initiate all plugin functionality
55 characters long description:
This plugin enables left and right key post navigation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin249 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12116238
CSS10410
JavaScript13231

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.44
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%
Functions9
▷ Named functions9100.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
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png93.28KB40.23KB▼ 56.88%
screenshot-1.png37.11KB14.63KB▼ 60.58%