94% add-target-fixer

Code Review | Add Target Fixer

WordPress plugin Add Target Fixer scored 94% from 54 tests.

About plugin

  • Plugin page: add-target-fixer
  • Plugin version: 0.0.04
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8.1
  • WordPress version: 5.9.2
  • First release: Sep 17, 2016
  • Latest release: Nov 3, 2021
  • Number of updates: 8
  • Update frequency: every 234.1 days
  • Top authors: shortdark (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,510 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼291.22ms] Passed 4 tests

Server-side resources used by Add Target Fixer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.82 ▲3.08
Dashboard /wp-admin3.42 ▲0.0133.47 ▼0.58
Posts /wp-admin/edit.php3.65 ▲0.0139.54 ▲0.86
Add New Post /wp-admin/post-new.php6.89 ▼0.0995.24 ▼1,164.56
Media Library /wp-admin/upload.php3.30 ▲0.0023.81 ▼0.60

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Target Fixer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.18 ▲0.516.25 ▲0.532.73 ▲0.27
Dashboard /wp-admin2,895 ▲376.17 ▲0.00121.46 ▼12.55163.09 ▲4.25
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0065.03 ▲3.26146.00 ▲1.64
Add New Post /wp-admin/post-new.php1,661 ▼9116.05 ▼5.59430.48 ▼50.58154.19 ▼4.41
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.00139.47 ▲0.78188.05 ▼2.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/add-target-fixer/add-target-fixer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: posts, security

add-target-fixer/add-target-fixer.php Passed 13 tests

The main PHP file in "Add Target Fixer" ver. 0.0.04 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
Fixes the security issue with target="_blank"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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 functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin