Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-dispensary/admin/metaboxes/wpd-metabox-product-type.php+88
Trying to get property 'ID' of non-object
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.07ms] Passed 4 tests
This is a short check of server-side resources used by WP Dispensary
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 59.20 ▲20.53 |
Dashboard /wp-admin | 4.11 ▲0.80 | 64.23 ▲17.91 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 72.65 ▲24.03 |
Add New Post /wp-admin/post-new.php | 3.87 ▼2.01 | 46.57 ▼51.98 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 50.08 ▲17.83 |
Products /wp-admin/edit.php?post_type=products | 4.11 | 56.15 |
Categories /wp-admin/edit-tags.php?taxonomy=wpd_categories | 4.04 | 49.80 |
Settings /wp-admin/admin.php?page=wpd-settings | 3.95 | 46.65 |
Vendors /wp-admin/edit-tags.php?taxonomy=vendors | 3.98 | 50.06 |
Server storage [IO: ▲4.10MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 179 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
wpdas_display |
wpdas_advanced |
db_upgraded |
widget_wp_dispensary_widget |
can_compress_scripts |
widget_wp_dispensary_product_search_widget |
wpdas_general |
widget_recent-posts |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Dispensary
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,223 ▲477 | 15.43 ▲1.05 | 6.47 ▲4.62 | 43.27 ▼0.09 |
Dashboard /wp-admin | 2,504 ▲319 | 6.69 ▲1.82 | 133.43 ▲20.26 | 40.92 ▲0.22 |
Posts /wp-admin/edit.php | 2,411 ▲322 | 3.58 ▲1.54 | 59.16 ▲17.62 | 37.59 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,612 ▲98 | 23.15 ▲5.48 | 636.51 ▼17.45 | 36.83 ▼10.64 |
Media Library /wp-admin/upload.php | 1,497 ▲109 | 4.40 ▲0.20 | 82.99 ▼15.97 | 44.41 ▼0.02 |
Products /wp-admin/edit.php?post_type=products | 1,477 | 3.80 | 46.42 | 28.63 |
Categories /wp-admin/edit-tags.php?taxonomy=wpd_categories | 1,537 | 3.62 | 45.86 | 31.94 |
Settings /wp-admin/admin.php?page=wpd-settings | 1,512 | 3.51 | 55.17 | 83.10 |
Vendors /wp-admin/edit-tags.php?taxonomy=vendors | 1,536 | 3.52 | 43.94 | 30.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- can_compress_scripts
- widget_wp_dispensary_widget
- wpdas_advanced
- widget_theysaidso_widget
- widget_wp_dispensary_product_search_widget
- wpdas_display
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- wpdas_general
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-dispensary/admin/partials/wp-dispensary-admin-display.php
- > /wp-content/plugins/wp-dispensary/public/partials/wp-dispensary-public-display.php
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dispensary/admin/class-wp-dispensary-admin.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/admin/wp-dispensary-metaboxes.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dispensary/admin/wp-dispensary-taxonomies.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dispensary/admin/deprecated/wp-dispensary-categories.php:138
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/wp-dispensary.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/admin/deprecated/deprecated-rest-api.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dispensary/admin/deprecated/wp-dispensary-concentrates.php:94
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/admin/wp-dispensary-plugin-upgrade.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/includes/functions/wp-dispensary-settings-functions.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-dispensary/admin/deprecated/deprecated-shortcodes.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-dispensary/wp-dispensary.php Passed 13 tests
Analyzing the main PHP file in "WP Dispensary" version 4.3.0
75 characters long description:
The complete marijuana menu solution for dispensaries and delivery services
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
No dangerous file extensions were detected26,694 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 3,036 | 6,713 | 13,399 |
PO File | 10 | 4,311 | 7,235 | 9,576 |
CSS | 9 | 228 | 98 | 1,203 |
HTML | 2 | 173 | 0 | 850 |
Markdown | 2 | 97 | 0 | 684 |
Sass | 10 | 145 | 0 | 591 |
JavaScript | 5 | 24 | 115 | 378 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 3 | 1.57% |
▷ Public methods | 184 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.66% |
Functions | 277 | |
▷ Named functions | 275 | 99.28% |
▷ Anonymous functions | 2 | 0.72% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 1.33MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ad_dispensary-menusync.png | 17.10KB | 8.16KB | ▼ 52.32% |
admin/deprecated/images/menu-icon.png | 0.61KB | 0.95KB | 0.00% |
public/assets/images/menu-icon.png | 0.61KB | 0.95KB | 0.00% |
assets/screenshot-8.png | 110.12KB | 43.69KB | ▼ 60.32% |
admin/assets/images/wpd-logo.png | 8.69KB | 4.88KB | ▼ 43.88% |