Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.44ms] Passed 4 tests
Analyzing server-side resources used by Nearby Locations
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.27 ▲3.88 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.40 ▲7.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.47 ▲3.05 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.00 ▼3.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 44.74 ▲6.71 |
Settings /wp-admin/admin.php?page=nearby-locations-settings | 3.29 | 31.80 |
Locations /wp-admin/admin.php?page=nearby-locations | 3.29 | 33.84 |
Location Types /wp-admin/admin.php?page=nearby-locations-types | 3.29 | 30.45 |
Server storage [IO: ▲0.08MB] [DB: ▲0.32MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_ajf_nl_locations |
wp_ajf_nl_sections |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
ajf-nl-color-panel |
db_upgraded |
ajf-nl-version |
theysaidso_admin_options |
ajf-nl-color-text |
ajf-nl-color-background |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Nearby Locations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲209 | 15.11 ▲0.75 | 12.63 ▲11.09 | 37.54 ▼3.14 |
Dashboard /wp-admin | 2,273 ▲99 | 5.86 ▲0.33 | 100.93 ▲12.54 | 43.02 ▼2.00 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 3.02 ▲1.00 | 48.90 ▲12.23 | 32.69 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,762 ▲227 | 25.85 ▲7.80 | 585.62 ▼24.82 | 34.87 ▼43.74 |
Media Library /wp-admin/upload.php | 1,476 ▲73 | 5.33 ▲1.17 | 93.04 ▼2.22 | 41.07 ▼1.57 |
Settings /wp-admin/admin.php?page=nearby-locations-settings | 1,212 | 3.28 | 61.22 | 29.16 |
Locations /wp-admin/admin.php?page=nearby-locations | 846 | 2.74 | 34.29 | 24.18 |
Location Types /wp-admin/admin.php?page=nearby-locations-types | 867 | 2.59 | 34.77 | 25.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/nearby-locations/shared/partials/nearby-locations-map-display.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-display.php on line 17
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-types-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-types-display.php:35
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-display.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/nearby-locations/shared/partials/nearby-locations-map-display.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-settings-display.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/nearby-locations/admin/partials/nearby-locations-admin-table.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/nearby-locations/shared/partials/nearby-locations-map-display.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: locations, maps
nearby-locations/nearby-locations.php Passed 13 tests
The main PHP file in "Nearby Locations" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Add locations, grouped by categories, to a Google map.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,282 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 301 | 466 | 872 |
JavaScript | 3 | 69 | 49 | 311 |
CSS | 3 | 19 | 8 | 89 |
SVG | 1 | 0 | 1 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 42 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 22.22% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin