Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.14ms] Passed 4 tests
An overview of server-side resources used by Command Palette
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 32.83 ▼7.88 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.26 ▼4.31 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.84 ▲5.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.10 ▼13.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.19 ▲5.38 |
Server storage [IO: ▲0.07MB] [DB: ▲0.09MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Command Palette
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.28 ▼0.10 | 1.56 ▼0.35 | 35.88 ▼8.34 |
Dashboard /wp-admin | 2,235 ▲58 | 5.64 ▼0.02 | 84.39 ▼16.40 | 36.32 ▼8.41 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.07 ▲0.04 | 41.14 ▲7.12 | 36.40 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,566 ▲37 | 23.15 ▲0.07 | 673.85 ▼3.96 | 56.87 ▲2.53 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.28 ▲0.14 | 110.86 ▲14.23 | 47.43 ▲3.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/command-palette/templates/command-palette.php:5
- > PHP Fatal error
Uncaught Error: Class 'CommandPalette\\Sources\\Base' not found in wp-content/plugins/command-palette/src/Sources/Action.php:4
- > PHP Fatal error
Uncaught Error: Class 'CommandPalette\\Sources\\Base' not found in wp-content/plugins/command-palette/src/Sources/AdminMenu.php:4
- > PHP Fatal error
Uncaught Error: Class 'CommandPalette\\Sources\\Base' not found in wp-content/plugins/command-palette/src/Sources/Custom.php:4
- > 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 Passed 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
4 plugin tags: shortcut, quick jump, workflow, admin menu
command-palette/command-palette.php Passed 13 tests
The main PHP file in "Command Palette" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Bring power of text editor command palette to WordPress Admin.
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
Success! There were no dangerous files found in this plugin1,129 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 231 | 408 | 1,075 |
Markdown | 1 | 26 | 0 | 47 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 10.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 18 | 20.69% |
▷ Public methods | 65 | 74.71% |
▷ Protected methods | 5 | 5.75% |
▷ Private methods | 17 | 19.54% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin