Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.78ms] Passed 4 tests
An overview of server-side resources used by GeoMeta For ACF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.30 ▼1.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.05 ▼0.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.86 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.04 ▼3.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.78 ▲1.87 |
Server storage [IO: ▲3.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by GeoMeta For ACF
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.74 ▲0.67 | 1.69 ▼0.40 | 44.50 ▲2.53 |
Dashboard /wp-admin | 2,200 ▲12 | 5.91 ▲1.05 | 100.41 ▼5.72 | 36.59 ▼10.50 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.01 | 34.81 ▼3.62 | 32.82 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.33 ▲0.15 | 657.26 ▼17.68 | 52.37 ▼5.02 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.12 ▼0.08 | 97.79 ▼7.76 | 47.75 ▲1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 20× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/DeleteLatLngMeta.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/HandleMultiMetaClause.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/testsuite.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/LoadDataTest.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/geoPHP/tests/test.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/wp-geometa-lib.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/QueryOneGeomValTest.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/__load.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/QueryOneGeomBoolTest.php
- > /wp-content/plugins/geometa-acf/wp-geometa-lib/test/tests/LoadLatLng.php
- 262× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > 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/geometa-acf/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 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\t34,\t\t99,\t\t'myplugin_geo',\t\tGeomFromText('MULTIPOINT (-93 44)',4326)\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOINT (-93 44)',4326) made by require('/plugins/geometa-acf/wp-geometa-lib/test/tests/LoadLatLng.php'), 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 SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='16'
- > WordPress database error Table 'potrivit.wp_postmeta_geo' doesn't exist for query DELETE FROM wp_postmeta_geo WHERE fk_meta_id IN (37) 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 Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='16'
- > 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='41' made by require('/plugins/geometa-acf/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 (28) 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 DELETE FROM wp_postmeta_geo WHERE fk_meta_id IN (50) 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 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\t33,\t\t62,\t\t'wpgeometa_test',\t\tGeomFromText('MULTIPOLYGON (((-93.252632618387 45.090331317491, -93.252632618387 45.093724575976, -93.244907856424 45.093724575976, -93.244907856424 45.090331317491, -93.252632618387 45.090331317491)))',4326)\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOLYGON (((-93.252632618387 45.090331317491, -93.252632618387 45.093724575976, -93.244907856424 45.093724575976, -93.244907856424 45.090331317491, -93.252632618387 45.090331317491)))',4326) made by require('/plugins/geometa-acf/wp-geometa-lib/test/tests/LoadDataTest.php'), 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 (24) 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 shallow check for browser errors
Everything seems fine on the user side
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
7 plugin tags: spatial, geo, gis, geojson, acf...
geometa-acf/geometa-acf.php Passed 13 tests
The main file in "GeoMeta For ACF" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Store real spatial data with ACF, using the WP-GeoMeta library.
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
Good job! No executable or dangerous file extensions detected37,793 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 12 | 2 | 0 | 18,393 |
JavaScript | 6 | 3,450 | 4,013 | 10,319 |
PHP | 54 | 1,220 | 1,941 | 6,061 |
Markdown | 11 | 384 | 0 | 1,055 |
CSS | 9 | 119 | 48 | 860 |
HTML | 1 | 15 | 0 | 720 |
SQL | 4 | 76 | 20 | 130 |
Pascal | 1 | 43 | 162 | 95 |
PO File | 1 | 12 | 12 | 50 |
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
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 29.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 3.93 |
▷ 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 | 370 | |
▷ Static methods | 50 | 13.51% |
▷ Public methods | 287 | 77.57% |
▷ Protected methods | 42 | 11.35% |
▷ Private methods | 41 | 11.08% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 21 | |
▷ Global constants | 6 | 28.57% |
▷ Class constants | 15 | 71.43% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 1.02MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-geometa-lib/sql/8_point_buffer.png | 109.78KB | 35.56KB | ▼ 67.60% |
leaflet-php/assets/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/screenshot-2.png | 201.79KB | 59.61KB | ▼ 70.46% |
leaflet-php/assets/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
leaflet-php/assets/Leaflet.draw/dist/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |