89% gn-ip-tracking

Code Review | IP Tracking by Gambit Nash

WordPress plugin IP Tracking by Gambit Nash scored 89% from 54 tests.

About plugin

  • Plugin page: gn-ip-tracking
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Nov 23, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 69
  • Update frequency: every 0.3 days
  • Top authors: danw310895 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,111 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.12ms] Passed 4 tests

This is a short check of server-side resources used by IP Tracking by Gambit Nash
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0337.39 ▼4.48
Dashboard /wp-admin3.37 ▲0.0748.82 ▼5.37
Posts /wp-admin/edit.php3.48 ▲0.1350.20 ▲2.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.89 ▲0.04
Media Library /wp-admin/upload.php3.29 ▲0.0736.26 ▲1.35
GN IP Tracking /wp-admin/options-general.php?page=gn-ip-tracking3.2631.12

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
gn-ip-tracking

Browser metrics Passed 4 tests

This is an overview of browser requirements for IP Tracking by Gambit Nash
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10314.44 ▲0.161.87 ▼0.0242.24 ▼4.54
Dashboard /wp-admin2,219 ▲345.86 ▲0.01107.40 ▲5.7543.40 ▼2.67
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0639.71 ▲5.1133.94 ▲0.29
Add New Post /wp-admin/post-new.php1,519 ▼1417.39 ▼5.83652.01 ▼20.1154.91 ▲3.08
Media Library /wp-admin/upload.php1,394 ▲64.31 ▲0.1194.43 ▼19.2240.59 ▼6.02
GN IP Tracking /wp-admin/options-general.php?page=gn-ip-tracking7862.0623.5726.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • gn-ip-tracking
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The IP Tracking Dashboard (External service)) image required
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can look at the official readme.txt

gn-ip-tracking/gn-ip-tracking.php 92% from 13 tests

The main file in "IP Tracking by Gambit Nash" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)

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
No dangerous file extensions were detected835 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
Markdown21500550
PHP586200239
PO File1141638
CSS1258

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.67
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods27.14%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png110.49KB32.17KB▼ 70.89%
screenshot-3.png149.64KB50.42KB▼ 66.31%
screenshot-2.png36.36KB10.27KB▼ 71.76%