Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 56.54 ▲1.91 |
Dashboard /wp-admin | 3.49 ▲0.08 | 35.37 ▲1.21 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.84 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 102.01 ▼1,160.26 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 30.76 ▼0.22 |
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP | 3.39 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲113 | 15.97 ▲0.27 | 5.58 ▼0.90 | 2.55 ▲0.13 |
Dashboard /wp-admin | 2,986 ▲135 | 6.92 ▲0.72 | 125.91 ▼10.78 | 153.75 ▼4.39 |
Posts /wp-admin/edit.php | 2,782 ▲91 | 3.64 ▲0.40 | 69.88 ▲7.28 | 141.71 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,771 ▼2 | 21.57 ▲0.43 | 463.90 ▼2.22 | 164.98 ▲1.63 |
Media Library /wp-admin/upload.php | 1,792 ▲91 | 6.04 ▲0.53 | 129.89 ▼9.70 | 187.76 ▼4.74 |
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP | 1,508 | 3.03 | 57.71 | 129.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
- > PHP Fatal error
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 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 8,164 | 3,621 | 25,727 |
PHP | 15 | 364 | 653 | 695 |
Sass | 1 | 53 | 5 | 250 |
JSON | 1 | 0 | 0 | 13 |
Markdown | 1 | 1 | 0 | 6 |
CSS | 1 | 0 | 1 | 1 |
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 code | 0.29 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 4 | 40.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 34 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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