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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼21.65ms] Passed 4 tests
This is a short check of server-side resources used by Google Map Multiple Address
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 27.12 ▼16.02 |
Dashboard /wp-admin | 3.20 ▼0.10 | 31.94 ▼22.74 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 38.18 ▼14.82 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 68.37 ▼33.02 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 34.32 ▼3.60 |
Google Map /wp-admin/options-general.php?page=google-map-multiple-address | 3.19 | 28.84 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Map Multiple Address
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲342 | 16.55 ▲2.25 | 12.47 ▲10.68 | 46.04 ▲4.81 |
Dashboard /wp-admin | 2,356 ▲165 | 7.21 ▲1.34 | 139.14 ▲33.14 | 39.29 ▼5.82 |
Posts /wp-admin/edit.php | 2,259 ▲166 | 3.83 ▲1.84 | 60.60 ▲16.58 | 34.44 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,679 ▲140 | 23.28 ▼0.03 | 642.38 ▲6.33 | 33.43 ▼22.28 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.92 ▲0.69 | 105.65 ▲0.27 | 47.30 ▲4.18 |
Google Map /wp-admin/options-general.php?page=google-map-multiple-address | 1,292 | 6.28 | 88.03 | 37.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=google-map-multiple-address
- > Notice in wp-content/plugins/multiple-address-google-map/admin/partials/google-map-multiple-address-admin-display.php+257
Trying to access array offset on value of type bool
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/multiple-address-google-map/public/partials/google-map-multiple-address-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multiple-address-google-map/admin/partials/google-map-multiple-address-admin-display.php:16
- > PHP Fatal error
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
- > GET request to /wp-admin/options-general.php?page=google-map-multiple-address
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?sensor=false&ver=1.0.0 210: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/options-general.php?page=google-map-multiple-address
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?sensor=false&ver=1.0.0 128:248 "InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value"
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #6 (Dispalying the Map at front-end.)
- Screenshots: A description for screenshot #5 is missing in multiple-address-google-map/assets to your readme.txt
multiple-address-google-map/google-map-multiple-address.php 85% from 13 tests
The entry point to "Google Map Multiple Address" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("multiple-address-google-map.php" instead of "google-map-multiple-address.php")
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 detected773 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 235 | 605 | 522 |
JavaScript | 2 | 53 | 91 | 171 |
CSS | 2 | 6 | 12 | 80 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 54.67KB | 21.95KB | ▼ 59.85% |
assets/screenshot-3.png | 30.73KB | 9.62KB | ▼ 68.70% |
assets/screenshot-2.png | 23.88KB | 6.04KB | ▼ 74.73% |
assets/screenshot-1.png | 25.33KB | 8.31KB | ▼ 67.21% |
assets/screenshot-4.png | 104.08KB | 40.69KB | ▼ 60.90% |