Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.48ms] Passed 4 tests
An overview of server-side resources used by AI Image Generator by ChatGPT
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.83 ▼3.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.99 ▼8.80 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.90 ▼10.13 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.17 ▼11.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.57 ▼2.74 |
AI Image /wp-admin/options-general.php?page=bdthemes-ai-image-options | 3.24 | 31.37 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for AI Image Generator by ChatGPT
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▼0.26 | 1.94 ▼0.29 | 43.58 ▼4.62 |
Dashboard /wp-admin | 2,199 ▲29 | 5.65 ▼0.02 | 91.37 ▼6.33 | 39.02 ▼4.74 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.05 | 33.50 ▼4.20 | 38.41 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,841 | 27.80 ▲4.70 | 873.91 ▲144.89 | 62.93 ▲10.11 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▼0.01 | 97.18 ▼6.02 | 43.83 ▼2.74 |
AI Image /wp-admin/options-general.php?page=bdthemes-ai-image-options | 801 | 2.02 | 24.00 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-image/ai-image.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-image/admin/settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_CONTROLLER' not found in wp-content/plugins/ai-image/admin/api.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% 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
6 plugin tags: image, chatgpt, chatbot, ai, bdthemes...
ai-image/ai-image.php 92% from 13 tests
The main file in "AI Image Generator by ChatGPT" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
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
No dangerous file extensions were detected1,023 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 81 | 130 | 792 |
PHP | 4 | 20 | 39 | 145 |
JSON | 2 | 0 | 0 | 78 |
Sass | 2 | 1 | 0 | 8 |
CSS | 2 | 2 | 16 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected