Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+99
Use of undefined constant DEFAULT_LAT - assumed 'DEFAULT_LAT' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.93ms] Passed 4 tests
An overview of server-side resources used by Nearby Places Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.65 ▼35.81 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.56 ▼47.94 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.15 ▼47.57 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.24 ▼104.38 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.44 ▼27.30 |
Search Settings /wp-admin/options-general.php?page=searchsettings | 2.05 | 4.98 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Nearby Places Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.26 ▼0.06 | 1.71 ▼0.28 | 40.18 ▼1.35 |
Dashboard /wp-admin | 2,202 ▲24 | 5.65 ▼0.11 | 82.26 ▼22.38 | 40.15 ▼2.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.07 ▲0.08 | 38.13 ▼2.83 | 33.35 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 17.45 ▼5.73 | 669.43 ▼2.23 | 56.27 ▼0.72 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.06 | 97.15 ▼5.87 | 44.54 ▼3.04 |
Search Settings /wp-admin/options-general.php?page=searchsettings | 1,220 | 2.06 | 22.97 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+99
Use of undefined constant DEFAULT_LAT - assumed 'DEFAULT_LAT' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+99
Use of undefined constant DEFAULT_LAT - assumed 'DEFAULT_LAT' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+100
Use of undefined constant DEFAULT_LONG - assumed 'DEFAULT_LONG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+101
Use of undefined constant DEFAULT_NMAE - assumed 'DEFAULT_NMAE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Warning in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php+102
Use of undefined constant DEFAULT_RADIUS - assumed 'DEFAULT_RADIUS' (this will throw an Error in a future version of PHP)
- 91 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+134
Undefined index: location_type
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+147
Undefined index: api_key
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+156
Undefined index: location_latitude
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+164
Undefined index: location_longitude
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+172
Undefined index: location_name
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Notice in wp-content/plugins/nearby-places-search/plugin.php+180
Undefined index: radius
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nearby-places-search/config/nearby_places_search_config.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nearby-places-search/plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nearby-places-search/view/loadPlace.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=searchsettings
- > Network (severe)
wp-content/plugins/nearby_place_search/css/nearby_places_search_admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: google map shortcode, admin, location, radius, google map place search
nearby-places-search/plugin.php 85% from 13 tests
"Nearby Places Search" version 1...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nearby-places-search.php" instead of "plugin.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin536 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 4 | 58 | 296 |
JavaScript | 1 | 20 | 5 | 159 |
CSS | 2 | 11 | 6 | 81 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
95 PNG files occupy 0.62MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
nearby_places_search_markers/storage.png | 0.59KB | 0.41KB | ▼ 29.45% |
nearby_places_search_markers/doctor.png | 0.63KB | 0.44KB | ▼ 29.38% |
nearby_places_search_markers/police.png | 0.64KB | 0.58KB | ▼ 9.73% |
nearby_places_search_markers/bakery.png | 1.12KB | 0.77KB | ▼ 31.10% |
nearby_places_search_markers/undefined.png | 0.09KB | 0.09KB | 0.00% |