88% link-to-url-post

Code Review | Link to URL / Post

WordPress plugin Link to URL / Post scored 88% from 54 tests.

About plugin

  • Plugin page: link-to-url-post
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 5.8.1
  • First release: Aug 29, 2011
  • Latest release: Sep 26, 2013
  • Number of updates: 6
  • Update frequency: every 126.7 days
  • Top authors: sudiptomahato (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active / 11,913 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼148.82ms] Passed 4 tests

Server-side resources used by Link to URL / Post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.73 ▲8.68
Dashboard /wp-admin3.06 ▲0.0152.87 ▲0.42
Posts /wp-admin/edit.php3.11 ▲0.0150.34 ▼1.88
Add New Post /wp-admin/post-new.php5.43 ▼0.0198.42 ▼589.33
Media Library /wp-admin/upload.php3.00 ▲0.0035.84 ▼4.47
Link to URL /wp-admin/options-general.php?page=l2url2.9830.70

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: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Link to URL / Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10215.93 ▼0.058.35 ▼2.1547.42 ▼4.27
Dashboard /wp-admin2,994 ▲666.06 ▼0.00145.95 ▼5.05115.62 ▼9.23
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0070.20 ▲5.75100.73 ▼3.19
Add New Post /wp-admin/post-new.php1,686 ▲318.72 ▼0.03408.34 ▲4.93112.23 ▼8.73
Media Library /wp-admin/upload.php1,809 ▲25.01 ▼0.03152.34 ▼1.50130.35 ▼2.14
Link to URL /wp-admin/options-general.php?page=l2url1,3072.3558.8873.39

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 completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-to-url-post/link-to-url.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=l2url
    • > Network (severe)
    http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=l2url
    • > Network (severe)
    https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=l2url
    • > Network (severe)
    https://techxt.com/link2url_ad.png - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === link-to-url-post === )
Please take inspiration from this readme.txt

link-to-url-post/link-to-url.php 85% from 13 tests

The main PHP script in "Link to URL / Post" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("link-to-url-post.php" instead of "link-to-url.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected230 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1159230

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin