84% no-noopener-noreferrer-dont-add-relnoopener-noreferrer

Code Review | No noopener noreferrer - Don’t add rel="noopener noreferrer"

WordPress plugin No noopener noreferrer - Don’t add rel="noopener noreferrer" scored84%from 54 tests.

About plugin

  • Plugin page: no-noopener-noref...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: May 1, 2017
  • Latest release: May 1, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: matthewtatumwordpress (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /3,871 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by No noopener noreferrer - Don’t add rel="noopener noreferrer"
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.02 ▼0.80
Dashboard /wp-admin3.31 ▲0.0144.68 ▼4.87
Posts /wp-admin/edit.php3.36 ▲0.0051.89 ▲3.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.85 ▼17.72
Media Library /wp-admin/upload.php3.23 ▲0.0035.94 ▲2.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by No noopener noreferrer - Don’t add rel="noopener noreferrer"
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.131.72 ▼0.0444.37 ▲0.36
Dashboard /wp-admin2,206 ▲214.86 ▼0.99104.91 ▼18.6338.30 ▼9.59
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0343.60 ▲5.7739.68 ▲10.09
Add New Post /wp-admin/post-new.php1,534 ▲623.12 ▲4.94657.58 ▲61.2049.37 ▼0.30
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0295.49 ▼7.0243.57 ▲0.69

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/no-noopener-noreferrer-dont-add-relnoopener-noreferrer/noopnoref.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: noreferrer, noopener

no-noopener-noreferrer-dont-add-relnoopener-noreferrer/noopnoref.php 92% from 13 tests

This is the main PHP file of "No noopener noreferrer - Don’t add rel="noopener noreferrer"" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("no-noopener-noreferrer-dont-add-relnoopener-noreferrer.php" instead of "noopnoref.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1676

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin