Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.69MB] [CPU: ▼31.14ms] Passed 4 tests
Server-side resources used by Geotagged Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 39.94 ▼3.01 |
Dashboard /wp-admin | 3.26 ▼0.05 | 30.31 ▼14.92 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 27.08 ▼24.76 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 22.95 ▼76.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 24.75 ▼8.57 |
Geotagged media /wp-admin/upload.php?page=gtm | 3.26 | 26.72 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 3.26 | 21.33 |
Geotagged Media /wp-admin/options-general.php?page=gtm-admin-options | 3.26 | 26.32 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.26 | 23.53 |
Server storage [IO: ▲6.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
category_children |
widget_recent-posts |
gtm_options |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Geotagged Media
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲314 | 17.02 ▲2.65 | 22.45 ▲20.41 | 34.91 ▼10.16 |
Dashboard /wp-admin | 2,323 ▲141 | 6.99 ▲2.13 | 156.11 ▲53.69 | 42.20 ▼0.36 |
Posts /wp-admin/edit.php | 2,190 ▲101 | 4.04 ▲2.01 | 57.53 ▲13.94 | 31.55 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,786 ▲258 | 24.98 ▲6.60 | 616.85 ▲17.09 | 26.82 ▼33.66 |
Media Library /wp-admin/upload.php | 1,508 ▲123 | 6.50 ▲2.26 | 124.02 ▲28.41 | 46.34 ▲2.73 |
Geotagged media /wp-admin/upload.php?page=gtm | 977 | 3.73 | 56.37 | 26.89 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 1,433 | 3.88 | 62.43 | 34.39 |
Geotagged Media /wp-admin/options-general.php?page=gtm-admin-options | 1,007 | 3.86 | 58.82 | 31.40 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,549 | 3.76 | 56.29 | 31.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- category_children
- can_compress_scripts
- gtm_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/upload.php?page=gtm
- > Notice in wp-content/plugins/geotagged-media/gtm_dash.php+365
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gtm-admin-options
- > Notice in wp-content/plugins/geotagged-media/gtm_settings_page.php+43
Undefined index: key_bingmaps
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gtm-admin-options
- > Notice in wp-content/plugins/geotagged-media/gtm_settings_page.php+48
Undefined index: key_thunderforest
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gtm-admin-options
- > Notice in wp-content/plugins/geotagged-media/gtm_settings_page.php+54
Undefined index: key_mapbox
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/geotagged-media/gtm_dash_page.php
- > /wp-content/plugins/geotagged-media/gtm_media_details.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/geotagged-media/gtm_media_details.php on line 19
- > PHP Warning
include_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/geotagged-media/gtm_delete_exif.php on line 3
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/geotagged-media/gtm_media_details.php on line 26
- > PHP Warning
require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/geotagged-media/gtm_geocode_lib.php on line 3
- > PHP Notice
Undefined variable: gtm_options in wp-content/plugins/geotagged-media/gtm_settings_page.php on line 54
- > PHP Fatal error
require_once(): Failed opening required '../../..wp-includes/version.php' (include_path='.:/usr/share/php') in wp-load.php on line 62
- > PHP Fatal error
require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/geotagged-media/gtm_geocode_lib.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/geotagged-media/gtm_settings_page.php:59
- > PHP Warning
include_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/geotagged-media/gtm_store_exif.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geotagged-media/gtm_settings_page.php on line 54
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment
- > Javascript (severe) in unknown
/wp-content/plugins/geotagged-media/bootstrap/bootstrap-3.3.6.min.js?ver=3.3.6 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment
- > Javascript (severe) in unknown
/wp-content/plugins/geotagged-media/gtm.js?ver=6.3.1 77:4 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: maps osm openlayers geotag exif dashboard
geotagged-media/gtm_plugin_main.php 77% from 13 tests
"Geotagged Media" version 0.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("geotagged-media.php" instead of "gtm_plugin_main.php")
- Domain Path: Use only dashes and lowercase characters for the domain path ("digfish/gtm")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .mst - Windows Installer Setup Transform File in Windows
- ☣ wp-content/plugins/geotagged-media/gtm.mst
- .mst - Windows Installer Setup Transform File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 5,564 | 7,133 | 17,160 |
CSS | 5 | 115 | 42 | 2,363 |
PHP | 17 | 34,971 | 55,679 | 1,451 |
SVG | 1 | 1 | 1 | 141 |
JSON | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 86 | |
▷ Named functions | 75 | 87.21% |
▷ Anonymous functions | 11 | 12.79% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/icon-128x128.png | 4.10KB | 2.50KB | ▼ 38.90% |
leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |