72% hide-real-download-path

Code Review | Hide Real Download Path

WordPress plugin Hide Real Download Path scored72%from 54 tests.

About plugin

  • Plugin page: hide-real-downloa...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Oct 20, 2014
  • Number of updates: 26
  • Update frequency: every 24.8 days
  • Top authors: deepaks (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /9,561 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.06MB] [CPU: ▼10.38ms] Passed 4 tests

An overview of server-side resources used by Hide Real Download Path
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.45 ▲2.61
Dashboard /wp-admin3.37 ▲0.0743.70 ▼6.78
Posts /wp-admin/edit.php3.41 ▲0.0544.67 ▼6.54
Add New Post /wp-admin/post-new.php6.05 ▲0.1679.73 ▼24.44
Media Library /wp-admin/upload.php3.31 ▲0.0830.72 ▼3.75
Hide Download Link /wp-admin/options-general.php?page=hide-link-settings3.2129.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hide Real Download Path
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▼0.011.77 ▲0.1244.28 ▼0.70
Dashboard /wp-admin2,213 ▲254.87 ▲0.05109.28 ▼1.0140.62 ▼3.40
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0339.88 ▼0.0335.01 ▼1.00
Add New Post /wp-admin/post-new.php1,545 ▲1218.41 ▼4.79594.18 ▼7.0368.39 ▲21.49
Media Library /wp-admin/upload.php1,392 ▲104.15 ▼0.0395.30 ▼3.9840.93 ▼4.09
Hide Download Link /wp-admin/options-general.php?page=hide-link-settings9612.0227.8231.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • hide_download_path
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=hide-link-settings
    • > Notice in wp-content/plugins/hide-real-download-path/hide-download-path.php+102
    Undefined variable: message

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hide-real-download-path/hide-download-path.php:37

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=hide-link-settings
    • > Network (severe)
    wp-content/plugins/hide-real-download-path//css/download-style.css - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: secure file, hide download path, hide real download path, hot linking, disable direct download

hide-real-download-path/hide-download-path.php 85% from 13 tests

The main PHP script in "Hide Real Download Path" version 1.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 232 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hide-real-download-path.php" instead of "hide-download-path.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin303 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13557303

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin