94% wp-open-comment-links-in-new-window

Code Review | WP Open Comment Links in New Window

WordPress plugin WP Open Comment Links in New Window scored 94% from 54 tests.

About plugin

  • Plugin page: wp-open-comment-l...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.8.1
  • First release: Oct 20, 2014
  • Latest release: Aug 8, 2021
  • Number of updates: 64
  • Update frequency: every 38.8 days
  • Top authors: dipakcg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 4,156 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
Installer ran successfully

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

An overview of server-side resources used by WP Open Comment Links in New Window
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.45 ▼0.71
Dashboard /wp-admin3.06 ▲0.0145.82 ▼10.95
Posts /wp-admin/edit.php3.11 ▲0.0145.21 ▲0.22
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.74 ▼563.34
Media Library /wp-admin/upload.php3.00 ▲0.0032.41 ▼0.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Open Comment Links in New Window: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.15 ▲0.5410.00 ▼0.6947.91 ▲5.48
Dashboard /wp-admin2,967 ▲365.93 ▼0.12151.22 ▲0.73106.64 ▼3.92
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0059.66 ▼10.1985.10 ▼2.06
Add New Post /wp-admin/post-new.php1,683 ▲1118.76 ▼0.05402.74 ▼73.42108.52 ▼2.98
Media Library /wp-admin/upload.php1,822 ▲125.02 ▼0.01163.80 ▲9.20116.15 ▲2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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)
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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-open-comment-links-in-new-window/wp-open-comment-links-in-new-window.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: external-links, blank, new tab, target blank, target new...

wp-open-comment-links-in-new-window/wp-open-comment-links-in-new-window.php Passed 13 tests

The main PHP script in "WP Open Comment Links in New Window" version 1.2 is automatically included on every request by WordPress
88 characters long description:
Opens all the links (URLs) added in the comments and author URL, in a new tab or window.

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
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1298

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin