Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.27ms] 75% from 4 tests
This is a short check of server-side resources used by WebArtClub AI Image Generator
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,009.44ms on /wp-admin/edit.php?post_type=ai&page=webartclub)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.99 ▼4.13 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.51 ▼6.97 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.35 ▼2.98 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 92.64 ▼6.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.03 ▲0.11 |
Webartclub Settings /wp-admin/edit.php?post_type=ai&page=webartclub | 3.25 | 1,009.44 |
Add New /wp-admin/post-new.php?post_type=ai | 3.32 | 45.07 |
All AI Images /wp-admin/edit.php?post_type=ai | 3.31 | 35.42 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WebArtClub AI Image Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲150 | 13.63 ▼1.13 | 5.11 ▲2.93 | 42.56 ▼2.81 |
Dashboard /wp-admin | 2,241 ▲53 | 5.86 ▲0.96 | 111.51 ▼4.15 | 42.32 ▼4.43 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.99 ▼0.03 | 40.12 ▲3.27 | 34.27 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,554 ▲20 | 18.37 ▼4.75 | 593.80 ▼41.61 | 49.55 ▼2.89 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.24 ▲0.04 | 97.50 ▼9.93 | 46.65 ▲2.56 |
Webartclub Settings /wp-admin/edit.php?post_type=ai&page=webartclub | 908 | 2.07 | 23.72 | 26.78 |
Add New /wp-admin/post-new.php?post_type=ai | 1,622 | 3.52 | 73.10 | 33.55 |
All AI Images /wp-admin/edit.php?post_type=ai | 1,094 | 1.96 | 31.49 | 30.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/webartclub-ai-image-generator/admin/partials/webart-generator-admin-display.php
- > /wp-content/plugins/webartclub-ai-image-generator/public/partials/webart-generator-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webartclub-ai-image-generator/public/class-webart-generator-public.php:108
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: api, text to image, ai generated image, ai, text2image
webartclub-ai-image-generator/webart-generator.php 85% from 13 tests
The main file in "WebArtClub AI Image Generator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("webartclub-ai-image-generator.php" instead of "webart-generator.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin745 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 260 | 564 | 730 |
CSS | 2 | 2 | 8 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 17 | |
▷ Named functions | 17 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin