78% geo-tools

Code Review | Geo Tools

WordPress plugin Geo Tools scored 78% from 54 tests.

About plugin

  • Plugin page: geo-tools
  • Plugin version: 1.0.7.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 1, 2018
  • Latest release: Apr 3, 2020
  • Number of updates: 46
  • Update frequency: every 17.9 days
  • Top authors: verturin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.22ms] Passed 4 tests

An overview of server-side resources used by Geo Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2943.36 ▲4.11
Dashboard /wp-admin3.46 ▲0.1550.30 ▲0.08
Posts /wp-admin/edit.php3.57 ▲0.2148.64 ▼1.27
Add New Post /wp-admin/post-new.php6.06 ▲0.1795.58 ▼3.80
Media Library /wp-admin/upload.php3.38 ▲0.1539.66 ▲6.90
Geo Tools Trackable /wp-admin/admin.php?page=geotools-plugin-trackable3.3632.92
About /wp-admin/admin.php?page=geotools-about3.3632.29
Geo Tools Statbar /wp-admin/admin.php?page=geotools-plugin-statbar3.3733.48
Geo Tools Settings /wp-admin/admin.php?page=geotools-settings3.4332.77

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 15 new options
New WordPress options
widget_theysaidso_widget
geotoolsTBNumber
db_upgraded
widget_recent-comments
can_compress_scripts
geotools_statbaranswer_type
widget_recent-posts
widget_geotools_trackable_widget
theysaidso_admin_options
geotools_statbar_geocacheur
...

Browser metrics Passed 4 tests

Geo Tools: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.42 ▼0.881.83 ▲0.1243.35 ▲3.86
Dashboard /wp-admin2,246 ▲585.06 ▲0.16106.69 ▼7.0391.19 ▲49.80
Posts /wp-admin/edit.php2,146 ▲542.31 ▲0.3238.55 ▼0.9135.68 ▼1.49
Add New Post /wp-admin/post-new.php1,560 ▲2723.03 ▼0.24714.19 ▲88.6737.25 ▼10.52
Media Library /wp-admin/upload.php1,440 ▲524.34 ▲0.10103.46 ▲4.0145.03 ▲1.18
Geo Tools Trackable /wp-admin/admin.php?page=geotools-plugin-trackable9752.0232.4527.99
About /wp-admin/admin.php?page=geotools-about9261.9129.0032.77
Geo Tools Statbar /wp-admin/admin.php?page=geotools-plugin-statbar1,0401.9027.3034.92
Geo Tools Settings /wp-admin/admin.php?page=geotools-settings1,2432.4243.3261.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 15 options in the database
    • geotools_statbar_Citation
    • geotoolsTBNumber
    • geotools-color-picker-background-trackable
    • widget_geotools_trackable_widget
    • geotools_statbar_geocacheur
    • widget_recent-posts
    • can_compress_scripts
    • widget_geotools_statbar_widget
    • geotools_statbar_guid
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=geotools-settings
    • > Notice in wp-content/plugins/geo-tools/includes/geotools-settings.php+354
    Undefined variable: user_ID

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/geo-tools/includes/geotools-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

geo-tools/geo-tools.php Passed 13 tests

Analyzing the main PHP file in "Geo Tools" version 1.0.7.1
100 characters long description:
Geo tools is a plugin that focuses on GeoCaching utilities such as statistics display, geochecker...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,660 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP224744281,514
PO File15164112
CSS19824
JavaScript11810

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity6.00
▷ Maximum class complexity14.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
54 PNG files occupy 1.16MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trackable/background-01.png2.83KB0.09KB▼ 96.86%
assets/Statbarscreenshot-3.png5.67KB3.11KB▼ 45.06%
images/StatbarENTutorial.png97.28KB37.93KB▼ 61.01%
images/screenshot-3.png14.13KB6.02KB▼ 57.42%
images/Statbarscreenshot-5.png76.33KB23.96KB▼ 68.61%