Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.01ms] Passed 4 tests
Analyzing server-side resources used by SP Google Maps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.33 ▼5.66 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.12 ▼5.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.89 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.54 ▼20.47 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.63 ▼0.58 |
Maps Settings /wp-admin/edit.php?post_type=sp_google_maps&page=maps-settings | 3.23 | 36.07 |
All Maps /wp-admin/edit.php?post_type=sp_google_maps | 3.30 | 39.45 |
Add New /wp-admin/post-new.php?post_type=sp_google_maps | 3.38 | 48.31 |
Server storage [IO: ▲2.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
spgmSettings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
SP Google Maps: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲31 | 14.69 ▲0.43 | 1.77 ▼0.48 | 44.40 ▲0.50 |
Dashboard /wp-admin | 2,223 ▲43 | 5.62 ▼0.05 | 85.57 ▼12.83 | 38.96 ▼3.57 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.99 ▲0.00 | 38.40 ▲0.86 | 33.44 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 22.98 ▼0.05 | 666.52 ▼18.09 | 61.71 ▲7.67 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.25 ▲0.12 | 98.32 ▼19.73 | 47.12 ▼3.13 |
Maps Settings /wp-admin/edit.php?post_type=sp_google_maps&page=maps-settings | 925 | 2.01 | 25.69 | 61.54 |
All Maps /wp-admin/edit.php?post_type=sp_google_maps | 1,091 | 2.09 | 29.41 | 31.62 |
Add New /wp-admin/post-new.php?post_type=sp_google_maps | 3,123 | 13.21 | 329.86 | 253.13 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- spgmSettings
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sp-google-maps/sp_google_maps.php
- > /wp-content/plugins/sp-google-maps/metaboxes.php
- > /wp-content/plugins/sp-google-maps/admin.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=sp_google_maps
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=geometry&language=en 219: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=sp_google_maps
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=geometry&language=en 148:311 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Create And Publish A New Map), #2 (Publish The Map In A Page Or Post), #3 (Maps Preview (Styled Map)), #4 (Maps Preview (Default Google Style)), #5 (Maps Settings)
sp-google-maps/sp_google_maps.php 85% from 13 tests
"SP Google Maps" version 1.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sp-google-maps.php" instead of "sp_google_maps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,424 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 38 | 97 | 530 |
PO File | 2 | 170 | 172 | 507 |
JavaScript | 4 | 4 | 62 | 213 |
CSS | 4 | 3 | 20 | 100 |
Markdown | 1 | 10 | 0 | 74 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 2.41MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 86.71KB | 25.82KB | ▼ 70.22% |
screenshot-2.png | 28.69KB | 9.82KB | ▼ 65.76% |
screenshot-1.png | 1,112.00KB | 324.90KB | ▼ 70.78% |
screenshot-4.png | 676.02KB | 190.35KB | ▼ 71.84% |
map_marker_icon.png | 2.39KB | 1.20KB | ▼ 49.92% |