Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲0.56ms] Passed 4 tests
Analyzing server-side resources used by Admin Command Palette
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.52 ▲5.20 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.84 ▼1.31 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.54 ▲2.14 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 95.58 ▼1.82 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 42.48 ▲3.23 |
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP | 3.38 | 43.56 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Command Palette
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.79 ▼0.61 | 1.78 ▲0.20 | 45.06 ▲2.89 |
Dashboard /wp-admin | 2,274 ▲86 | 5.45 ▼0.41 | 124.17 ▲13.35 | 37.81 ▼3.79 |
Posts /wp-admin/edit.php | 2,160 ▲68 | 2.69 ▲0.63 | 47.78 ▲5.96 | 35.96 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,578 ▲45 | 23.52 ▲0.36 | 673.85 ▲10.20 | 58.43 ▲10.13 |
Media Library /wp-admin/upload.php | 1,459 ▲71 | 4.71 ▲0.46 | 103.34 ▼11.27 | 39.95 ▼6.65 |
Admin Command Palette /wp-admin/options-general.php?page=CNP_ACP | 1,131 | 2.37 | 32.18 | 30.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 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: 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
Uncaught Error: Class 'ACP_Data' not found in wp-content/plugins/admin-command-palette/admin/class-acp-user-content.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: admin, admin search, admin navigation, ux, actions...
admin-command-palette/admin-command-palette.php 92% from 13 tests
The entry point to "Admin Command Palette" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous 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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin