94% upload-url-path-enabler

Code Review | Upload Url and Path Enabler

WordPress plugin Upload Url and Path Enabler scored 94% from 54 tests.

About plugin

  • Plugin page: upload-url-path-e...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 5.8.1
  • First release: Jan 27, 2013
  • Latest release: Apr 3, 2016
  • Number of updates: 12
  • Update frequency: every 96.8 days
  • Top authors: GregLone (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active / 33,047 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Upload Url and Path Enabler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.97 ▲21.10
Dashboard /wp-admin3.06 ▲0.0136.93 ▼14.11
Posts /wp-admin/edit.php3.11 ▼0.0040.92 ▼10.98
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.62 ▼558.49
Media Library /wp-admin/upload.php3.00 ▲0.0028.99 ▼10.67

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Upload Url and Path Enabler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲5616.05 ▲0.5612.59 ▲4.2843.74 ▼4.38
Dashboard /wp-admin2,973 ▲426.19 ▲0.02162.60 ▲6.73105.96 ▼3.34
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0262.88 ▼4.7096.70 ▲12.15
Add New Post /wp-admin/post-new.php1,500 ▼18318.66 ▲3.22431.36 ▲31.51110.17 ▲0.06
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.00179.80 ▲21.67109.06 ▼1.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/upload-url-path-enabler/upload-url-path-enabler.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
4 plugin tags: path, upload, media, url

upload-url-path-enabler/upload-url-path-enabler.php 92% from 13 tests

The main PHP script in "Upload Url and Path Enabler" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131838

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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