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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.26ms] Passed 4 tests
A check of server-side resources used by AI ChatGPT Content And Image Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.98 ▲0.24 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.96 ▼11.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.51 ▲3.52 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.64 ▼13.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.50 ▲4.65 |
Generate Content /wp-admin/admin.php?page=generator-content | 3.31 | 37.46 |
API Settings /wp-admin/admin.php?page=opaigpt-settings | 3.27 | 32.97 |
Help /wp-admin/admin.php?page=opaigpt-help | 3.27 | 31.11 |
Support /wp-admin/admin.php?page=opaigpt-support | 3.26 | 27.76 |
Generate Image /wp-admin/admin.php?page=generator-image | 3.30 | 30.24 |
Generate Chat /wp-admin/admin.php?page=generator-chat | 3.30 | 31.63 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
AI ChatGPT Content And Image Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.37 ▼1.00 | 1.85 ▲0.10 | 43.89 ▲3.60 |
Dashboard /wp-admin | 2,252 ▲60 | 4.83 ▼0.12 | 102.96 ▼1.75 | 73.14 ▲32.96 |
Posts /wp-admin/edit.php | 2,135 ▲49 | 2.01 ▼0.00 | 37.31 ▲4.50 | 33.31 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,715 ▲201 | 24.62 ▲7.20 | 685.65 ▲42.27 | 66.10 ▲13.59 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 4.23 ▲0.03 | 95.88 ▼0.59 | 83.74 ▲39.98 |
Generate Content /wp-admin/admin.php?page=generator-content | 1,689 | 6.56 | 129.01 | 128.23 |
API Settings /wp-admin/admin.php?page=opaigpt-settings | 917 | 2.19 | 24.37 | 35.42 |
Help /wp-admin/admin.php?page=opaigpt-help | 870 | 2.20 | 26.97 | 57.04 |
Support /wp-admin/admin.php?page=opaigpt-support | 903 | 2.15 | 22.11 | 40.38 |
Generate Image /wp-admin/admin.php?page=generator-image | 1,007 | 1.68 | 24.89 | 32.59 |
Generate Chat /wp-admin/admin.php?page=generator-chat | 935 | 2.14 | 23.31 | 33.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ai-content-image-generator/inc/menu-page/chatgpt-support.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-content-image-generator/inc/menu-page/content-generate.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-content-image-generator/inc/menu-page/generate-chat.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-content-image-generator/inc/menu-page/generate-image.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ai-content-image-generator/inc/menu-page/api-key.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-content-image-generator/inc/enqueue.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/ai-content-image-generator/inc/menu-page/chatgpt-help.php:3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
ai-content-image-generator/ai-chatgpt-content-and-image-generator.php 77% from 13 tests
The main file in "AI ChatGPT Content And Image Generator" v. 1.0.2 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:
- Main file name: Name the main plugin file the same as the plugin slug ("ai-content-image-generator.php" instead of "ai-chatgpt-content-and-image-generator.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 899 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,791 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 117 | 78 | 1,122 |
CSS | 2 | 9 | 2 | 456 |
JavaScript | 3 | 46 | 35 | 213 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu-icon/main-logo.png | 8.62KB | 2.66KB | ▼ 69.09% |
assets/img/menu-icon/main-menu.png | 5.16KB | 1.16KB | ▼ 77.44% |