Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.85ms] Passed 4 tests
This is a short check of server-side resources used by Address Autocomplete Using Google Place Api
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 56.27 ▲5.97 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.32 ▼2.07 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 39.85 ▲4.43 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 93.16 ▼1,186.26 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.44 ▲0.52 |
Google Autocomplete /wp-admin/options-general.php?page=google_autocomplete | 3.29 | 23.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Address Autocomplete Using Google Place Api
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲163 | 17.21 ▲1.60 | 18.35 ▲11.65 | 2.81 ▲0.20 |
Dashboard /wp-admin | 2,897 ▲46 | 6.12 ▼0.08 | 117.93 ▼14.92 | 155.23 ▼1.21 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.23 ▼0.12 | 62.86 ▼2.33 | 136.51 ▼8.65 |
Add New Post /wp-admin/post-new.php | 1,755 ▲3 | 21.82 ▲0.28 | 438.15 ▼11.79 | 159.95 ▼1.15 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.52 ▲0.05 | 145.38 ▲5.42 | 192.30 ▲4.52 |
Google Autocomplete /wp-admin/options-general.php?page=google_autocomplete | 1,194 | 2.37 | 55.53 | 113.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/address-autocomplete-using-google-place-api/address-autocomplete-using-google-place-api.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-using-google-place-api/admin_settings.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid version format
- Screenshots: A description for screenshot #2 is required in address-autocomplete-using-google-place-api/assets to your readme.txt
address-autocomplete-using-google-place-api/address-autocomplete-using-google-place-api.php 92% from 13 tests
The main PHP file in "Address Autocomplete Using Google Place Api" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin170 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 14 | 160 |
JavaScript | 1 | 4 | 2 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG images were not found in this plugin