10% zarza-real-ip

Code Review | Zarza Real IP

WordPress plugin Zarza Real IP scored 10% from 54 tests.

About plugin

  • Plugin page: zarza-real-ip
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 19, 2015
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: zarzacorp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,450 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/zarza-real-ip/zarza-real-ip.php+29
    Undefined index: HTTP_CF_CONNECTING_IP

Server metrics [RAM: ▼1.94MB] [CPU: ▼52.25ms] Passed 4 tests

This is a short check of server-side resources used by Zarza Real IP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.94 ▼45.89
Dashboard /wp-admin2.07 ▼1.236.79 ▼40.30
Posts /wp-admin/edit.php2.07 ▼1.286.42 ▼41.96
Add New Post /wp-admin/post-new.php2.07 ▼3.827.71 ▼80.83
Media Library /wp-admin/upload.php2.07 ▼1.166.36 ▼29.84

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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Zarza Real IP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.731.72 ▼0.2742.44 ▼0.17
Dashboard /wp-admin2,206 ▲185.90 ▲1.02108.99 ▼3.3541.19 ▼4.21
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0140.10 ▼2.0235.22 ▲0.12
Add New Post /wp-admin/post-new.php1,534 ▲1023.05 ▼0.04667.62 ▲11.3653.77 ▼6.75
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0397.88 ▼6.9642.13 ▼4.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/zarza-real-ip/zarza-real-ip.php+29
    Undefined index: HTTP_CF_CONNECTING_IP
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zarza-real-ip/zarza-real-ip.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The principal PHP file in "Zarza Real IP" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 309 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
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151834

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.91
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin