Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.69ms] Passed 4 tests
Analyzing server-side resources used by Shortcake (Shortcode UI)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 34.39 ▼7.85 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.26 ▲1.06 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 47.91 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 86.10 ▼7.74 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.22 ▲4.34 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Shortcake (Shortcode UI)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲155 | 14.57 ▲0.01 | 1.64 ▼0.32 | 38.40 ▼3.79 |
Dashboard /wp-admin | 2,289 ▲100 | 6.41 ▲1.49 | 130.10 ▲23.92 | 41.76 ▼0.46 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.02 | 36.32 ▲1.46 | 34.26 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.35 ▲0.13 | 673.62 ▼10.65 | 41.58 ▼18.95 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.00 | 97.20 ▼0.41 | 45.67 ▲2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shortcode-ui/inc/templates/list-item.tpl.php
- > /wp-content/plugins/shortcode-ui/inc/templates/media-frame.tpl.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/shortcode-ui/inc/templates/edit-form.tpl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-ui/shortcode-ui.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Without Shortcake, shortcodes have a minimal UI.), #2 (But with Shortcake, TinyMCE will render the shortcode in a TinyMCE view.), #3 (And add a user-friendly UI to edit shortcode content and attributes.), #4 (Add new shortcodes to your post through "Add Media".)
shortcode-ui/shortcode-ui.php Passed 13 tests
"Shortcake (Shortcode UI)" version 0.7.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
User Interface for adding shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected15,493 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 79 | 3,353 | 1,492 | 12,021 |
PO File | 17 | 504 | 584 | 1,402 |
PHP | 11 | 290 | 500 | 1,033 |
CSS | 4 | 83 | 2 | 662 |
Sass | 4 | 62 | 0 | 312 |
JSON | 2 | 1 | 0 | 63 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 7 | 12.28% |
▷ Public methods | 46 | 80.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 19.30% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 39.06KB | 21.89KB | ▼ 43.96% |
screenshot-3.png | 17.79KB | 10.38KB | ▼ 41.67% |
screenshot-1.png | 29.92KB | 18.14KB | ▼ 39.38% |
screenshot-4.png | 37.48KB | 19.93KB | ▼ 46.83% |