94% admin-command-palette

Code Review | Admin Command Palette

WordPress plugin Admin Command Palette scored 94% from 54 tests.

About plugin

  • Plugin page: admin-command-pal...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.4
  • WordPress version: 5.9.2
  • First release: Aug 21, 2015
  • Latest release: May 1, 2017
  • Number of updates: 10
  • Update frequency: every 61.9 days
  • Top authors: gwelser (60%)jhned (50%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 2,735 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼289.74ms] Passed 4 tests

An overview of server-side resources used by Admin Command Palette
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0556.54 ▲1.91
Dashboard /wp-admin3.49 ▲0.0835.37 ▲1.21
Posts /wp-admin/edit.php3.72 ▲0.0838.84 ▲0.32
Add New Post /wp-admin/post-new.php6.97 ▼0.00102.01 ▼1,160.26
Media Library /wp-admin/upload.php3.37 ▲0.0730.76 ▼0.22
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP3.3929.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Command Palette
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,857 ▲11315.97 ▲0.275.58 ▼0.902.55 ▲0.13
Dashboard /wp-admin2,986 ▲1356.92 ▲0.72125.91 ▼10.78153.75 ▼4.39
Posts /wp-admin/edit.php2,782 ▲913.64 ▲0.4069.88 ▲7.28141.71 ▼3.15
Add New Post /wp-admin/post-new.php1,771 ▼221.57 ▲0.43463.90 ▼2.22164.98 ▲1.63
Media Library /wp-admin/upload.php1,792 ▲916.04 ▲0.53129.89 ▼9.70187.76 ▼4.74
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP1,5083.0357.71129.61

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 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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-admin-pages.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-user-content.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/admin-command-palette/admin/partials/plugin-acp-display.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-admin-actions.php:16

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


Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: admin, admin navigation, admin actions, search, ux...

admin-command-palette/admin-command-palette.php 92% from 13 tests

"Admin Command Palette" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin26,692 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.45
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes440.00%
▷ Static methods25.26%
▷ Public methods3489.47%
▷ Protected methods00.00%
▷ Private methods410.53%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin