Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.86MB] [CPU: ▲1.10ms] 75% from 4 tests
Analyzing server-side resources used by SimpleMap Store Locator
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 521.04ms on /wp-admin/edit.php?post_type=sm-location&page=simplemap-import-export)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.78 | 45.94 ▲6.82 |
Dashboard /wp-admin | 4.24 ▲0.89 | 56.18 ▼5.20 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 58.29 ▲12.64 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 96.28 ▼3.96 |
Media Library /wp-admin/upload.php | 4.10 ▲0.87 | 44.84 ▲6.75 |
Premium Support /wp-admin/edit.php?post_type=sm-location&page=simplemap-help | 4.15 | 391.94 |
Add New /wp-admin/post-new.php?post_type=sm-location | 4.30 | 318.62 |
Import / Export CSV /wp-admin/edit.php?post_type=sm-location&page=simplemap-import-export | 4.15 | 521.04 |
General Options /wp-admin/edit.php?post_type=sm-location&page=simplemap | 4.17 | 310.91 |
Location Categories /wp-admin/edit-tags.php?taxonomy=sm-category&post_type=sm-location | 4.09 | 44.81 |
Location Tags /wp-admin/edit-tags.php?taxonomy=sm-tag&post_type=sm-location | 4.09 | 35.64 |
Locations /wp-admin/edit.php?post_type=sm-location | 4.21 | 44.53 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
SimpleMap_options |
can_compress_scripts |
db_upgraded |
widget_sm_search_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SimpleMap Store Locator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲195 | 15.19 ▲0.62 | 28.29 ▲26.23 | 41.07 ▲2.56 |
Dashboard /wp-admin | 2,250 ▲76 | 5.71 ▲0.18 | 107.41 ▲9.06 | 42.46 ▲0.47 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.57 ▲0.62 | 45.98 ▲6.04 | 37.99 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 24.16 ▲1.31 | 699.39 ▲56.01 | 57.57 ▼13.01 |
Media Library /wp-admin/upload.php | 1,465 ▲65 | 5.23 ▲1.03 | 105.61 ▼4.47 | 42.73 ▼8.36 |
Premium Support /wp-admin/edit.php?post_type=sm-location&page=simplemap-help | 1,162 | 2.42 | 32.60 | 43.99 |
Add New /wp-admin/post-new.php?post_type=sm-location | 4,062 | 9.27 | 288.87 | 207.01 |
Import / Export CSV /wp-admin/edit.php?post_type=sm-location&page=simplemap-import-export | 990 | 2.67 | 34.36 | 34.29 |
General Options /wp-admin/edit.php?post_type=sm-location&page=simplemap | 3,672 | 2.29 | 32.89 | 63.25 |
Location Categories /wp-admin/edit-tags.php?taxonomy=sm-category&post_type=sm-location | 1,336 | 2.92 | 35.01 | 35.78 |
Location Tags /wp-admin/edit-tags.php?taxonomy=sm-tag&post_type=sm-location | 1,305 | 2.75 | 35.10 | 26.62 |
Locations /wp-admin/edit.php?post_type=sm-location | 1,138 | 2.67 | 37.43 | 29.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- SimpleMap_options
- theysaidso_admin_options
- can_compress_scripts
- widget_sm_search_widget
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplemap/simplemap.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplemap/classes/widgets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simplemap/simplemap.php:28
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sm-location
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&language=en®ion=US&ver=6.3.1 276:267 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/post-new.php?post_type=sm-location
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?v=3&key&language=en®ion=US&ver=6.3.1 159:426 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
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
9 plugin tags: maps, google maps, locator, map, locations...
simplemap/simplemap.php Passed 13 tests
"SimpleMap Store Locator" version 2.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
An easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,995 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,409 | 1,688 | 6,164 |
CSS | 3 | 146 | 26 | 820 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 56.19 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 7.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 127 | 93.38% |
▷ Protected methods | 8 | 5.88% |
▷ Private methods | 1 | 0.74% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/black-dot.png | 0.39KB | 0.71KB | 0.00% |
inc/images/teal-dot.png | 0.90KB | 1.02KB | 0.00% |
inc/images/button-red-grad.png | 0.13KB | 0.24KB | 0.00% |
inc/images/red-dot.png | 0.86KB | 1.01KB | 0.00% |
inc/images/star.png | 0.59KB | 0.72KB | 0.00% |