Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.78ms] Passed 4 tests
This is a short check of server-side resources used by AI Image Lab - Free AI Image Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.98 ▼13.92 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.95 ▲3.42 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.94 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 103.15 ▲9.20 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 38.75 ▲3.07 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpz_ai_images_welcomed |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
AI Image Lab - Free AI Image Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,479 ▼1,256 | 13.08 ▼1.29 | 2.03 ▲0.12 | 45.00 ▲3.39 |
Dashboard /wp-admin | 2,220 ▲38 | 5.87 ▲0.05 | 104.95 ▼0.09 | 43.47 ▼0.43 |
Posts /wp-admin/edit.php | 2,112 ▲26 | 2.00 ▲0.02 | 41.69 ▲1.87 | 34.40 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,554 ▲16 | 23.46 ▲0.38 | 624.40 ▼12.49 | 34.08 ▼24.46 |
Media Library /wp-admin/upload.php | 1,436 ▲45 | 4.35 ▲0.20 | 96.53 ▼10.71 | 47.23 ▲0.64 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- wpz_ai_images_welcomed
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ai-image-generator-lab/includes/prompt_modifiers.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpzAiImageLab' not found in wp-content/plugins/ai-image-generator-lab/assets/js/block-editor.min.asset.php:1
- > PHP Fatal error
Uncaught Error: Class 'WpzAiImageLab' not found in wp-content/plugins/ai-image-generator-lab/includes/upload-ui.php:2
- > PHP Fatal error
Uncaught Error: Class 'WpzAiImageLab' not found in wp-content/plugins/ai-image-generator-lab/assets/css/block-editor.min.asset.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-image-generator-lab/includes/admin/admin-page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ai-image-generator-lab/ai-image-generator-lab.php:66
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in ai-image-generator-lab/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
ai-image-generator-lab/ai-image-generator-lab.php 92% from 13 tests
"AI Image Lab - Free AI Image Generator" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
No dangerous file extensions were detected9,336 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 58 | 32 | 2,567 |
Sass | 14 | 549 | 69 | 2,543 |
JavaScript | 10 | 231 | 7 | 2,018 |
PHP | 9 | 195 | 93 | 1,315 |
Markdown | 1 | 167 | 0 | 621 |
SVG | 25 | 0 | 1 | 221 |
JSON | 1 | 0 | 0 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 12 | 57.14% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/video-thumbnail.png | 97.05KB | 26.09KB | ▼ 73.12% |
assets/img/ai-image-lab-1.png | 174.56KB | 59.19KB | ▼ 66.09% |
assets/img/wp-zone-logo.png | 10.08KB | 5.35KB | ▼ 46.98% |
assets/img/ai-image-lab-images.png | 27.39KB | 28.86KB | 0.00% |
assets/img/ai-image-lab-2.png | 29.91KB | 15.94KB | ▼ 46.70% |