94% add-noopener-noreferrer

Code Review | ADD noopener & noreferrer

WordPress plugin ADD noopener & noreferrer scored 94% from 54 tests.

About plugin

  • Plugin page: add-noopener-nore...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9.1
  • WordPress version: 5.9.2
  • First release: Mar 9, 2022
  • Latest release: Mar 9, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ADD noopener & noreferrer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.05 ▲2.85
Dashboard /wp-admin3.41 ▲0.0132.67 ▲0.27
Posts /wp-admin/edit.php3.64 ▲0.0036.72 ▼0.74
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.98 ▼1,187.47
Media Library /wp-admin/upload.php3.30 ▲0.0023.00 ▼6.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ADD noopener & noreferrer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.80 ▲0.205.66 ▼0.722.31 ▼0.52
Dashboard /wp-admin2,895 ▲346.00 ▼0.18115.97 ▼20.87155.14 ▼4.40
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0065.64 ▲2.38146.35 ▲1.22
Add New Post /wp-admin/post-new.php1,661 ▼9116.28 ▼5.51423.91 ▼23.73155.50 ▼0.27
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.04142.21 ▼15.80185.68 ▲1.44

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 items
  • 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/add-noopener-noreferrer/add-noreferrer-noopenner.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: seo, target link, wp noopenner, noreferer

add-noopener-noreferrer/add-noreferrer-noopenner.php 92% from 13 tests

The main PHP file in "ADD noopener & noreferrer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-noopener-noreferrer.php" instead of "add-noreferrer-noopenner.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected