10% genesis-style-shortcodes

Code Review | Genesis Style Shortcodes

WordPress plugin Genesis Style Shortcodes scored10%from 54 tests.

About plugin

  • Plugin page: genesis-style-sho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2012
  • Latest release: Oct 12, 2012
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: jtwerdy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,578 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: one-half first. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

Server metrics [RAM: ▼1.94MB] [CPU: ▼57.84ms] Passed 4 tests

A check of server-side resources used by Genesis Style Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.28 ▼35.68
Dashboard /wp-admin2.07 ▼1.276.52 ▼56.81
Posts /wp-admin/edit.php2.07 ▼1.286.53 ▼41.01
Add New Post /wp-admin/post-new.php2.07 ▼3.816.54 ▼97.86
Media Library /wp-admin/upload.php2.07 ▼1.156.08 ▼26.55

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Style Shortcodes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.201.55 ▼0.2041.80 ▼1.36
Dashboard /wp-admin2,203 ▲145.79 ▼0.10101.08 ▼22.5837.34 ▼7.32
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0339.71 ▲4.5134.04 ▲2.67
Add New Post /wp-admin/post-new.php1,543 ▲2023.20 ▼0.02642.89 ▼30.5752.27 ▼9.35
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0197.94 ▼2.1141.95 ▼1.52

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: one-half first. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-style-shortcodes/twerdy-shortcodes.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (`/assets/button-screenshot.jpg`), #2 (`/assets/contentbox-screenshot.jpg`), #3 (`/assets/column-screenshot.jpg`)
The official readme.txt might help

genesis-style-shortcodes/twerdy-shortcodes.php 92% from 13 tests

The main PHP file in "Genesis Style Shortcodes" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-style-shortcodes.php" instead of "twerdy-shortcodes.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 detected265 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1274200
PHP1221265

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin