78% wp-shortcode

Code Review | WP Shortcode by MyThemeShop

WordPress plugin WP Shortcode by MyThemeShop scored78%from 54 tests.

About plugin

  • Plugin page: wp-shortcode
  • Plugin version: 1.4.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Apr 4, 2023
  • Number of updates: 65
  • Update frequency: every 51.1 days
  • Top authors: MyThemeShop (93.85%)pratikmts (7.69%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20,000+ active /1,014,511 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.13ms] Passed 4 tests

Analyzing server-side resources used by WP Shortcode by MyThemeShop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0440.38 ▼5.68
Dashboard /wp-admin3.33 ▲0.0352.31 ▲1.93
Posts /wp-admin/edit.php3.38 ▲0.0350.68 ▲4.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.61 ▼3.73
Media Library /wp-admin/upload.php3.25 ▲0.0236.78 ▲2.96

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Shortcode by MyThemeShop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.57 ▲0.361.98 ▼3.0645.20 ▲0.64
Dashboard /wp-admin2,217 ▲255.84 ▲0.89101.30 ▼15.7840.85 ▼3.11
Posts /wp-admin/edit.php2,099 ▲102.01 ▼0.0435.92 ▲3.3233.74 ▲0.68
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▲0.04620.17 ▼40.7656.93 ▼4.23
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0394.02 ▼19.8842.87 ▼2.90

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wp_shortcode_notice_views
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • wp_shortcode_activated
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-shortcode/tinymce/langs.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-shortcode/tinymce/tinymce.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-shortcode/tinymce/shortcodes.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

wp-shortcode/wp-shortcode.php 92% from 13 tests

"WP Shortcode by MyThemeShop" version 1.4.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

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 detected1,674 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File179106192

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5096.15%
▷ Anonymous functions23.85%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings