88% get-link-meta

Code Review | Get Link Meta

WordPress plugin Get Link Meta scored 88% from 54 tests.

About plugin

  • Plugin page: get-link-meta
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.3
  • WordPress version: 5.9.2
  • First release: Dec 13, 2011
  • Latest release: Jan 10, 2012
  • Number of updates: 22
  • Update frequency: every 1.3 days
  • Top authors: lioman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 932 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Get Link Meta
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0253.41 ▲3.14
Dashboard /wp-admin3.42 ▲0.0132.93 ▼0.45
Posts /wp-admin/edit.php3.65 ▲0.0136.61 ▲0.14
Add New Post /wp-admin/post-new.php6.92 ▼0.0893.67 ▼1,191.23
Media Library /wp-admin/upload.php3.30 ▲0.0122.82 ▼2.26

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Get Link Meta
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.86 ▲0.196.34 ▼0.252.85 ▼0.20
Dashboard /wp-admin2,895 ▲446.14 ▲0.00119.92 ▼19.08149.00 ▼5.61
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0062.94 ▼2.86136.05 ▼9.37
Add New Post /wp-admin/post-new.php1,661 ▼9116.27 ▼5.61399.76 ▼35.41162.52 ▲5.55
Media Library /wp-admin/upload.php1,698 ▲35.54 ▲0.00142.89 ▲8.83184.75 ▼0.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/get-link-meta/getdescription.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      get_meta_tags(): Filename cannot be empty in wp-content/plugins/get-link-meta/getdescription.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-link-meta/getlinkmeta.php:21
    • > PHP Notice
      Undefined index: linkurl in wp-content/plugins/get-link-meta/getdescription.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/get-link-meta/getdescription.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Metabox added to linkmanager) image not found
  • Plugin Name: Please specify the plugin name on the first line ( === get-link-meta === )
You can take inspiration from this readme.txt

get-link-meta/getlinkmeta.php 92% from 13 tests

The entry point to "Get Link Meta" version 0.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-link-meta.php" instead of "getlinkmeta.php")

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
No dangerous file extensions were detected57 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.28KB3.49KB▼ 57.86%