Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.60ms] Passed 4 tests
This is a short check of server-side resources used by Address Autocomplete Anything
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.04 ▼2.71 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.36 ▼15.48 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.24 ▼4.83 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 90.68 ▼11.36 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.84 ▲1.60 |
Address Autocomplete /wp-admin/options-general.php?page=wps_aa | 3.34 | 33.23 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
wps_aa_install_time |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Address Autocomplete Anything
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.54 ▼0.84 | 1.61 ▼0.12 | 40.49 ▼5.23 |
Dashboard /wp-admin | 2,213 ▲24 | 4.89 ▼0.07 | 104.75 ▼14.55 | 39.35 ▼5.17 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.03 | 41.29 ▲0.17 | 33.48 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▼20 | 23.34 ▲4.97 | 591.99 ▼63.13 | 49.71 ▼6.38 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.26 ▲0.05 | 96.92 ▼5.86 | 45.92 ▲2.02 |
Address Autocomplete /wp-admin/options-general.php?page=wps_aa | 2,210 | 2.47 | 46.02 | 52.37 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- wps_aa_install_time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/address-autocomplete-anything/address-autocomplete.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-anything/includes/admin/class-options.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-autocomplete-anything/includes/admin/promos.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: google, autocomplete, gravityforms, woocommerce, form...
address-autocomplete-anything/address-autocomplete.php 92% from 13 tests
The main PHP file in "Address Autocomplete Anything" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("address-autocomplete-anything.php" instead of "address-autocomplete.php")
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
No dangerous file extensions were detected973 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 110 | 24 | 769 |
JavaScript | 3 | 37 | 31 | 147 |
CSS | 2 | 10 | 0 | 56 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 2 | 8.00% |
▷ Private methods | 4 | 16.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin