84% admin-keys

Code Review | Admin Keys

WordPress plugin Admin Keys scored84%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: 6.3.1
  • 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,644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Admin Keys
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0241.24 ▼1.79
Dashboard /wp-admin3.60 ▼0.0351.25 ▼15.84
Posts /wp-admin/edit.php3.72 ▲0.0452.60 ▼13.03
Add New Post /wp-admin/post-new.php6.18 ▲0.0391.34 ▼21.09
Media Library /wp-admin/upload.php3.52 ▲0.0343.33 ▲2.45

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Keys
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲88014.42 ▲0.112.15 ▲0.2740.96 ▲0.64
Dashboard /wp-admin3,034 ▲8575.81 ▲0.1197.76 ▲1.8741.55 ▼0.39
Posts /wp-admin/edit.php2,954 ▲8512.24 ▲0.1943.47 ▼1.4935.69 ▼2.30
Add New Post /wp-admin/post-new.php2,379 ▲84323.48 ▲0.10664.42 ▼30.0559.07 ▲3.48
Media Library /wp-admin/upload.php2,248 ▲8514.31 ▲0.10106.60 ▼22.4345.77 ▼10.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: toggle, hotkeys, sidebar, admin, admin bar...

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

The principal PHP file in "Admin Keys" v. 1.4.0 is loaded by WordPress automatically on each request
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected474 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45458243
PHP43072189
CSS10042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin