Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.05MB] [CPU: ▼9.91ms] Passed 4 tests
This is a short check of server-side resources used by Instant Locations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.42 ▼2.81 |
Dashboard /wp-admin | 3.38 ▲0.04 | 53.73 ▼14.97 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.75 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.36 | 76.22 ▼20.55 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.72 ▲0.38 |
Instant Locations /wp-admin/options-general.php?page=instant-locations | 3.25 | 33.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_locations |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
gl_db_version |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Instant Locations: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.85 ▼0.41 | 2.38 ▲0.60 | 40.63 ▼5.26 |
Dashboard /wp-admin | 2,206 ▲32 | 5.52 ▼0.08 | 118.98 ▲21.31 | 41.59 ▼2.39 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.60 ▲0.61 | 49.53 ▲11.94 | 37.02 ▲4.72 |
Add New Post /wp-admin/post-new.php | 6,484 ▲4,956 | 23.33 ▲0.17 | 1,004.07 ▲333.33 | 45.86 ▼11.13 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 5.18 ▲1.07 | 102.71 ▼14.11 | 44.16 ▼5.53 |
Instant Locations /wp-admin/options-general.php?page=instant-locations | 952 | 2.29 | 41.40 | 28.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_locations
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- gl_db_version
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=instant-locations
- > Notice in wp-content/plugins/instant-locations/inc/class-il-settings.php+116
Undefined index: componentRestrictions
- > GET request to /wp-admin/options-general.php?page=instant-locations
- > Notice in wp-content/plugins/instant-locations/inc/class-il-settings.php+116
Trying to access array offset on value of type null
SRP 50% from 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/instant-locations/inc/class-il-meta-box.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instant-locations/inc/class-il-settings.php:16
- > PHP Fatal error
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/options-general.php?page=instant-locations
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places&ver=4.2.2 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/options-general.php?page=instant-locations
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places&ver=4.2.2 153:248 "InvalidValueError: not an instance of HTMLInputElement"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== instant-locations ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add descriptions for screenshots #2, #3 in instant-locations/assets to your readme.txt
instant-locations/instant-locations.php Passed 13 tests
"Instant Locations" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Instant & Auto populate location data with the power of Google Maps API.
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 plugin542 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 109 | 155 | 436 |
JavaScript | 1 | 29 | 40 | 75 |
CSS | 1 | 5 | 0 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin