90% wp-hide-referer

Code Review | WordPress Hide Referer

WordPress plugin WordPress Hide Referer scored90%from 54 tests.

About plugin

  • Plugin page: wp-hide-referer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Dec 23, 2012
  • Latest release: Dec 24, 2012
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: ilanco (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,357 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.01MB] [CPU: ▼9.58ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Hide Referer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0143.33 ▼0.49
Dashboard /wp-admin3.36 ▲0.0150.41 ▼4.74
Posts /wp-admin/edit.php3.47 ▲0.0747.58 ▼4.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0183.92 ▼28.26
Media Library /wp-admin/upload.php3.28 ▲0.0138.62 ▲1.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Hide Referer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.20 ▼0.362.34 ▲0.6744.12 ▼1.34
Dashboard /wp-admin2,192 ▲155.55 ▲0.0190.10 ▼0.8741.82 ▼2.81
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.1535.47 ▼1.0334.35 ▼4.34
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.57659.81 ▼30.9060.49 ▲8.18
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0298.91 ▼1.9645.10 ▲0.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: hide referer, hide referrer, referer, anonymize, refer...

wp-hide-referer/wp-hide-referer.php Passed 13 tests

"WordPress Hide Referer" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
18 characters long description:
Hide your referer.

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods228.57%
▷ Protected methods00.00%
▷ Private methods571.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin