84% add-target-fixer

Code Review | Add Target Fixer

WordPress plugin Add Target Fixer scored 84% 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: 6.3.1
  • 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,908 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Add Target Fixer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.63 ▼0.57
Dashboard /wp-admin3.31 ▲0.0145.17 ▼2.66
Posts /wp-admin/edit.php3.36 ▲0.0047.31 ▼0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.94 ▼14.35
Media Library /wp-admin/upload.php3.23 ▲0.0034.37 ▲0.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Target Fixer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.381.65 ▼0.1942.33 ▼5.60
Dashboard /wp-admin2,206 ▲185.91 ▲0.02107.92 ▲6.5838.85 ▼5.49
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0339.83 ▲3.2635.57 ▲3.38
Add New Post /wp-admin/post-new.php1,514 ▼2217.83 ▼5.64657.07 ▲10.9555.80 ▲6.40
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0295.13 ▼8.2443.33 ▼3.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: posts, security

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

The main file in "Add Target Fixer" v. 0.0.04 serves as a complement to information provided in readme.txt and as the entry point to the 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin