77% images-with-gps-data-and-gpx-on-maps

Code Review | Images with GPS on GoogleMaps

WordPress plugin Images with GPS on GoogleMaps scored77%from 54 tests.

About plugin

  • Plugin page: images-with-gps-d...
  • Plugin version: 0.913
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Jul 12, 2023
  • Number of updates: 28
  • Update frequency: every 61.5 days
  • Top authors: severinroth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,256 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.55ms] Passed 4 tests

Analyzing server-side resources used by Images with GPS on GoogleMaps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2442.54 ▲2.84
Dashboard /wp-admin3.54 ▲0.2448.07 ▼3.70
Posts /wp-admin/edit.php3.66 ▲0.3047.78 ▲4.41
Add New Post /wp-admin/post-new.php6.14 ▲0.2686.86 ▼1.37
Media Library /wp-admin/upload.php3.47 ▲0.2439.43 ▲4.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Images with GPS on GoogleMaps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲12815.01 ▲0.739.50 ▲7.4238.40 ▼3.04
Dashboard /wp-admin2,213 ▲216.02 ▲0.14104.25 ▼11.2740.78 ▼4.02
Posts /wp-admin/edit.php2,099 ▲312.54 ▲0.5145.44 ▲9.4634.60 ▼0.30
Add New Post /wp-admin/post-new.php6,298 ▲4,76519.80 ▼3.31961.19 ▲314.0544.28 ▼5.00
Media Library /wp-admin/upload.php1,404 ▲135.03 ▲0.82104.39 ▲5.4541.12 ▼2.34
Image GPS & GPX in Map /wp-admin/admin_geoImageAndGPX.php260.440.0912.55

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • geoimggpx_options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/images-with-gps-data-and-gpx-on-maps/geoImgGPXMainAjaxRequest.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/images-with-gps-data-and-gpx-on-maps/geoImgGPX_ShowShortCode.php:403

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 75% 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:
  • Screenshots: These screenshots need descriptions #0, #0 in images-with-gps-data-and-gpx-on-maps/assets to your readme.txt
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots require images: #6 (screenshot-4.jpg Add ShortCode), #7 (screenshot-5.jpg Add Google API Key)
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

images-with-gps-data-and-gpx-on-maps/geoImgGPX_init.php 85% from 13 tests

"Images with GPS on GoogleMaps" version 0.913's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("images-with-gps-data-and-gpx-on-maps.php" instead of "geoImgGPX_init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,044 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP101711201,387
PO File3132138403
CSS1200140
JavaScript21246114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/marker/map-marker-2-xxl.png5.48KB2.87KB▼ 47.64%
images/marker-back.png6.58KB3.60KB▼ 45.26%
images/marker/pin_marker_location-256.png7.43KB5.04KB▼ 32.24%
images/button/error_small.png0.74KB0.96KB0.00%
images/button/ok.png0.35KB0.25KB▼ 29.81%