Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▲0.93ms] Passed 4 tests
Analyzing server-side resources used by Basic Google Maps Placemarks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 38.93 ▼1.87 |
Dashboard /wp-admin | 3.67 ▲0.36 | 46.81 ▼5.37 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 52.24 ▲4.38 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 98.42 ▲7.50 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 40.41 ▲6.57 |
Placemarks /wp-admin/edit.php?post_type=bgmp | 3.63 | 38.13 |
Basic Google Maps Placemarks /wp-admin/options-general.php?page=bgmp_settings | 3.57 | 32.97 |
Add New /wp-admin/post-new.php?post_type=bgmp | 3.80 | 53.26 |
Categories /wp-admin/edit-tags.php?taxonomy=bgmp-category&post_type=bgmp | 3.58 | 36.08 |
Server storage [IO: ▲0.46MB] [DB: ▲0.32MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 21 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
bgmp_map-navigation-control |
bgmp_map-height |
theysaidso_admin_options |
bgmp_map-address |
bgmp_map-latitude |
bgmp_map-zoom |
widget_theysaidso_widget |
bgmp_map-type-control |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Basic Google Maps Placemarks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.18 ▼1.41 | 1.63 ▼0.17 | 37.44 ▼8.55 |
Dashboard /wp-admin | 2,241 ▲53 | 4.84 ▼0.27 | 109.23 ▼5.45 | 42.80 ▼6.88 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.02 ▼0.03 | 39.05 ▲4.70 | 35.52 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,577 ▲58 | 18.30 ▼4.88 | 585.08 ▼115.31 | 71.78 ▲23.55 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.19 ▼0.12 | 99.55 ▼8.50 | 42.07 ▼5.19 |
Placemarks /wp-admin/edit.php?post_type=bgmp | 1,130 | 1.95 | 32.72 | 28.67 |
Basic Google Maps Placemarks /wp-admin/options-general.php?page=bgmp_settings | 1,269 | 4.68 | 52.76 | 49.07 |
Add New /wp-admin/post-new.php?post_type=bgmp | 2,667 | 7.66 | 176.32 | 69.39 |
Categories /wp-admin/edit-tags.php?taxonomy=bgmp-category&post_type=bgmp | 1,300 | 2.13 | 26.39 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 21 options
- bgmp_map-zoom
- can_compress_scripts
- bgmp_map-type
- bgmp_map-latitude
- bgmp_cluster-style
- db_upgraded
- bgmp_map-width
- widget_theysaidso_widget
- bgmp_map-type-control
- bgmp_map-height
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/basic-google-maps-placemarks/basic-google-maps-placemarks.php
- > /wp-content/plugins/basic-google-maps-placemarks/settings.php
- > /wp-content/plugins/basic-google-maps-placemarks/core.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/basic-google-maps-placemarks/views/settings.php:5
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/simpletest-for-wordpress/WpSimpleTest.php' (include_path='.:/usr/share/php') in wp-content/plugins/basic-google-maps-placemarks/unit-tests.php on line 12
- > PHP Warning
require_once(WP_PLUGIN_DIR/simpletest-for-wordpress/WpSimpleTest.php): failed to open stream: No such file or directory in wp-content/plugins/basic-google-maps-placemarks/unit-tests.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/basic-google-maps-placemarks/views/meta-z-index.php:1
- > PHP Notice
Undefined variable: field in wp-content/plugins/basic-google-maps-placemarks/views/settings-marker-clusterer.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/basic-google-maps-placemarks/views/shortcode-bgmp-map.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/basic-google-maps-placemarks/views/meta-re-abolish-slavery.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/basic-google-maps-placemarks/views/settings-marker-clusterer.php on line 1
- > PHP Notice
Undefined variable: class in wp-content/plugins/basic-google-maps-placemarks/views/message.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/basic-google-maps-placemarks/views/message.php:2
- > PHP Fatal error
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 96% 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
7 plugin tags: placemark, shortcode, google maps, marker clustering, map...
basic-google-maps-placemarks/basic-google-maps-placemarks.php 92% from 13 tests
The principal PHP file in "Basic Google Maps Placemarks" v. 1.10.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,115 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 748 | 816 | 2,103 |
PHP | 13 | 450 | 554 | 1,800 |
JavaScript | 2 | 44 | 81 | 156 |
CSS | 1 | 13 | 18 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 88.67 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 49 | 83.05% |
▷ Protected methods | 10 | 16.95% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default-marker.png | 0.84KB | 1.10KB | 0.00% |
includes/marker-clusterer/images/heart50.png | 2.93KB | 1.96KB | ▼ 33.08% |
includes/marker-clusterer/images/m1.png | 2.93KB | 2.20KB | ▼ 25.07% |
includes/marker-clusterer/images/m2.png | 3.18KB | 2.36KB | ▼ 25.77% |
includes/marker-clusterer/images/m3.png | 3.86KB | 3.06KB | ▼ 20.80% |