89% command-palette-tools

Code Review | Command Palette Tools

WordPress plugin Command Palette Tools scored89%from 54 tests.

About plugin

  • Plugin page: command-palette-t...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Nov 1, 2023
  • Latest release: Nov 1, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.20ms] Passed 4 tests

Analyzing server-side resources used by Command Palette Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.49 ▼4.19
Dashboard /wp-admin3.32 ▼0.0345.95 ▼16.55
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▼5.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.18 ▼18.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.55 ▼1.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Command Palette Tools
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.74 ▲0.401.70 ▼0.0140.33 ▼2.74
Dashboard /wp-admin2,198 ▲175.62 ▼0.0791.06 ▼12.0340.69 ▼1.52
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0141.41 ▲1.1837.32 ▲0.95
Add New Post /wp-admin/post-new.php1,552 ▲2228.87 ▲5.67741.21 ▲11.2961.58 ▼2.85
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0998.36 ▲3.0043.56 ▼0.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: productivity, math, color, confetti, command palette

command-palette-tools/wpcp-tools.php 85% from 13 tests

The main PHP script in "Command Palette Tools" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("command-palette-tools.php" instead of "wpcp-tools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin822 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript181922389
TypeScript12197268
JSON40092
PHP461331
CSS20123
Markdown112019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
No PNG files were detected