Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼2.66ms] Passed 4 tests
Analyzing server-side resources used by MIPL Stockist/Store Locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 55.34 ▲14.60 |
Dashboard /wp-admin | 3.82 ▲0.47 | 51.34 ▼10.24 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 59.41 ▲11.35 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 88.40 ▼14.63 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 38.47 ▲2.90 |
Add New /wp-admin/post-new.php?post_type=mipl_sl_stores | 3.91 | 57.11 |
Stores /wp-admin/edit.php?post_type=mipl_sl_stores | 3.74 | 41.61 |
Store Category /wp-admin/edit-tags.php?taxonomy=mipl_sl_store_category&post_type=mipl_sl_stores | 3.69 | 39.45 |
Tools /wp-admin/edit.php?post_type=mipl_sl_stores&page=mipl-tools | 3.66 | 40.64 |
Settings /wp-admin/edit.php?post_type=mipl_sl_stores&page=mipl-sl-settings | 3.81 | 46.17 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 60 new files
Database: 1 new table, 24 new options
New tables |
---|
wp_mipl_store_locator |
New WordPress options |
---|
db_upgraded |
_mipl_sl_display_time_on_list |
_mipl_sl_display_time_on_infowindow |
_mipl_sl_google_map_style |
_mipl_sl_layout_type |
_mipl_sl_display_social_on_infowindow |
_mipl_sl_google_map_type |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MIPL Stockist/Store Locator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲354 | 16.48 ▲1.95 | 23.76 ▲22.00 | 40.37 ▼1.60 |
Dashboard /wp-admin | 2,375 ▲197 | 6.32 ▲0.58 | 113.09 ▲0.62 | 39.49 ▼4.84 |
Posts /wp-admin/edit.php | 2,303 ▲203 | 3.49 ▲1.53 | 45.75 ▲11.92 | 32.92 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 23.24 ▲0.18 | 632.43 ▼45.55 | 28.14 ▼25.11 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.19 ▼0.03 | 81.20 ▼26.03 | 42.81 ▼2.06 |
Add New /wp-admin/post-new.php?post_type=mipl_sl_stores | 2,895 | 7.83 | 184.09 | 75.46 |
Stores /wp-admin/edit.php?post_type=mipl_sl_stores | 1,312 | 3.45 | 49.61 | 31.21 |
Store Category /wp-admin/edit-tags.php?taxonomy=mipl_sl_store_category&post_type=mipl_sl_stores | 1,480 | 3.28 | 40.28 | 30.72 |
Tools /wp-admin/edit.php?post_type=mipl_sl_stores&page=mipl-tools | 1,085 | 3.18 | 38.97 | 28.90 |
Settings /wp-admin/edit.php?post_type=mipl_sl_stores&page=mipl-sl-settings | 3,043 | 3.59 | 55.90 | 85.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_mipl_store_locator
- Zombie WordPress options detected upon uninstall: 24 options
- _mipl_sl_primary_color
- _mipl_sl_layout_type
- _mipl_sl_map_height
- _mipl_sl_distance_unit
- db_upgraded
- _mipl_sl_map_current_location_icon
- widget_theysaidso_widget
- _mipl_sl_google_map_style
- _mipl_sl_display_social_on_infowindow
- _mipl_sl_disable_stores_public_url
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mipl-stockist-store-locator/index.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function mipl_sl_get_label() in wp-content/plugins/mipl-stockist-store-locator/views/mipl-stockist-stores-details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mipl-stockist-store-locator/views/mipl-stockist-admin-settings.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mipl-stockist-store-locator/mipl-stockist-store-locator.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function mipl_sl_get_label() in wp-content/plugins/mipl-stockist-store-locator/views/mipl-stockist-stores-social-media-details.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mipl-stockist-store-locator/single-mipl_sl_stores.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mipl-stockist-store-locator/views/view-mipl-sl-custom-fields-tab-panel.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mipl-stockist-store-locator/views/mipl-stockist-stores-opening-details.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mipl-stockist-store-locator/views/mipl-stockist-widgets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Add Store Details), #2 (Store Categories), #3 (Stockist Settings > General), #4 (Stockist Settings > Layout), #5 (Stockist Settings > Labels), #6 (Stockist Settings > Google Map), #7 (Stockist Layout with Map), #8 (Stockist Layout with Map)
- Donate link: Invalid URI found ("")
mipl-stockist-store-locator/mipl-stockist-store-locator.php 85% from 13 tests
Analyzing the main PHP file in "MIPL Stockist/Store Locator" version 1.2.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,657 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 788 | 100 | 3,475 |
SVG | 3 | 24 | 0 | 102 |
Markdown | 1 | 35 | 0 | 70 |
JavaScript | 6 | 0 | 1 | 6 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 6.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.46MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mipl-sl-marker-4.png | 2.54KB | 1.41KB | ▼ 44.22% |
assets/images/mipl-sl-marker-9.png | 2.54KB | 1.44KB | ▼ 43.34% |
assets/images/mipl_sl_top_filter_with_right_side_listing.png | 34.38KB | 13.95KB | ▼ 59.44% |
assets/images/mipl_sl_leftside_list_and_filter_on_map.png | 37.58KB | 14.37KB | ▼ 61.77% |
assets/images/mipl_sl_top_filter_with_full_map.png | 39.77KB | 16.47KB | ▼ 58.58% |