Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.33MB] [CPU: ▼53.72ms] Passed 4 tests
An overview of server-side resources used by WP-GeoMeta
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.47 ▼1.00 | 6.75 ▼37.64 |
Dashboard /wp-admin | 2.74 ▼0.57 | 9.31 ▼41.27 |
Posts /wp-admin/edit.php | 2.74 ▼0.62 | 9.01 ▼42.70 |
Add New Post /wp-admin/post-new.php | 2.74 ▼3.15 | 11.40 ▼93.28 |
Media Library /wp-admin/upload.php | 2.74 ▼0.49 | 13.64 ▼24.54 |
WP-GeoMeta /wp-admin/tools.php?page=wp-geometa | 2.74 | 10.29 |
Server storage [IO: ▲5.55MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 175 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_termmeta_geo |
wp_postmeta_geo |
wp_usermeta_geo |
wp_commentmeta_geo |
New WordPress options |
---|
wp_geometa_version |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
wp_geometa_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-GeoMeta
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.27 | 1.87 ▲0.25 | 43.78 ▼1.47 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.05 | 90.22 ▼2.27 | 39.37 ▼4.02 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.01 | 41.31 ▲1.08 | 37.24 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,529 ▲2 | 23.17 ▼0.05 | 669.58 ▲26.67 | 52.38 ▲1.20 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.08 ▼0.16 | 102.12 ▼4.71 | 45.55 ▼0.96 |
WP-GeoMeta /wp-admin/tools.php?page=wp-geometa | 1,489 | 2.51 | 56.73 | 52.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-geometa/lib/wp-geometa-lib/wp-geometa-lib.php+34
Undefined variable: wp_geometa_version
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_postmeta_geo
- wp_usermeta_geo
- wp_commentmeta_geo
- wp_termmeta_geo
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- wp_geometa_db_version
- wp_geometa_version
- widget_recent-comments
- widget_theysaidso_widget
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/tools.php?page=wp-geometa
- > Notice in wp-content/plugins/wp-geometa/lib/wp-geometa-lib/wp-geometa-lib.php+34
Undefined variable: wp_geometa_version
- > GET request to /wp-admin/tools.php?page=wp-geometa
- > Notice in wp-content/plugins/wp-geometa/lib/wp-geometa-lib/wp-geometa-lib.php+34
Undefined variable: wp_geometa_max_version
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 24× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/testsuite.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/QueryOrderByDistance.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/LoadLatLng.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/wp-geometa.php
- > /wp-content/plugins/wp-geometa/wp-geometa.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/UnloadDataTest.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/PopulateTable.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/QueryOneGeomInValTest.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php
- > /wp-content/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/TablesCreatedTest.php
- 172× PHP files trigger server errors when accessed directly (only 10 are shown):
- > WordPress database error FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='19'
- > WordPress database error FUNCTION potrivit.GeomFromText does not exist for query INSERT INTO wp_postmeta_geo \t\t\t\t\t(\t\t\tpost_id,\t\t\tfk_meta_id,\t\t\tmeta_key,\t\t\tmeta_value\t\t) VALUES (\t\t\t28,\t\t\t42,\t\t\t'wpgeometa_test',\t\t\tGeomFromText('MULTIPOINT (-93.22086811153 45.090051566527)',4326)\t\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOINT (-93.22086811153 45.090051566527)',4326) made by WP_GeoMeta->populate_geo_tables, WP_GeoMeta->upsert_meta
- > WordPress database error FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='24'
- > WordPress database error FUNCTION potrivit.GeomFromText does not exist for query INSERT INTO wp_postmeta_geo \t\t\t\t\t(\t\t\tpost_id,\t\t\tfk_meta_id,\t\t\tmeta_key,\t\t\tmeta_value\t\t) VALUES (\t\t\t23,\t\t\t32,\t\t\t'wpgeometa_test',\t\t\tGeomFromText('MULTIPOINT (-93.26704502193 45.096110844925)',4326)\t\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOINT (-93.26704502193 45.096110844925)',4326) made by WP_GeoMeta->populate_geo_tables, WP_GeoMeta->upsert_meta
- > WordPress database error FUNCTION potrivit.GeomFromText does not exist for query INSERT INTO wp_postmeta_geo \t\t\t\t\t(\t\t\tpost_id,\t\t\tfk_meta_id,\t\t\tmeta_key,\t\t\tmeta_value\t\t) VALUES (\t\t\t45,\t\t\t86,\t\t\t'wpgeometa_test',\t\t\tGeomFromText('MULTIPOINT (-93.231167794147 45.090778713879)',4326)\t\t) ON DUPLICATE KEY UPDATE meta_value=GeomFromText('MULTIPOINT (-93.231167794147 45.090778713879)',4326) made by require('/plugins/wp-geometa/lib/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 FUNCTION potrivit.GeomFromText does not exist for query INSERT INTO wp_postmeta_geo \t\t\t\t\t(\t\t\tpost_id,\t\t\tfk_meta_id,\t\t\tmeta_key,\t\t\tmeta_value\t\t) VALUES (\t\t\t11,\t\t\t45,\t\t\t'geo_',\t\t\tGeomFromText('MULTIPOINT (-93.265 44.9778)',4326)\t\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 FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='12'
- > WordPress database error FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='43' made by require('/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
- > WordPress database error FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='24'
- > WordPress database error FUNCTION potrivit.Dimension does not exist for query SELECT Dimension(meta_value) FROM wp_postmeta_geo WHERE meta_key='wpgeometa_test' AND post_id='33' made by require('/plugins/wp-geometa/lib/wp-geometa-lib/test/tests/QueryOrderByTest.php')
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
9 plugin tags: spatial, mapping, meta, metadata, geography...
wp-geometa/wp-geometa.php Passed 13 tests
The main PHP file in "WP-GeoMeta" ver. 0.3.5 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Store and search spatial metadata while taking advantage of MySQL spatial types and indexes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin41,018 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 12 | 2 | 0 | 18,393 |
JavaScript | 7 | 3,529 | 4,194 | 11,385 |
PHP | 54 | 1,436 | 2,006 | 7,216 |
CSS | 9 | 208 | 70 | 1,229 |
Markdown | 15 | 397 | 0 | 1,192 |
HTML | 1 | 15 | 0 | 720 |
PO File | 1 | 150 | 270 | 382 |
SVG | 1 | 0 | 0 | 193 |
SQL | 4 | 76 | 20 | 130 |
Pascal | 1 | 43 | 162 | 95 |
JSON | 4 | 0 | 0 | 40 |
Bourne Shell | 3 | 13 | 5 | 25 |
YAML | 1 | 6 | 5 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 35.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 3 | 8.82% |
▷ Concrete classes | 31 | 91.18% |
▷ Final classes | 0 | 0.00% |
Methods | 395 | |
▷ Static methods | 51 | 12.91% |
▷ Public methods | 310 | 78.48% |
▷ Protected methods | 43 | 10.89% |
▷ Private methods | 42 | 10.63% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 24 | |
▷ Global constants | 9 | 37.50% |
▷ Class constants | 15 | 62.50% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 1.75MB with 0.51MB 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/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
lib/leaflet-php/assets/leaflet/images/marker-icon-2x.png | 2.53KB | 2.52KB | 0.39% |
assets/screenshot-1.png | 346.99KB | 104.14KB | ▼ 69.99% |
lib/leaflet-php/assets/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/screenshot-4.png | 169.86KB | 42.64KB | ▼ 74.90% |