Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.63ms] Passed 4 tests
A check of server-side resources used by Custom ShortCode Creator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 43.16 ▲0.39 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.41 ▼15.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.44 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.52 ▼20.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.30 ▲10.51 |
Short Codes /wp-admin/edit.php?post_type=odras_myshortcodes | 3.30 | 37.34 |
Add New /wp-admin/post-new.php?post_type=odras_myshortcodes | 3.38 | 45.76 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Custom ShortCode Creator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.44 ▲0.14 | 1.84 ▲0.12 | 44.12 ▲1.71 |
Dashboard /wp-admin | 2,235 ▲47 | 5.79 ▼0.03 | 95.61 ▼20.99 | 76.80 ▲34.53 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.01 ▲0.00 | 32.27 ▼4.22 | 32.06 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,690 ▲171 | 22.48 ▼0.47 | 741.58 ▲123.10 | 53.91 ▲5.11 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.22 ▲0.05 | 95.71 ▼7.11 | 69.54 ▲23.41 |
Short Codes /wp-admin/edit.php?post_type=odras_myshortcodes | 1,104 | 1.96 | 34.32 | 28.41 |
Add New /wp-admin/post-new.php?post_type=odras_myshortcodes | 2,153 | 7.74 | 175.10 | 128.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-shortcode-creator/shortcode.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #3 (screenshot-3)
custom-shortcode-creator/shortcode.php 92% from 13 tests
The entry point to "Custom ShortCode Creator" version 2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-shortcode-creator.php" instead of "shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin69 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 9 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 46.41KB | 23.37KB | ▼ 49.65% |
images/screenshot 2.png | 46.41KB | 23.37KB | ▼ 49.65% |
images/screen 1.png | 61.12KB | 36.30KB | ▼ 40.61% |
images/image.png | 0.95KB | 1.05KB | 0.00% |
screenshot-1.png | 61.12KB | 36.30KB | ▼ 40.61% |