Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.61MB] [CPU: ▼1.25ms] Passed 4 tests
Analyzing server-side resources used by Autocomplete Google places
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.38 | 45.86 ▼0.54 |
Dashboard /wp-admin | 4.27 ▲0.70 | 63.68 ▲6.49 |
Posts /wp-admin/edit.php | 4.35 ▲0.67 | 57.72 ▲5.88 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.70 | 92.23 ▼16.13 |
Media Library /wp-admin/upload.php | 4.19 ▲0.70 | 47.07 ▲5.81 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 344 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Autocomplete Google places
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 14.76 ▲0.48 | 31.06 ▲29.39 | 46.18 ▲3.84 |
Dashboard /wp-admin | 2,225 ▲54 | 5.68 ▲0.08 | 84.73 ▼6.71 | 38.56 ▼6.83 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.07 ▲0.04 | 36.81 ▲1.12 | 36.47 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.06 ▲5.39 | 657.51 ▼43.80 | 48.55 ▼4.99 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.28 ▲0.08 | 97.16 ▼14.12 | 41.48 ▼5.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/autocomplete-google-places/autocomplete-google-places.php
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Text_Date.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Select_Timezone.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_File.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Picker_Base.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Taxonomy_Select.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Multi_Base.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/types/CMB2_Type_Taxonomy_Base.php:61
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/autocomplete-google-places/library/includes/CMB2.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocomplete-google-places/library/example-functions.php:521
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No plugin tags provided
autocomplete-google-places/autocomplete-google-places.php 85% from 13 tests
The main PHP script in "Autocomplete Google places" version 1.4.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin46,374 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 59 | 2,177 | 6,388 | 7,296 |
CSS | 12 | 250 | 1,190 | 4,554 |
JavaScript | 8 | 361 | 583 | 1,433 |
Markdown | 3 | 249 | 0 | 768 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 9 | 13.24% |
▷ Concrete classes | 59 | 86.76% |
▷ Final classes | 0 | 0.00% |
Methods | 542 | |
▷ Static methods | 91 | 16.79% |
▷ Public methods | 450 | 83.03% |
▷ Protected methods | 89 | 16.42% |
▷ Private methods | 3 | 0.55% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
library/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
library/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
library/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
library/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |