Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.79ms] Passed 4 tests
Server-side resources used by Shortcake Field Chosen
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 32.72 ▼7.00 |
Dashboard /wp-admin | 3.35 ▲0.01 | 43.91 ▼15.57 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.45 ▼4.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.35 ▼19.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.61 ▲4.15 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Shortcake Field Chosen
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.21 ▼1.38 | 1.74 ▼0.17 | 40.96 ▼4.97 |
Dashboard /wp-admin | 2,212 ▲24 | 5.89 ▲0.04 | 104.46 ▼13.07 | 41.59 ▼6.46 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.08 ▲0.07 | 35.68 ▲1.30 | 32.05 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.16 ▲0.06 | 678.10 ▲14.18 | 61.86 ▲6.21 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.22 ▲0.03 | 94.90 ▼10.73 | 42.92 ▼4.60 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/shortcake-field-chosen/admin/partials/tmpl-shortcode-ui-field-chosen.tpl.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Contributors: Contributors not specified
shortcake-field-chosen/shortcake-field-chosen.php Passed 13 tests
"Shortcake Field Chosen" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Provides a jQuery chosen select field as an option for the Shortcake (Shortcode UI) plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,592 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 65 | 0 | 3,200 |
JavaScript | 7 | 210 | 37 | 2,433 |
CSS | 4 | 63 | 36 | 663 |
PHP | 10 | 96 | 428 | 165 |
JSON | 2 | 0 | 0 | 94 |
Markdown | 1 | 19 | 0 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 19.05% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/chosen_v1.6.2/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/js/chosen_v1.6.2/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
admin/js/chosen_v1.6.2/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
admin/js/chosen_v1.6.2/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |