Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼0.95ms] Passed 4 tests
Server-side resources used by Dispensary Tinctures
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.39 ▲1.19 |
Dashboard /wp-admin | 3.67 ▲0.37 | 53.62 ▼1.29 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 53.70 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 89.16 ▼6.53 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.54 ▲2.84 |
Tinctures /wp-admin/edit.php?post_type=tinctures | 3.58 | 43.51 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_wpd_tinctures_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Dispensary Tinctures
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.63 ▼0.35 | 5.96 ▲3.95 | 44.43 ▼0.01 |
Dashboard /wp-admin | 2,216 ▲31 | 4.87 ▼1.03 | 99.19 ▼16.57 | 38.49 ▼6.83 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▼0.04 | 34.39 ▼0.64 | 33.76 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,521 ▼13 | 23.25 ▲0.16 | 681.55 ▲1.42 | 54.62 ▼4.39 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.21 ▲0.00 | 96.97 ▼41.30 | 44.23 ▼12.68 |
Tinctures /wp-admin/edit.php?post_type=tinctures | 1,076 | 1.92 | 34.15 | 38.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_wpd_tinctures_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dispensary-tinctures/public/partials/wpd-tinctures-public-display.php
- > /wp-content/plugins/dispensary-tinctures/admin/partials/wpd-tinctures-admin-display.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-tinctures/admin/wpd-tinctures-functions.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-data-output.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-post-type.php:96
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-widgets.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-rest-api.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-taxonomies.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-metaboxes.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dispensary-tinctures/admin/class-wpd-tinctures-shortcodes.php:135
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 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
6 plugin tags: dispensary, cbd, marijuana, cannabis, wp-dispensary...
dispensary-tinctures/wpd-tinctures.php 77% from 13 tests
This is the main PHP file of "Dispensary Tinctures" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dispensary-tinctures.php" instead of "wpd-tinctures.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,011 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 328 | 933 | 975 |
CSS | 3 | 6 | 10 | 28 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/menu-icon.png | 0.28KB | 0.23KB | ▼ 17.65% |