Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.94ms] Passed 4 tests
Server-side resources used by Block Diffusion - Generate images from text prompts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.44 ▼3.27 |
Dashboard /wp-admin | 3.36 ▲0.05 | 53.22 ▲4.72 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.09 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.74 ▼5.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.17 ▲3.34 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, 8 new options
New WordPress options |
---|
stable_diffusion_options |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
stable_diffusion_settings |
db_upgraded |
Browser metrics Passed 4 tests
Block Diffusion - Generate images from text prompts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.09 | 1.65 ▼0.22 | 43.29 ▼3.81 |
Dashboard /wp-admin | 2,192 ▲18 | 5.56 ▼0.01 | 89.22 ▼6.27 | 39.38 ▼3.22 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▲0.01 | 35.47 ▼2.05 | 32.59 ▼1.41 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,838 | 30.73 ▲7.32 | 1,007.13 ▲311.99 | 50.21 ▼4.84 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▼0.03 | 109.14 ▼4.11 | 47.70 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- stable_diffusion_options
- db_upgraded
- stable_diffusion_settings
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
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stable-diffusion/stable-diffusion.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: midjourney, pokemon, ai, artificial intelligence, generate...
stable-diffusion/stable-diffusion.php Passed 13 tests
The principal PHP file in "Block Diffusion - Generate images from text prompts" v. 0.7.1 is loaded by WordPress automatically on each request
82 characters long description:
Generate unique images from text prompts using machine learning, all in the cloud.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,106 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
TypeScript | 43 | 175 | 84 | 3,220 |
JavaScript | 17 | 43 | 38 | 403 |
PHP | 5 | 17 | 17 | 192 |
CSS | 2 | 5 | 1 | 161 |
JSON | 6 | 0 | 0 | 121 |
Markdown | 1 | 5 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
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
3 compressed PNG files occupy 0.48MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/assets/select.png | 188.96KB | 188.97KB | 0.00% |
src/assets/login.png | 150.21KB | 150.23KB | 0.00% |
build/images/login.e4389b6f.png | 150.21KB | 150.23KB | 0.00% |