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.00MB] [CPU: ▲0.62ms] Passed 4 tests
An overview of server-side resources used by Brilliant Geocoder for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.81 ▲1.84 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.65 ▲4.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.45 ▲5.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.30 ▼5.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.01 ▲1.11 |
Server storage [IO: ▲4.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Brilliant Geocoder for Gravity Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.17 | 1.76 ▲0.13 | 46.05 ▼0.41 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.15 | 91.64 ▲4.32 | 49.44 ▲4.15 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▼0.01 | 39.13 ▲0.63 | 34.02 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.44 ▲5.44 | 667.05 ▲4.21 | 59.22 ▼2.50 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.11 ▼0.08 | 113.66 ▲13.78 | 46.72 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 20× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/PopulateTable.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/wp-geoquery.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/UnloadDataTest.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/wp-geometa-lib-loader.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByDistance.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOneGeomInValTest.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/geoPHP/tests/test.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/LoadLatLng.php
- > /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/testsuite.php
- 263× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='30' made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='46' made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query INSERT INTO wp_postmeta_geo \t\t\t\t(\t\tpost_id,\t\tfk_meta_id,\t\tmeta_key,\t\tmeta_value\t) VALUES (\t\t12,\t\t47,\t\t'geo_',\t\tGeomFromText('MULTIPOINT (-93.265 44.9778)',4326)\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOINT (-93.265 44.9778)',4326) made by update_post_meta, update_metadata, add_metadata, do_action('added_post_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WP_GeoMeta->__call, WP_GeoMeta->upsert_meta
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query DELETE FROM wp_postmeta_geo WHERE fk_meta_id IN (38) made by wp_delete_post, delete_metadata_by_mid, do_action('deleted_post_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WP_GeoMeta->__call, WP_GeoMeta->deleted_meta
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT post_id FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/LoadDataTest.php')
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query DELETE FROM wp_postmeta_geo WHERE fk_meta_id IN (69) made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/UnloadDataTest.php'), wp_delete_post, delete_metadata_by_mid, do_action('deleted_post_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WP_GeoMeta->__call, WP_GeoMeta->deleted_meta
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='26'
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='39' made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='36' made by require('/plugins/brilliant-geocoder-gravity-forms/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query DELETE FROM wp_postmeta_geo WHERE fk_meta_id IN (21) made by wp_delete_post, delete_metadata_by_mid, do_action('deleted_post_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WP_GeoMeta->__call, WP_GeoMeta->deleted_meta
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
brilliant-geocoder-gravity-forms/brilliant-geocoder-gravityforms.php 77% from 13 tests
The main PHP script in "Brilliant Geocoder for Gravity Forms" version 0.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brilliant-geocoder-gravity-forms.php" instead of "brilliant-geocoder-gravityforms.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected38,350 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 12 | 2 | 0 | 18,393 |
JavaScript | 9 | 3,495 | 4,030 | 10,536 |
PHP | 57 | 1,338 | 2,105 | 6,459 |
Markdown | 12 | 397 | 0 | 1,066 |
CSS | 9 | 119 | 48 | 841 |
HTML | 1 | 15 | 0 | 720 |
SQL | 4 | 76 | 20 | 130 |
Pascal | 1 | 43 | 162 | 95 |
JSON | 4 | 0 | 0 | 40 |
SVG | 1 | 0 | 0 | 27 |
Bourne Shell | 3 | 13 | 5 | 25 |
YAML | 1 | 6 | 5 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 31.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 3 | 8.57% |
▷ Concrete classes | 32 | 91.43% |
▷ Final classes | 0 | 0.00% |
Methods | 392 | |
▷ Static methods | 51 | 13.01% |
▷ Public methods | 309 | 78.83% |
▷ Protected methods | 42 | 10.71% |
▷ Private methods | 41 | 10.46% |
Functions | 23 | |
▷ Named functions | 20 | 86.96% |
▷ Anonymous functions | 3 | 13.04% |
Constants | 22 | |
▷ Global constants | 7 | 31.82% |
▷ Class constants | 15 | 68.18% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 1.85MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/leaflet-php/assets/Leaflet.draw/dist/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/screenshot-9.png | 49.33KB | 14.59KB | ▼ 70.42% |
lib/leaflet-php/assets/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/banner-1544x500.png | 341.05KB | 161.96KB | ▼ 52.51% |
assets/screenshot-4.png | 113.03KB | 32.84KB | ▼ 70.95% |