84% tk-shortcode-link

Code Review | TK Shortcode Link

WordPress plugin TK Shortcode Link scored84%from 54 tests.

About plugin

  • Plugin page: tk-shortcode-link
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-5.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Mar 6, 2019
  • Number of updates: 13
  • Update frequency: every 155.8 days
  • Top authors: cliffpaulick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by TK Shortcode Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.10 ▼3.31
Dashboard /wp-admin3.31 ▲0.0148.24 ▼5.20
Posts /wp-admin/edit.php3.36 ▲0.0154.37 ▲2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.41 ▼6.35
Media Library /wp-admin/upload.php3.24 ▲0.0137.16 ▼7.40

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

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

Browser metrics Passed 4 tests

TK Shortcode Link: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.66 ▲0.311.92 ▲0.3040.46 ▼2.81
Dashboard /wp-admin2,206 ▲245.76 ▼0.05100.43 ▼7.0339.00 ▼6.11
Posts /wp-admin/edit.php2,086 ▼61.97 ▼0.0836.80 ▼4.5933.16 ▼5.19
Add New Post /wp-admin/post-new.php1,514 ▼517.72 ▼5.41688.41 ▲7.4258.88 ▲6.60
Media Library /wp-admin/upload.php1,385 ▼64.15 ▼0.1099.69 ▼11.8845.49 ▼5.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tk-shortcode-link/tk-shortcode-link.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shortcode, target, utility, link

tk-shortcode-link/tk-shortcode-link.php Passed 13 tests

The primary PHP file in "TK Shortcode Link" version 1.2.1 is used by WordPress to initiate all plugin functionality
30 characters long description:
Create links with a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18926

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin