94% admin-keys

Code Review | Admin Keys

WordPress plugin Admin Keys scored 94% from 54 tests.

About plugin

  • Plugin page: admin-keys
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.3-4.2.2
  • WordPress version: 5.9.2
  • First release: Dec 25, 2014
  • Latest release: May 18, 2015
  • Number of updates: 11
  • Update frequency: every 13.1 days
  • Top authors: joesat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,384 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼292.85ms] Passed 4 tests

This is a short check of server-side resources used by Admin Keys
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0550.87 ▼0.58
Dashboard /wp-admin3.46 ▲0.0533.83 ▼0.07
Posts /wp-admin/edit.php3.68 ▲0.0438.75 ▲1.15
Add New Post /wp-admin/post-new.php6.92 ▼0.0693.41 ▼1,171.90
Media Library /wp-admin/upload.php3.33 ▲0.0326.08 ▲3.42

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Keys: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,153 ▲1,39916.34 ▲0.495.92 ▲0.112.50 ▼0.50
Dashboard /wp-admin4,237 ▲1,3796.65 ▲0.22122.55 ▼8.84161.37 ▼4.36
Posts /wp-admin/edit.php4,046 ▲1,3553.13 ▼0.3066.73 ▲3.07142.31 ▼13.48
Add New Post /wp-admin/post-new.php2,571 ▲91123.00 ▲6.72412.75 ▼7.52179.17 ▲19.13
Media Library /wp-admin/upload.php3,047 ▲1,3495.99 ▲0.25137.08 ▲15.59204.40 ▲19.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-keys/tmpl/help-tab.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/admin-keys/tmpl/modal-popup.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'admin_keys' not found in wp-content/plugins/admin-keys/tmpl/options.php:2

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: admin bar, admin, hotkeys, toggle, redirect...

admin-keys/admin-keys.php Passed 13 tests

The main file in "Admin Keys" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Admin Keys provide intuitive admin keyboard shortcuts for accessibility and efficiency

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin474 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin