Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼17.40ms] Passed 4 tests
Server-side resources used by Image Shortcake
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 37.79 ▲0.18 |
Dashboard /wp-admin | 3.26 ▼0.09 | 33.24 ▼26.00 |
Posts /wp-admin/edit.php | 3.32 ▼0.03 | 37.27 ▼12.36 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 78.69 ▼27.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.14 ▼3.40 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Image Shortcake
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.68 ▼0.69 | 1.60 ▲0.02 | 36.37 ▼5.76 |
Dashboard /wp-admin | 2,210 ▲18 | 4.84 ▼1.07 | 112.52 ▲5.60 | 39.15 ▼5.12 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.02 | 40.73 ▼0.86 | 35.23 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.28 ▼0.06 | 654.64 ▲1.66 | 50.68 ▼12.17 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.27 ▲0.04 | 108.43 ▲8.14 | 48.03 ▲3.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/image-shortcake/inc/class-wp-cli-img-shortcode-command.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-shortcake/image-shortcake.php:114
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This is the shortcode UI form as accessed from **Insert Media > Insert Post Element**. (Note that you can also insert images as usual, by inserting them in the Media Library - they will be transparently converted into shortcodes behind the scenes for you.)), #2 (Once inserted into a post, the image preview renders in the editor just as it normally would. The Shortcake plugin's edit/delete buttons are available to modify the shortcode through the provided UI.)
image-shortcake/image-shortcake.php Passed 13 tests
Analyzing the main PHP file in "Image Shortcake" version 0.1.0
94 characters long description:
Provides a shortcode for image elements. Use with the Shortcake plugin for a preview of images
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin592 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 165 | 208 | 443 |
Markdown | 1 | 38 | 0 | 77 |
JavaScript | 2 | 18 | 33 | 55 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 16 | 69.57% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 34.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 133.09KB | 51.88KB | ▼ 61.02% |
screenshot-1.png | 83.47KB | 31.95KB | ▼ 61.72% |