WordPress plugin IPLocationTools scored77%from 54 tests.

About plugin

  • Plugin page: iplocationtools-r...
  • Plugin version: 1.1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 21, 2011
  • Latest release: Nov 10, 2023
  • Number of updates: 40
  • Update frequency: every 108.6 days
  • Top authors: ip2location (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,191 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.00MB] [CPU: ▼6.54ms] Passed 4 tests

Server-side resources used by IPLocationTools
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.18 ▼0.98
Dashboard /wp-admin3.32 ▼0.0349.74 ▼12.59
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▼0.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.89 ▼11.91
Media Library /wp-admin/upload.php3.24 ▲0.0136.04 ▼0.67

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

IPLocationTools: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5114.27 ▲0.091.68 ▼0.0144.80 ▼0.56
Dashboard /wp-admin2,196 ▲185.54 ▼0.1487.99 ▼17.7939.77 ▼5.74
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0135.45 ▼4.9534.49 ▼0.40
Add New Post /wp-admin/post-new.php1,532 ▲623.34 ▲0.10687.87 ▼23.6652.00 ▼1.27
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.06112.24 ▲10.8548.31 ▲5.50
IPLocationTools /wp-admin/IPLocationTools.php260.410.0813.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > 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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === iplocationtools-real-time-visitor-widget === )
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (IPLocationTools sidebar widget)
Please take inspiration from this readme.txt

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

"IPLocationTools" version 1.1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: A good plugin description is longer than 10 characters (currently 0 characters long)
  • Main file name: The principal 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin523 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24411463
JavaScript19060

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin