Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.38ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Google Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.71 ▲1.06 |
Dashboard /wp-admin | 3.60 ▲0.30 | 64.52 ▲1.64 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 66.13 ▲13.49 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 93.62 ▼8.17 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 43.95 ▲7.01 |
All Maps /wp-admin/edit.php?post_type=wrg_rgm | 3.61 | 45.71 |
Add New /wp-admin/post-new.php?post_type=wrg_rgm | 3.53 | 56.19 |
Settings /wp-admin/edit.php?post_type=wrg_rgm&page=wrg_rgm_settings | 3.43 | 40.17 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_wrgrgm_map_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
wrg_rgm_review |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Google Map
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 14.03 ▼0.70 | 26.54 ▲24.54 | 40.17 ▼2.63 |
Dashboard /wp-admin | 2,238 ▲67 | 5.63 ▲0.12 | 99.23 ▲11.29 | 45.78 ▲7.77 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.97 ▼0.05 | 40.83 ▼1.53 | 38.76 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,573 ▲38 | 18.52 ▲0.17 | 643.33 ▼47.87 | 67.98 ▼13.34 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.24 ▲0.03 | 99.92 ▼1.21 | 44.41 ▲3.03 |
All Maps /wp-admin/edit.php?post_type=wrg_rgm | 1,388 | 5.20 | 79.65 | 31.24 |
Add New /wp-admin/post-new.php?post_type=wrg_rgm | 2,142 | 10.92 | 215.85 | 64.56 |
Settings /wp-admin/edit.php?post_type=wrg_rgm&page=wrg_rgm_settings | 847 | 2.05 | 29.44 | 28.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- wrg_rgm_review
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_wrgrgm_map_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=wrg_rgm
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyBeT8Tw1yb4ii5Vm6B3Z3NSbkCRMsLScNI&libraries=places 235:51 "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=wrg_rgm
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key=AIzaSyBeT8Tw1yb4ii5Vm6B3Z3NSbkCRMsLScNI&libraries=places 153:248 "Google Maps JavaScript API error: RefererNotAllowedMapError\nhttps://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error\nYour site URL to be authorized: /wp-admin/post-new.php"
- > GET request to /wp-admin/post-new.php?post_type=wrg_rgm
- > Javascript (severe) in unknown
https://maps.googleapis.com/maps-api-v3/api/js/54/10/map.js 1:207 Uncaught TypeError: Cannot read properties of undefined (reading 'hasAttribute')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: google map styles, wordpress google map, responsive map, google map, wordpress map...
responsive-google-map/responsive-google-map.php 85% from 13 tests
The main file in "Responsive Google Map" v. 3.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 characters long)
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
Good job! No executable or dangerous file extensions detected1,134 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 363 | 246 | 1,126 |
JavaScript | 2 | 0 | 44 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 2 | 11.76% |
Methods | 80 | |
▷ Static methods | 19 | 23.75% |
▷ Public methods | 65 | 81.25% |
▷ Protected methods | 1 | 1.25% |
▷ Private methods | 14 | 17.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/map-styles/dark.png | 11.59KB | 3.63KB | ▼ 68.72% |
images/map-styles/dark-electric.png | 23.28KB | 6.92KB | ▼ 70.30% |
images/map-styles/aubergine.png | 40.29KB | 11.85KB | ▼ 70.59% |
images/map-styles/light-blue.png | 21.80KB | 6.87KB | ▼ 68.50% |
images/map-styles/grayscale.png | 12.63KB | 3.78KB | ▼ 70.07% |