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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.62ms] Passed 4 tests
An overview of server-side resources used by Locatepress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.29 ▼3.09 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.78 ▲3.67 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.36 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 87.97 ▼0.42 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 47.12 ▲12.47 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=map_listing | 3.46 | 39.77 |
Settings /wp-admin/edit.php?post_type=map_listing&page=locatepress_dashboard | 3.49 | 36.00 |
Listing Types /wp-admin/edit-tags.php?taxonomy=listing_type&post_type=map_listing | 3.41 | 41.25 |
Listing Tags /wp-admin/edit-tags.php?taxonomy=listing_tags&post_type=map_listing | 3.40 | 34.00 |
Add new Listing /wp-admin/post-new.php?post_type=map_listing | 5.82 | 74.55 |
All Listings /wp-admin/edit.php?post_type=map_listing | 3.47 | 50.59 |
Server storage [IO: ▲3.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Locatepress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,176 ▲441 | 17.20 ▲3.02 | 20.56 ▲18.85 | 40.71 ▼0.27 |
Dashboard /wp-admin | 2,437 ▲246 | 6.66 ▲1.77 | 172.26 ▲68.67 | 48.96 ▲8.16 |
Posts /wp-admin/edit.php | 2,354 ▲262 | 4.03 ▲1.99 | 78.64 ▲38.03 | 38.03 ▲4.53 |
Add New Post /wp-admin/post-new.php | 1,731 ▲217 | 24.08 ▲6.32 | 610.52 ▼51.13 | 28.37 ▼34.25 |
Media Library /wp-admin/upload.php | 1,487 ▲102 | 5.28 ▲1.08 | 98.40 ▼0.13 | 49.32 ▲6.65 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=map_listing | 1,530 | 3.98 | 60.11 | 29.49 |
Settings /wp-admin/edit.php?post_type=map_listing&page=locatepress_dashboard | 1,575 | 4.18 | 66.64 | 84.33 |
Listing Types /wp-admin/edit-tags.php?taxonomy=listing_type&post_type=map_listing | 1,535 | 4.00 | 62.10 | 30.47 |
Listing Tags /wp-admin/edit-tags.php?taxonomy=listing_tags&post_type=map_listing | 1,499 | 3.94 | 66.93 | 32.71 |
Add new Listing /wp-admin/post-new.php?post_type=map_listing | 7,706 | 26.84 | 1,163.46 | 153.30 |
All Listings /wp-admin/edit.php?post_type=map_listing | 1,393 | 4.14 | 72.47 | 35.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=map_listing
- > Notice in wp-content/plugins/locatepress/admin/class-locatepress-meta-map.php+40
Trying to access array offset on value of type bool
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/locatepress/admin/partials/locatepress-admin-footer.php
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 user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=map_listing
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 232: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=map_listing
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 163:373 "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."
- > GET request to /wp-admin/post-new.php?post_type=map_listing
- > Console-api (severe) in unknown
https://maps.googleapis.com/maps/api/js?key&libraries=places&ver=6.3.1 152:245 "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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
There were no plugin tags found
locatepress/locatepress.php 92% from 13 tests
The principal PHP file in "Locatepress" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin19,516 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 2,536 | 279 | 12,467 |
JavaScript | 11 | 1,284 | 550 | 4,104 |
PHP | 26 | 830 | 768 | 2,260 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 88 | |
▷ Static methods | 12 | 13.64% |
▷ Public methods | 79 | 89.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 10.23% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cpm-logo.png | 6.34KB | 3.19KB | ▼ 49.69% |
admin/images/logo.png | 25.87KB | 9.59KB | ▼ 62.92% |