Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▼4.26ms] Passed 4 tests
A check of server-side resources used by Artist Image Generator - AI image generation plugin for Wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 39.00 ▼3.90 |
Dashboard /wp-admin | 3.66 ▲0.31 | 50.86 ▼11.45 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.31 ▼2.90 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 99.53 ▲2.68 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.37 ▲1.20 |
Image Generator /wp-admin/upload.php?page=artist_image_generator | 3.50 | 36.67 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
plugin-is-valid |
aig-is-valid |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Artist Image Generator - AI image generation plugin for Wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲162 | 13.66 ▼0.69 | 8.40 ▲6.58 | 36.19 ▼6.56 |
Dashboard /wp-admin | 2,243 ▲66 | 5.62 ▼0.02 | 90.70 ▼7.92 | 40.90 ▼7.40 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 1.94 ▼0.01 | 38.53 ▼0.24 | 37.90 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.65 ▲0.02 | 618.70 ▼21.37 | 52.36 ▲2.49 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.22 ▲0.08 | 96.04 ▲1.48 | 39.92 ▼1.20 |
Image Generator /wp-admin/upload.php?page=artist_image_generator | 1,119 | 6.35 | 62.32 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- plugin-is-valid
- theysaidso_admin_options
- db_upgraded
- aig-is-valid
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/artist-image-generator/public/partials/artist-image-generator-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/artist-image-generator/admin/partials/main.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:64749
fabric.Point is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:67126
fabric.Intersection is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:69328
fabric.Color is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:96433
fabric.Shadow is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:98823
fabric.StaticCanvas is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:209244
fabric.Line is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:212138
fabric.Circle is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:214099
fabric.Triangle is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:214858
fabric.Ellipse is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:216407
fabric.Rect is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:218683
fabric.Polyline is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:221518
fabric.Polygon is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:222274
fabric.Path is already defined
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:234510
fabric.Image is already defined.
- > GET request to /wp-admin/upload.php?page=artist_image_generator
- > Console-api (warning) in wp-content/plugins/artist-image-generator/admin/js/artist-image-generator-admin-drawing.js+16:296747
fabric.Text is already defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Add a description for screenshot #5 in artist-image-generator/assets to your readme.txt
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
artist-image-generator/artist-image-generator.php Passed 13 tests
The primary PHP file in "Artist Image Generator - AI image generation plugin for Wordpress" version 1.0.11 is used by WordPress to initiate all plugin functionality
92 characters long description:
A Wordpress plugin using DALL·E 2 to create AI generated royality-free images from scratch.
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
Everything looks great! No dangerous files found in this plugin4,151 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 518 | 1,432 | 2,284 |
Markdown | 4 | 382 | 0 | 872 |
JavaScript | 4 | 141 | 83 | 687 |
CSS | 2 | 35 | 25 | 187 |
JSON | 3 | 0 | 0 | 120 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 38 | 24.68% |
▷ Public methods | 136 | 88.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 11.69% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 19 | |
▷ Global constants | 1 | 5.26% |
▷ Class constants | 18 | 94.74% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin