Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.16ms] Passed 4 tests
Server-side resources used by HT Blocks - Absolute Gutenberg Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.03 ▼1.98 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.00 ▼4.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.89 ▼4.79 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 101.36 ▼9.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.53 ▲3.62 |
All Accordions /wp-admin/edit.php?post_type=wphash_accordion | 3.36 | 42.53 |
Categories /wp-admin/edit-tags.php?taxonomy=accordion_cat&post_type=wphash_accordion | 3.31 | 36.33 |
Add New Accordion /wp-admin/post-new.php?post_type=wphash_accordion | 3.44 | 52.97 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HT Blocks - Absolute Gutenberg Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 14.02 ▼0.28 | 7.90 ▲6.28 | 41.36 ▼0.80 |
Dashboard /wp-admin | 2,249 ▲46 | 4.88 ▼0.05 | 105.58 ▼5.73 | 43.55 ▲3.57 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.05 ▲0.03 | 35.54 ▼4.85 | 30.75 ▼5.18 |
Add New Post /wp-admin/post-new.php | 1,573 ▲42 | 23.99 ▲0.94 | 640.07 ▼74.57 | 33.99 ▼23.18 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.15 ▼0.06 | 113.09 ▼13.68 | 48.07 ▼1.80 |
All Accordions /wp-admin/edit.php?post_type=wphash_accordion | 1,109 | 1.93 | 32.97 | 30.07 |
Categories /wp-admin/edit-tags.php?taxonomy=accordion_cat&post_type=wphash_accordion | 1,308 | 2.14 | 29.59 | 28.22 |
Add New Accordion /wp-admin/post-new.php?post_type=wphash_accordion | 2,295 | 7.60 | 200.09 | 63.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-blocks/src/testimonial/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-blocks/src/accordion/index.php:55
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: guten blocks, absolute gutenberg blocks, blocks for gutenberg, gutenberg blocks, gutenberg
ht-blocks/plugin.php 85% from 13 tests
"HT Blocks - Absolute Gutenberg Blocks" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ht-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin30,855 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 6,153 | 1,678 | 27,398 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 4 | 127 | 393 | 509 |
PHP | 4 | 51 | 44 | 277 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/assets/img/icon1.png | 2.39KB | 1.55KB | ▼ 35.40% |
dist/assets/img/icon2.png | 2.85KB | 1.98KB | ▼ 30.53% |
dist/assets/img/pricing-ribon.png | 1.72KB | 1.72KB | 0.00% |
dist/assets/img/icon3.png | 2.31KB | 1.56KB | ▼ 32.52% |
dist/assets/img/pricebg1.png | 14.34KB | 9.43KB | ▼ 34.25% |