84% remove-noreferrer

Code Review | Remove noreferrer

WordPress plugin Remove noreferrer scored 84% from 54 tests.

About plugin

  • Plugin page: remove-noreferrer
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 5.8.1
  • First release: Mar 21, 2019
  • Latest release: Jan 4, 2021
  • Number of updates: 12
  • Update frequency: every 54.6 days
  • Top authors: gruz0 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active / 10,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼132.02ms] Passed 4 tests

Analyzing server-side resources used by Remove noreferrer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1937.89 ▲15.98
Dashboard /wp-admin3.24 ▲0.1845.96 ▲10.38
Posts /wp-admin/edit.php3.29 ▲0.1845.48 ▲3.14
Add New Post /wp-admin/post-new.php5.54 ▲0.1091.82 ▼543.57
Media Library /wp-admin/upload.php3.12 ▲0.1132.56 ▲1.99
Remove Noreferrer /wp-admin/options-general.php?page=remove_noreferrer3.0827.30

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
remove_noreferrer

Browser metrics Passed 4 tests

An overview of browser requirements for Remove noreferrer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11215.83 ▼0.149.50 ▼1.7244.65 ▼8.37
Dashboard /wp-admin2,974 ▲405.87 ▼0.05140.98 ▼2.08107.03 ▼10.90
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0068.99 ▼4.6193.92 ▲0.87
Add New Post /wp-admin/post-new.php1,501 ▼11418.87 ▼2.17395.51 ▲114.66122.88 ▲24.24
Media Library /wp-admin/upload.php1,812 ▲55.05 ▼0.08147.76 ▼11.93121.84 ▲6.14
Remove Noreferrer /wp-admin/options-general.php?page=remove_noreferrer1,2232.0949.1584.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • remove_noreferrer

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
Good news, no errors were detected

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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Remove_Noreferrer\\Base\\Plugin' not found in wp-content/plugins/remove-noreferrer/class-plugin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Remove_Noreferrer\\Base\\Plugin' not found in wp-content/plugins/remove-noreferrer/admin/class-plugin.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Remove_Noreferrer\\Base\\Plugin' not found in wp-content/plugins/remove-noreferrer/core/class-plugin.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Remove_Noreferrer\\Base\\Plugin' not found in wp-content/plugins/remove-noreferrer/frontend/class-plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: post, widgets, noreferrer, page, affiliate...

remove-noreferrer/remove-noreferrer.php Passed 13 tests

The main PHP file in "Remove noreferrer" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Removes rel="noreferrer" attribute from links on your website on-the-fly

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin720 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP142471,018720

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.18
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods79
▷ Static methods1215.19%
▷ Public methods3240.51%
▷ Protected methods11.27%
▷ Private methods4658.23%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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