Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.57ms] Passed 4 tests
Server-side resources used by Dispensary Gear
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.87 ▲2.11 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.11 ▼2.67 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.24 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 96.22 ▼12.88 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.55 ▼1.10 |
Gear /wp-admin/edit.php?post_type=gear | 3.37 | 39.79 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_wpd_gear_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Dispensary Gear
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.74 ▼0.82 | 8.71 ▲6.94 | 42.30 ▼0.93 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▼0.03 | 89.41 ▼11.77 | 41.87 ▼6.45 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.06 | 33.78 ▼1.70 | 33.05 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 22.98 ▲4.60 | 638.15 ▼1.10 | 50.18 ▼34.30 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.21 ▲0.01 | 98.45 ▼3.96 | 43.02 ▼1.57 |
Gear /wp-admin/edit.php?post_type=gear | 1,087 | 1.97 | 29.92 | 31.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_wpd_gear_widget
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dispensary-gear/public/partials/wpd-gear-public-display.php
- > /wp-content/plugins/dispensary-gear/admin/partials/wpd-gear-admin-display.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-data-output.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-metaboxes.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-rest-api.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-post-type.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-gear/admin/wpd-gear-functions.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-taxonomies.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-shortcodes.php:139
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dispensary-gear/admin/class-wpd-gear-widgets.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: wp-dispensary, weed, dispensary, cannabis, ecommerce...
dispensary-gear/wpd-gear.php 77% from 13 tests
The main PHP file in "Dispensary Gear" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dispensary-gear.php" instead of "wpd-gear.php")
- Description: Keep the plugin description shorter than 140 characters (currently 207 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
Good job! No executable or dangerous file extensions detected868 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 300 | 903 | 845 |
CSS | 3 | 4 | 10 | 15 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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 | 32 | |
▷ Named functions | 32 | 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
Using a strong compression for your PNG files is a great way to speed-up 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% |