68% keypress-list

Code Review | Keypress-list

WordPress plugin Keypress-list scored68%from 54 tests.

About plugin

  • Plugin page: keypress-list
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Oct 19, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 48
  • Update frequency: every 3.8 days
  • Top authors: Jud_Alex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /836 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼39.02ms] Passed 4 tests

Server-side resources used by Keypress-list
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.00 ▼0.06
Dashboard /wp-admin3.00 ▼0.3021.90 ▼34.88
Posts /wp-admin/edit.php3.00 ▼0.3524.87 ▼27.78
Add New Post /wp-admin/post-new.php3.00 ▼2.8824.48 ▼74.84
Media Library /wp-admin/upload.php3.00 ▼0.2319.80 ▼18.57
Key navigation menu /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php3.0023.61
Keypress List /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php3.0022.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Keypress-list
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.75 ▲0.023.01 ▲1.0347.05 ▲2.85
Dashboard /wp-admin2,209 ▲295.56 ▼0.0681.93 ▼20.0375.85 ▲24.53
Posts /wp-admin/edit.php2,129 ▲321.98 ▼0.1738.95 ▲2.4735.69 ▼1.81
Add New Post /wp-admin/post-new.php1,563 ▲3723.06 ▲0.15664.68 ▼8.2160.06 ▲5.40
Media Library /wp-admin/upload.php1,417 ▲144.10 ▼0.00103.91 ▼12.1169.75 ▲20.07
Key navigation menu /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php8702.0028.3230.19
Keypress List /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php1,0692.0024.9725.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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)
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php
    • > Notice in wp-content/plugins/keypress-list/admin/kprl_nav.php+3
    Undefined index: kprl_nav_form
    • > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
    • > Notice in wp-content/plugins/keypress-list/admin/kprl_admin.php+3
    Undefined index: kprl_hidden
    • > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
    • > Warning in wp-content/plugins/keypress-list/admin/kprl_admin.php+42
    Use of undefined constant checked - assumed 'checked' (this will throw an Error in a future version of PHP)

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
Please fix the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/kprl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/admin/kprl_admin.php:34
    • > PHP Notice
      Undefined index: kprl_hidden in wp-content/plugins/keypress-list/admin/kprl_admin.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keypress-list/keypress-list.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/admin/kprl_nav.php:19
    • > PHP Notice
      Undefined index: kprl_nav_form in wp-content/plugins/keypress-list/admin/kprl_nav.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: shortcuts, keys, key navigation

keypress-list/keypress-list.php 92% from 13 tests

The primary PHP file in "Keypress-list" version 0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 604 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected802 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45818371
JavaScript4311332
PO File1338699

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/keypress_list_ico.png52.43KB1.08KB▼ 97.94%