Benchmarks
Plugin footprint 63% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲10.17MB] [CPU: ▲85.44ms] 25% from 4 tests
An overview of server-side resources used by Mapster WP Maps
The following require your attention
- RAM: Try to keep total memory usage under 10MB (currently 13.64MB on /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map)
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,147.48ms on /wp-admin/edit.php?post_type=mapster-wp-map&page=wordpress-maps-settings)
- Extra RAM: Extra memory usage should kept under 5MB (currently 10.17MB on /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.38 ▲9.91 | 118.34 ▲77.85 |
Dashboard /wp-admin | 13.54 ▲10.19 | 145.49 ▲80.30 |
Posts /wp-admin/edit.php | 13.60 ▲10.24 | 143.43 ▲95.85 |
Add New Post /wp-admin/post-new.php | 16.90 ▲11.01 | 181.52 ▲87.76 |
Media Library /wp-admin/upload.php | 13.57 ▲10.34 | 132.24 ▲97.47 |
Polygons /wp-admin/edit.php?post_type=mapster-wp-polygon | 13.54 | 117.97 |
Popup Templates /wp-admin/edit.php?post_type=mapster-wp-popup | 13.66 | 130.03 |
Add New /wp-admin/post-new.php?post_type=mapster-wp-map | 14.65 | 187.73 |
Map Categories /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map | 13.64 | 138.48 |
Maps /wp-admin/edit.php?post_type=mapster-wp-map | 13.53 | 138.05 |
Locations /wp-admin/edit.php?post_type=mapster-wp-location | 13.54 | 119.01 |
Lines /wp-admin/edit.php?post_type=mapster-wp-line | 13.53 | 122.41 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 13.67 | 114.00 |
Settings /wp-admin/edit.php?post_type=mapster-wp-map&page=wordpress-maps-settings | 13.73 | 2,147.48 |
Categories /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map | 13.64 | 128.64 |
Server storage [IO: ▲35.95MB] [DB: ▲0.03MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- The filesystem usage should be lower than 25MB (currently using 35.95MB)
Filesystem: 1,262 new files
Database: no new tables, 16 new options
New WordPress options |
---|
db_upgraded |
mapster_default_image_text |
fs_debug_mode |
fs_active_plugins |
mapster_settings_page |
post_type_rules_flushed_mapster_wp_maps |
acf_version |
mapster_welcome_message |
can_compress_scripts |
fs_accounts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Mapster WP Maps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲202 | 14.43 ▲0.09 | 1.66 ▼0.18 | 29.89 ▼12.26 |
Dashboard /wp-admin | 2,327 ▲152 | 5.65 ▼0.10 | 105.37 ▼8.28 | 45.18 ▲0.62 |
Posts /wp-admin/edit.php | 2,244 ▲144 | 2.36 ▲0.41 | 48.67 ▲11.51 | 36.86 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6,693 ▲5,014 | 26.15 ▲4.33 | 1,237.81 ▲569.12 | 47.15 ▼6.11 |
Media Library /wp-admin/upload.php | 2,085 ▲685 | 8.44 ▲4.20 | 238.13 ▲136.85 | 53.71 ▲10.58 |
Polygons /wp-admin/edit.php?post_type=mapster-wp-polygon | 1,281 | 2.45 | 40.29 | 36.38 |
Popup Templates /wp-admin/edit.php?post_type=mapster-wp-popup | 1,986 | 2.47 | 52.30 | 39.63 |
Add New /wp-admin/post-new.php?post_type=mapster-wp-map | 11,894 | 14.27 | 1,002.45 | 135.18 |
Map Categories /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map | 2,316 | 8.65 | 198.17 | 42.45 |
Maps /wp-admin/edit.php?post_type=mapster-wp-map | 1,273 | 2.44 | 46.12 | 37.15 |
Locations /wp-admin/edit.php?post_type=mapster-wp-location | 1,284 | 2.45 | 46.93 | 38.69 |
Lines /wp-admin/edit.php?post_type=mapster-wp-line | 1,281 | 2.42 | 44.07 | 38.90 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,198 | 2.03 | 36.49 | 31.17 |
Settings /wp-admin/edit.php?post_type=mapster-wp-map&page=wordpress-maps-settings | 1,208 | 4.30 | 126.54 | 85.72 |
Categories /wp-admin/edit-tags.php?taxonomy=wp-map-category&post_type=mapster-wp-map | 2,351 | 8.47 | 182.65 | 42.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/mapster-wp-maps/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 16 options
- mapster_default_popup
- fs_accounts
- mapster_default_image_text
- widget_recent-posts
- can_compress_scripts
- mapster_settings_page
- db_upgraded
- widget_theysaidso_widget
- post_type_rules_flushed_mapster_wp_maps
- fs_debug_mode
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mapster-wp-maps/public/partials/mapster-wordpress-maps-public-display.php
- > /wp-content/plugins/mapster-wp-maps/admin/includes/mapster-modal-shortcode.php
- 101× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/mapster-wp-maps/includes/acf/includes/acf-hook-functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'WKT' not found in wp-content/plugins/mapster-wp-maps/includes/geo-php/lib/adapters/EWKT.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mapster-wp-maps/includes/acf-code-field/acf-code-field.php:16
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/mapster-wp-maps/includes/acf-code-field/acf-code-field-v4.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapster-wp-maps/includes/acf/includes/forms/form-comment.php:34
- > PHP Fatal error
Uncaught Error: Class 'Collection' not found in wp-content/plugins/mapster-wp-maps/includes/geo-php/lib/geometry/GeometryCollection.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_get_setting() in wp-content/plugins/mapster-wp-maps/includes/acf/includes/admin/views/html-notice-upgrade.php:6
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/mapster-wp-maps/includes/acf/includes/fields/class-acf-field-taxonomy.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/mapster-wp-maps/includes/acf/includes/acf-field-functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'GeoAdapter' not found in wp-content/plugins/mapster-wp-maps/includes/geo-php/lib/adapters/KML.class.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=mapster-wp-map
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=mapster-wp-map - [.WebGL-0x26a00261ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
- > GET request to /wp-admin/post-new.php?post_type=mapster-wp-map
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=mapster-wp-map - [.WebGL-0x26a00261ff00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)
Optimizations
Plugin configuration 96% from 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
8 plugin tags: real estate, gl js, mapbox, interactive map, map shortcode...
mapster-wp-maps/mapster-wordpress-maps.php 92% from 13 tests
Analyzing the main PHP file in "Mapster WP Maps" version 1.2.38
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mapster-wp-maps.php" instead of "mapster-wordpress-maps.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin284,685 lines of code in 1,111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 336 | 13,226 | 11,475 | 103,662 |
PHP | 321 | 17,763 | 37,919 | 73,002 |
PO File | 43 | 34,700 | 59,965 | 69,173 |
HTML | 182 | 3,752 | 12 | 22,363 |
CSS | 141 | 1,431 | 1,839 | 15,223 |
Markdown | 10 | 362 | 0 | 799 |
SVG | 74 | 1 | 1 | 311 |
Pascal | 1 | 43 | 162 | 95 |
JSON | 1 | 0 | 0 | 48 |
Bourne Shell | 1 | 0 | 1 | 5 |
YAML | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 35.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 193 | |
▷ Abstract classes | 7 | 3.63% |
▷ Concrete classes | 186 | 96.37% |
▷ Final classes | 0 | 0.00% |
Methods | 2,452 | |
▷ Static methods | 207 | 8.44% |
▷ Public methods | 1,979 | 80.71% |
▷ Protected methods | 43 | 1.75% |
▷ Private methods | 430 | 17.54% |
Functions | 587 | |
▷ Named functions | 574 | 97.79% |
▷ Anonymous functions | 13 | 2.21% |
Constants | 161 | |
▷ Global constants | 114 | 70.81% |
▷ Class constants | 47 | 29.19% |
▷ Public constants | 47 | 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
21 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/acf/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |
public/images/icons/facebook.png | 2.26KB | 0.64KB | ▼ 71.87% |
includes/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
admin/images/logo-Mapster.png | 93.35KB | 36.58KB | ▼ 60.82% |