WordPress plugin IPLocationTools scored 87% from 54 tests.

About plugin

  • Plugin page: iplocationtools-r...
  • Plugin version: 1.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-5.8
  • WordPress version: 5.9.2
  • First release: Dec 21, 2011
  • Latest release: Mar 23, 2022
  • Number of updates: 32
  • Update frequency: every 117.1 days
  • Top authors: ip2location (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,585 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼300.64ms] Passed 4 tests

A check of server-side resources used by IPLocationTools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1454.63 ▲4.64
Dashboard /wp-admin3.53 ▲0.1232.10 ▼3.13
Posts /wp-admin/edit.php3.75 ▲0.1135.53 ▼3.83
Add New Post /wp-admin/post-new.php7.00 ▲0.0393.39 ▼1,188.12
Media Library /wp-admin/upload.php3.41 ▲0.1023.65 ▼7.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

IPLocationTools: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲5015.80 ▲0.205.88 ▲0.332.31 ▼0.03
Dashboard /wp-admin2,894 ▲436.03 ▼0.02118.58 ▼18.35155.70 ▼2.07
Posts /wp-admin/edit.php2,696 ▲83.35 ▼0.0064.05 ▲0.30143.93 ▲2.06
Add New Post /wp-admin/post-new.php1,664 ▼10916.52 ▼5.54412.39 ▼53.07150.74 ▼11.29
Media Library /wp-admin/upload.php1,703 ▲55.50 ▲0.04139.84 ▲0.89180.18 ▼5.38
IPLocationTools /wp-admin/IPLocationTools.php260.940.0421.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iplocationtools-real-time-visitor-widget/IPLocationTools.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/IPLocationTools.php
    • > Network (severe)
    wp-admin/IPLocationTools.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === iplocationtools-real-time-visitor-widget === )
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Screenshots: Screenshot #1 (IPLocationTools sidebar widget) image missing
The official readme.txt might help

iplocationtools-real-time-visitor-widget/IPLocationTools.php 85% from 13 tests

The primary PHP file in "IPLocationTools" version 1.1.10 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 0 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iplocationtools-real-time-visitor-widget.php" instead of "IPLocationTools.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
No dangerous file extensions were detected523 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24411463
JavaScript19060

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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
PNG images were not found in this plugin