Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.06MB] [CPU: ▲10.46ms] 75% from 4 tests
This is a short check of server-side resources used by CM Map Locations
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 981.73ms on /wp-admin/admin.php?page=cmloc-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.52 ▲2.06 | 52.90 ▲12.08 |
Dashboard /wp-admin | 5.38 ▲2.08 | 59.88 ▲12.08 |
Posts /wp-admin/edit.php | 5.43 ▲2.08 | 73.51 ▲24.93 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.10 | 97.24 ▼1.20 |
Media Library /wp-admin/upload.php | 5.23 ▲2.01 | 51.66 ▲18.87 |
Settings /wp-admin/admin.php?page=cmloc-settings | 5.62 | 981.73 |
Locations /wp-admin/edit.php?post_type=cmloc_object | 5.35 | 52.24 |
User Guide /wp-admin/admin.php?page=cmloc_about | 5.41 | 452.01 |
Upgrade ➤ /wp-admin/admin.php?page=cmloc_pro | 5.27 | 52.86 |
Server storage [IO: ▲2.30MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options |
---|
cmlocplugin_error |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
cmloc_update_methods |
widget_recent-posts |
widget_cmloc_menuwidget |
widget_cmloc_searchwidget |
Browser metrics Passed 4 tests
A check of browser resources used by CM Map Locations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.35 ▼1.02 | 1.91 ▲0.24 | 30.02 ▼10.75 |
Dashboard /wp-admin | 2,273 ▲85 | 4.88 ▼1.05 | 108.44 ▲3.77 | 50.18 ▲7.53 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.06 ▲0.05 | 41.35 ▲3.02 | 41.08 ▲6.12 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 23.19 ▼0.08 | 672.94 ▼10.24 | 61.07 ▲0.25 |
Media Library /wp-admin/upload.php | 1,455 ▲67 | 4.35 ▲0.10 | 97.09 ▼2.05 | 46.80 ▲1.87 |
Settings /wp-admin/admin.php?page=cmloc-settings | 3,414 | 13.39 | 184.20 | 158.19 |
Locations /wp-admin/edit.php?post_type=cmloc_object | 1,128 | 2.01 | 32.42 | 35.02 |
User Guide /wp-admin/admin.php?page=cmloc_about | 4,087 | 16.50 | 385.67 | 204.21 |
Upgrade ➤ /wp-admin/admin.php?page=cmloc_pro | 1,968 | 2.16 | 40.67 | 47.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- widget_cmloc_searchwidget
- widget_cmloc_menuwidget
- widget_recent-posts
- widget_recent-comments
- cmloc_update_methods
- db_upgraded
- theysaidso_admin_options
- cmlocplugin_error
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/cm-map-locations/view/backend/business/form-icon.php
- > /wp-content/plugins/cm-map-locations/view/frontend/route/common-map-category-filter.php
- > /wp-content/plugins/cm-map-locations/view/frontend/route/index-top.php
- > /wp-content/plugins/cm-map-locations/view/backend/route/metabox-shortcodes.php
- 108× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'com\\cminds\\maplocations\\model\\TaxonomyTerm' not found in wp-content/plugins/cm-map-locations/model/Category.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function getJSLocations() on null in wp-content/plugins/cm-map-locations/view/frontend/route/single-map-canvas.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cm-map-locations/view/frontend/dashboard/msg.php:8
- > PHP Fatal error
Uncaught Error: Class 'com\\cminds\\maplocations\\model\\Labels' not found in wp-content/plugins/cm-map-locations/view/frontend/business/index-after-filters.php:8
- > PHP Fatal error
Uncaught Error: Class 'com\\cminds\\maplocations\\controller\\Controller' not found in wp-content/plugins/cm-map-locations/controller/SidebarController.php:11
- > PHP Notice
Undefined variable: mapId in wp-content/plugins/cm-map-locations/view/frontend/embed/embed-single.php on line 9
- > PHP Notice
Undefined variable: id in wp-content/plugins/cm-map-locations/view/frontend/embed/embed-single.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'com\\cminds\\maplocations\\model\\Labels' not found in wp-content/plugins/cm-map-locations/view/frontend/business/zip-filter.php:9
- > PHP Fatal error
Uncaught Error: Class 'com\\cminds\\maplocations\\metabox\\MetaBox' not found in wp-content/plugins/cm-map-locations/metabox/LocationShortcodesMetabox.php:8
- > PHP Notice
Undefined variable: id in wp-content/plugins/cm-map-locations/view/backend/route/metabox-shortcodes.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cmloc_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmloc_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=cmloc_about
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=cmloc_about
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yx/r/RBH7b7zeA6F.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: mapping, google maps, store locator, business locations, map widget
cm-map-locations/cm-map-locations.php Passed 13 tests
Analyzing the main PHP file in "CM Map Locations" version 2.0.6
63 characters long description:
Manage locations and support location finder using Google Maps.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin18,039 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,449 | 740 | 11,664 |
CSS | 9 | 172 | 28 | 3,037 |
JavaScript | 23 | 687 | 819 | 2,698 |
SVG | 1 | 0 | 0 | 640 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 10 | 17.24% |
▷ Concrete classes | 48 | 82.76% |
▷ Final classes | 0 | 0.00% |
Methods | 639 | |
▷ Static methods | 366 | 57.28% |
▷ Public methods | 577 | 90.30% |
▷ Protected methods | 54 | 8.45% |
▷ Private methods | 8 | 1.25% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 265 | |
▷ Global constants | 1 | 0.38% |
▷ Class constants | 264 | 99.62% |
▷ Public constants | 264 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 0.60MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
package/views/businessdir.png | 30.22KB | 8.77KB | ▼ 70.98% |
package/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
package/views/downloads.png | 34.70KB | 9.25KB | ▼ 73.35% |
package/views/img/assets.png | 16.34KB | 6.92KB | ▼ 57.67% |