Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.29MB] [CPU: ▼13.09ms] Passed 4 tests
Analyzing server-side resources used by Dispensary Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.79 ▼1.11 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.15 ▼3.89 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.78 ▲3.69 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.26 | 43.19 ▼47.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.21 ▲0.35 |
Product Blocks /wp-admin/admin.php?page=dispensary-blocks | 3.22 | 31.34 |
Server storage [IO: ▲5.21MB] [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: 122 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dispensary Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.92 ▼0.46 | 8.39 ▲6.73 | 37.65 ▼3.84 |
Dashboard /wp-admin | 2,219 ▲28 | 4.84 ▼1.06 | 106.93 ▼37.46 | 42.48 ▼1.75 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 41.22 ▲2.96 | 35.27 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,882 | 20.90 ▲2.48 | 894.33 ▲294.61 | 75.89 ▲15.29 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.33 ▲0.10 | 95.95 ▼11.87 | 41.49 ▼1.48 |
Product Blocks /wp-admin/admin.php?page=dispensary-blocks | 929 | 2.01 | 26.26 | 23.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-gear-grid/index.php:310
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-growers-grid/index.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-tinctures-grid/index.php:310
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-topicals-grid/index.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/dist/getting-started/getting-started.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-concentrates-grid/index.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-flowers-grid/index.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-edibles-grid/index.php:311
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dispensary-blocks/src/blocks/block-prerolls-grid/index.php:311
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cannabis, gutenberg, blocks, editor, dispensary
dispensary-blocks/dispensary-blocks.php Passed 13 tests
Analyzing the main PHP file in "Dispensary Blocks" version 1.3
88 characters long description:
Display your WP Dispensary products in style with the new Gutenberg editor for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected25,745 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 10,963 |
CSS | 15 | 2,024 | 50 | 5,211 |
SVG | 15 | 0 | 0 | 3,939 |
JavaScript | 29 | 459 | 450 | 2,941 |
PHP | 11 | 469 | 586 | 2,267 |
Sass | 3 | 72 | 1 | 369 |
XML | 1 | 13 | 5 | 46 |
Bourne Shell | 1 | 1 | 0 | 5 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 225.13KB | 89.07KB | ▼ 60.44% |
dist/getting-started/logo.png | 28.80KB | 14.31KB | ▼ 50.32% |
dist/getting-started/images/wpd-icon.png | 8.26KB | 3.83KB | ▼ 53.61% |
assets/screenshot-2.png | 94.65KB | 36.48KB | ▼ 61.46% |