99% proxy-real-ip

Code Review | Proxy Real IP

WordPress plugin Proxy Real IP scored 99% from 54 tests.

About plugin

  • Plugin page: proxy-real-ip
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.3.1
  • WordPress version: 5.8.1
  • First release: Sep 25, 2012
  • Latest release: Dec 27, 2012
  • Number of updates: 5
  • Update frequency: every 18.6 days
  • Top authors: samparsons (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 7,603 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Proxy Real IP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.97 ▲16.44
Dashboard /wp-admin3.06 ▲0.0141.24 ▼8.55
Posts /wp-admin/edit.php3.11 ▲0.0147.19 ▼1.49
Add New Post /wp-admin/post-new.php5.42 ▼0.0197.55 ▼564.77
Media Library /wp-admin/upload.php3.00 ▼0.0038.75 ▼9.27

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: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Proxy Real IP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.89 ▲0.5115.67 ▲5.6955.51 ▲6.76
Dashboard /wp-admin2,970 ▲395.92 ▼0.02142.90 ▼16.16108.71 ▼15.54
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0067.26 ▼6.1591.46 ▲0.70
Add New Post /wp-admin/post-new.php1,683 ▼018.80 ▲0.08405.69 ▲6.33119.99 ▼2.93
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.00155.97 ▲8.07130.53 ▼10.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === proxy-real-ip === )
You can look at the official readme.txt

proxy-real-ip/proxy-real-ip.php 92% from 13 tests

The entry point to "Proxy Real IP" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 199 characters long)

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
Success! There were no dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102524

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
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
No PNG images were found in this plugin