10% hidereferrer

Code Review | The Official HideReferrer.com WP Plugin

WordPress plugin The Official HideReferrer.com WP Plugin scored10%from 54 tests.

About plugin

  • Plugin page: hidereferrer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: simonstax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Compile warning in wp-content/plugins/hidereferrer/hidereferrer.php+153
    Unterminated comment starting line 153

Server metrics [RAM: ▼0.21MB] [CPU: ▼20.41ms] Passed 4 tests

Server-side resources used by The Official HideReferrer.com WP Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0522.65 ▼25.52
Dashboard /wp-admin3.09 ▼0.2228.33 ▼20.29
Posts /wp-admin/edit.php3.23 ▼0.1333.23 ▼14.81
Add New Post /wp-admin/post-new.php5.47 ▼0.4267.64 ▼21.03
Media Library /wp-admin/upload.php3.18 ▼0.0626.63 ▼8.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by The Official HideReferrer.com WP Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.63 ▼1.011.96 ▲0.0736.25 ▼4.89
Dashboard /wp-admin2,239 ▲484.88 ▼1.00107.69 ▲1.6642.39 ▼4.92
Posts /wp-admin/edit.php2,128 ▲362.05 ▲0.0439.03 ▼1.7340.73 ▲5.67
Add New Post /wp-admin/post-new.php1,401 ▼14122.78 ▲4.51534.80 ▼102.7034.56 ▼27.72
Media Library /wp-admin/upload.php1,421 ▲334.21 ▲0.0395.30 ▼5.4142.87 ▼1.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Compile warning in wp-content/plugins/hidereferrer/hidereferrer.php+153
    Unterminated comment starting line 153
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× 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/hidereferrer/hidereferrer.php:10
    • > PHP Warning
      Unterminated comment starting line 153 in wp-content/plugins/hidereferrer/hidereferrer.php on line 153

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === hidereferrer === )
The official readme.txt might help

hidereferrer/hidereferrer.php Passed 13 tests

The main PHP script in "The Official HideReferrer.com WP Plugin" version 1.0.0 is automatically included on every request by WordPress
71 characters long description:
A configurable Wordpress Plugin to hide your referrer for external urls

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
No dangerous file extensions were detected94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223794

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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