84% embed-link-shortcode

Code Review | Embed Link ShortCode

WordPress plugin Embed Link ShortCode scored 84% from 54 tests.

About plugin

  • Plugin page: embed-link-shortcode
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Nov 20, 2017
  • Number of updates: 35
  • Update frequency: every 21.4 days
  • Top authors: nosuko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Embed Link ShortCode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.24 ▼1.44
Dashboard /wp-admin3.33 ▲0.0347.47 ▼5.85
Posts /wp-admin/edit.php3.38 ▲0.0246.31 ▼1.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.53 ▼9.93
Media Library /wp-admin/upload.php3.25 ▲0.0234.10 ▲1.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed Link ShortCode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.39 ▼1.001.76 ▲0.0643.88 ▲2.69
Dashboard /wp-admin2,206 ▲175.88 ▲0.95108.44 ▼6.5441.11 ▼1.76
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.15 ▼1.9033.31 ▼2.12
Add New Post /wp-admin/post-new.php1,533 ▲1923.44 ▲6.03667.75 ▲24.4953.02 ▼6.32
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0495.68 ▼3.5350.90 ▲7.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/embed-link-shortcode/embed-link-shortcode.php:181

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 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === embed-link-shortcode === )
  • Screenshots: Screenshot #1 (No screenshots provided at the moment.) image not found
You can take inspiration from this readme.txt

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

This is the main PHP file of "Embed Link ShortCode" version 3.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
This plugin adds a shortcode to get a similar functionality that has facebook when a link is pasted to the status input.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected177 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13832149
PO File15928

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions4
▷ Named functions4100.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 files were detected