Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▼1.88MB] [CPU: ▼50.74ms] Passed 4 tests
A check of server-side resources used by Blank Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 5.90 ▼35.20 |
Dashboard /wp-admin | 2.13 ▼1.18 | 7.37 ▼39.08 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.94 ▼39.61 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.33 ▼89.07 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.51 ▼27.02 |
Blank Shortcodes /wp-admin/options-general.php?page=blankcodes-admin-options | 2.13 | 8.06 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
blankcodes_options_shortcodes_to_totally_blankout |
can_compress_scripts |
theysaidso_admin_options |
blankcodes_options_shortcodes_to_blankout |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blank Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.51 ▼1.13 | 8.02 ▲6.19 | 38.55 ▼7.21 |
Dashboard /wp-admin | 2,214 ▲26 | 4.88 ▼0.04 | 110.28 ▲5.12 | 37.67 ▼2.48 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.05 | 41.44 ▲4.83 | 34.95 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.70 ▲0.52 | 683.21 ▲12.83 | 52.59 ▼8.50 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.20 ▼0.02 | 95.36 ▼3.39 | 40.37 ▼7.92 |
Blank Shortcodes /wp-admin/options-general.php?page=blankcodes-admin-options | 798 | 2.03 | 26.93 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- blankcodes_options_shortcodes_to_blankout
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- blankcodes_options_shortcodes_to_totally_blankout
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=blankcodes-admin-options
- > User notice in wp-includes/functions.php+5905
Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blank-shortcodes/public/partials/blankcodes-public-display.php
- > /wp-content/plugins/blank-shortcodes/admin/partials/blankcodes-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #2 is missing in blank-shortcodes/assets to your readme.txt
blank-shortcodes/blankcodes.php 77% from 13 tests
Analyzing the main PHP file in "Blank Shortcodes" version 1.0.0-rev9...
Please make the necessary changes and fix the following:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0.0-rev9...")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("blank-shortcodes.php" instead of "blankcodes.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
Success! There were no dangerous files found in this plugin260 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 128 | 530 | 254 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin