Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.73MB] [CPU: ▲1.59ms] Passed 4 tests
Analyzing server-side resources used by MK Google Directions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 42.67 ▼4.55 |
Dashboard /wp-admin | 4.14 ▲0.84 | 51.38 ▲4.42 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 55.38 ▲4.90 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 102.77 ▲1.57 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 40.81 ▲7.79 |
Settings /wp-admin/edit.php?post_type=mkgd&page=mkgd_settings | 4.32 | 38.87 |
All MK-GD /wp-admin/edit.php?post_type=mkgd | 4.11 | 40.40 |
Add New /wp-admin/post-new.php?post_type=mkgd | 4.52 | 54.19 |
Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 371 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MK Google Directions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 14.88 ▲0.23 | 25.26 ▲23.47 | 39.89 ▲0.09 |
Dashboard /wp-admin | 2,248 ▲66 | 4.98 ▼0.88 | 111.82 ▲9.37 | 42.52 ▼3.01 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.11 ▲0.06 | 43.33 ▲8.08 | 37.38 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,391 ▼142 | 18.27 ▼4.95 | 546.91 ▼119.69 | 48.94 ▼3.90 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.28 ▲0.04 | 96.34 ▼2.52 | 40.67 ▼4.82 |
Settings /wp-admin/edit.php?post_type=mkgd&page=mkgd_settings | 1,272 | 2.29 | 30.19 | 30.90 |
All MK-GD /wp-admin/edit.php?post_type=mkgd | 1,104 | 1.99 | 32.92 | 26.63 |
Add New /wp-admin/post-new.php?post_type=mkgd | 1,761 | 4.83 | 95.91 | 91.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/google-distance-calculator/mk-google-directions.php
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-distance-calculator/lib/mkgd-post-type.php:57
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/google-distance-calculator/lib/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=mkgd
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&key&ver=1.0 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"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in google-distance-calculator/assets to your readme.txt
google-distance-calculator/mk-google-directions.php 85% from 13 tests
"MK Google Directions" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 268 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("google-distance-calculator.php" instead of "mk-google-directions.php")
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
No dangerous file extensions were detected52,364 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 61 | 2,212 | 6,451 | 7,542 |
CSS | 13 | 266 | 1,191 | 4,563 |
JSON | 2 | 0 | 0 | 4,264 |
JavaScript | 9 | 368 | 600 | 1,530 |
Sass | 17 | 305 | 29 | 1,407 |
Markdown | 3 | 239 | 0 | 735 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 18.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 9 | 13.24% |
▷ Concrete classes | 59 | 86.76% |
▷ Final classes | 0 | 0.00% |
Methods | 536 | |
▷ Static methods | 88 | 16.42% |
▷ Public methods | 444 | 82.84% |
▷ Protected methods | 89 | 16.60% |
▷ Private methods | 3 | 0.56% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
lib/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
lib/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |