Benchmarks
Plugin footprint 65% 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.66ms] Passed 4 tests
Server-side resources used by Create Own ShortCode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 65.35 ▲0.01 | 12,854,086.79 ▲8,948.37 |
Dashboard /wp-admin | 3.39 ▲0.00 | 55.49 ▼7.69 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 58.00 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 91.38 ▼9.23 |
Media Library /wp-admin/upload.php | 3.30 ▲0.02 | 44.24 ▲5.44 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_create_image_shortcode |
wp_create_own_shortcode |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Create Own ShortCode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 14.07 ▼0.28 | 2.06 ▲0.03 | 45.43 ▼1.73 |
Dashboard /wp-admin | 2,344 ▲170 | 6.16 ▲0.56 | 113.48 ▲19.46 | 44.61 ▲3.97 |
Posts /wp-admin/edit.php | 2,278 ▲175 | 3.27 ▲1.24 | 54.68 ▲12.71 | 36.31 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 22.06 ▼0.98 | 629.51 ▼107.27 | 32.78 ▼22.89 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.13 ▲0.02 | 81.32 ▼35.39 | 45.44 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_create_own_shortcode
- wp_create_image_shortcode
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/create-own-shortcode/shortcode_components.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-own-shortcode/create_own_shotcode.php:16
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: These screenshots require images: #1 (Create content ShortCode), #2 (Copy shortcode and paste it in pages or posts or widgets), #3 (Create image shortcode)
create-own-shortcode/create_own_shotcode.php 92% from 13 tests
This is the main PHP file of "Create Own ShortCode" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("create-own-shortcode.php" instead of "create_own_shotcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected521 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 132 | 44 | 407 |
CSS | 1 | 18 | 1 | 114 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
5 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.01KB | 7.90KB | ▼ 47.37% |
screenshot-3.png | 23.59KB | 10.72KB | ▼ 54.57% |
plugin_own.png | 80.79KB | 30.26KB | ▼ 62.54% |
css/default.png | 4.81KB | 2.02KB | ▼ 57.90% |
screenshot-1.png | 61.22KB | 27.04KB | ▼ 55.83% |