10% blank-shortcodes

Code Review | Blank Shortcodes

WordPress plugin Blank Shortcodes scored10%from 54 tests.

About plugin

  • Plugin page: blank-shortcodes
  • Plugin version: 1.0.0-rev9...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2016
  • Latest release: Jan 2, 2023
  • Number of updates: 4
  • Update frequency: every 552.8 days
  • Top authors: lucrus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.365.90 ▼35.20
Dashboard /wp-admin2.13 ▼1.187.37 ▼39.08
Posts /wp-admin/edit.php2.13 ▼1.236.94 ▼39.61
Add New Post /wp-admin/post-new.php2.13 ▼3.766.33 ▼89.07
Media Library /wp-admin/upload.php2.13 ▼1.107.51 ▼27.02
Blank Shortcodes /wp-admin/options-general.php?page=blankcodes-admin-options2.138.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.51 ▼1.138.02 ▲6.1938.55 ▼7.21
Dashboard /wp-admin2,214 ▲264.88 ▼0.04110.28 ▲5.1237.67 ▼2.48
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0541.44 ▲4.8334.95 ▼2.30
Add New Post /wp-admin/post-new.php1,521 ▲223.70 ▲0.52683.21 ▲12.8352.59 ▼8.50
Media Library /wp-admin/upload.php1,399 ▲84.20 ▼0.0295.36 ▼3.3940.37 ▼7.92
Blank Shortcodes /wp-admin/options-general.php?page=blankcodes-admin-options7982.0326.9329.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: You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP12128530254
JavaScript24546
CSS2080

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 code0.09
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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