83% minimal-shortcode-ui

Code Review | Minimal Shortcode UI

WordPress plugin Minimal Shortcode UI scored 83% from 54 tests.

About plugin

  • Plugin page: minimal-shortcode-ui
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Feb 6, 2016
  • Number of updates: 18
  • Update frequency: every 13.8 days
  • Top authors: MaxDw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.40ms] Passed 4 tests

An overview of server-side resources used by Minimal Shortcode UI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.12 ▼0.93
Dashboard /wp-admin3.32 ▲0.0145.23 ▼1.30
Posts /wp-admin/edit.php3.37 ▲0.0242.46 ▼3.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.10 ▼8.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.33 ▲2.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Minimal Shortcode UI
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲5913.51 ▼1.171.77 ▲0.0939.98 ▼1.01
Dashboard /wp-admin2,197 ▲95.27 ▲0.38106.61 ▼3.6942.43 ▲4.86
Posts /wp-admin/edit.php2,076 ▼102.46 ▲0.4948.04 ▲11.5831.77 ▼1.77
Add New Post /wp-admin/post-new.php1,522 ▲818.39 ▲0.85639.42 ▼30.8134.87 ▼19.65
Media Library /wp-admin/upload.php1,389 ▲14.48 ▲0.28101.97 ▲3.4060.94 ▲12.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Exception in wp-content/plugins/minimal-shortcode-ui/example.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-shortcode-ui/plugin.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === minimal-shortcode-ui === )
The official readme.txt might help

minimal-shortcode-ui/plugin.php 69% from 13 tests

The main PHP file in "Minimal Shortcode UI" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("minimal-shortcode-ui.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 461 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/locale/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin641 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4104343326
JavaScript287234276
Markdown110039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.67
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods22
▷ Static methods940.91%
▷ Public methods1881.82%
▷ Protected methods418.18%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/tinymce-button-sui-icon.png1.07KB0.18KB▼ 82.69%