Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.40ms] Passed 4 tests
An overview of server-side resources used by Minimal Shortcode UI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.12 ▼0.93 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.23 ▼1.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.46 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.10 ▼8.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.33 ▲2.89 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Minimal Shortcode UI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲59 | 13.51 ▼1.17 | 1.77 ▲0.09 | 39.98 ▼1.01 |
Dashboard /wp-admin | 2,197 ▲9 | 5.27 ▲0.38 | 106.61 ▼3.69 | 42.43 ▲4.86 |
Posts /wp-admin/edit.php | 2,076 ▼10 | 2.46 ▲0.49 | 48.04 ▲11.58 | 31.77 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 18.39 ▲0.85 | 639.42 ▼30.81 | 34.87 ▼19.65 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.48 ▲0.28 | 101.97 ▲3.40 | 60.94 ▲12.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Exception in wp-content/plugins/minimal-shortcode-ui/example.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-shortcode-ui/plugin.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== minimal-shortcode-ui ===
)
minimal-shortcode-ui/plugin.php 69% from 13 tests
The main PHP file in "Minimal Shortcode UI" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("minimal-shortcode-ui.php" instead of "plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 461 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/locale/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin641 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 104 | 343 | 326 |
JavaScript | 2 | 87 | 234 | 276 |
Markdown | 1 | 10 | 0 | 39 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 9 | 40.91% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 4 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tinymce-button-sui-icon.png | 1.07KB | 0.18KB | ▼ 82.69% |