Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▲1.59ms] 75% from 4 tests
This is a short check of server-side resources used by AiBud WP - ChatGPT, OpenAI, Content & Image Generator WordPress plugin
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 588.86ms on /wp-admin/admin.php?page=ai_buddy_gopro)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.87 ▲1.39 |
Dashboard /wp-admin | 3.68 ▲0.37 | 61.96 ▲12.27 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 50.75 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 90.07 ▼4.97 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 42.22 ▲7.42 |
Content Builder /wp-admin/admin.php?page=ai_buddy_content_builder | 3.60 | 39.15 |
Settings /wp-admin/admin.php?page=ai_buddy_settings | 3.56 | 37.04 |
Image Generator /wp-admin/admin.php?page=ai_buddy_image_generator | 3.64 | 38.61 |
Playground /wp-admin/admin.php?page=ai_buddy_playground | 3.54 | 36.87 |
Upgrade /wp-admin/admin.php?page=ai_buddy_gopro | 3.62 | 588.86 |
Server storage [IO: ▲0.84MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 116 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
notification_enqueue |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for AiBud WP - ChatGPT, OpenAI, Content & Image Generator WordPress plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 13.30 ▼1.23 | 1.51 ▼0.02 | 42.64 ▲4.15 |
Dashboard /wp-admin | 2,328 ▲151 | 4.93 ▼0.71 | 90.75 ▼7.86 | 85.08 ▲38.37 |
Posts /wp-admin/edit.php | 2,235 ▲135 | 2.39 ▲0.35 | 38.07 ▼4.67 | 61.10 ▲23.04 |
Add New Post /wp-admin/post-new.php | 6,607 ▲5,070 | 28.17 ▲5.11 | 885.92 ▲236.62 | 48.57 ▲3.08 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 4.58 ▲0.39 | 99.68 ▲5.86 | 89.81 ▲50.49 |
Content Builder /wp-admin/admin.php?page=ai_buddy_content_builder | 2,697 | 2.12 | 31.11 | 77.26 |
Settings /wp-admin/admin.php?page=ai_buddy_settings | 1,570 | 2.03 | 31.27 | 48.68 |
Image Generator /wp-admin/admin.php?page=ai_buddy_image_generator | 3,839 | 1.93 | 29.48 | 41.97 |
Playground /wp-admin/admin.php?page=ai_buddy_playground | 1,564 | 1.92 | 27.78 | 39.86 |
Upgrade /wp-admin/admin.php?page=ai_buddy_gopro | 1,106 | 2.16 | 28.58 | 44.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- notification_enqueue
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/meta-boxes/woocommerce.php:3
- > PHP Warning
Use of undefined constant AI_BUDDY_PATH - assumed 'AI_BUDDY_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/page-templates/content-builder/content-builder.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/navigation.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/page-templates/gopro.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/page-templates/content-builder/bulk-content-builder.php:3
- > PHP Warning
require(AI_BUDDY_PATH/includes/class-ai-buddy-init.php): failed to open stream: No such file or directory in wp-content/plugins/aibuddy-openai-chatgpt/includes/class-ai-buddy.php on line 48
- > PHP Fatal error
Uncaught Error: Class 'ANP\\Popup\\ItemBase' not found in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin-notifications-popup/classes/Popup/Theme/ItemStarterTheme.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/page-templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'ANP\\Popup\\ItemBase' not found in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin-notifications-popup/classes/Popup/Plugin/ItemRate.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/aibuddy-openai-chatgpt/includes/admin/error-message.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in aibuddy-openai-chatgpt/assets to your readme.txt
aibuddy-openai-chatgpt/aibuddy-openai-chatgpt.php 92% from 13 tests
The main PHP file in "AiBud WP - ChatGPT, OpenAI, Content & Image Generator WordPress plugin" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,504 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 1,092 | 736 | 6,956 |
CSS | 3 | 84 | 2 | 2,782 |
JavaScript | 14 | 41 | 20 | 1,595 |
JSON | 2 | 0 | 0 | 60 |
SVG | 8 | 0 | 0 | 57 |
Markdown | 1 | 32 | 0 | 54 |
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.31 |
Average class complexity | 10.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 18 | 39.13% |
Methods | 296 | |
▷ Static methods | 68 | 22.97% |
▷ Public methods | 232 | 78.38% |
▷ Protected methods | 47 | 15.88% |
▷ Private methods | 17 | 5.74% |
Functions | 29 | |
▷ Named functions | 3 | 10.34% |
▷ Anonymous functions | 26 | 89.66% |
Constants | 21 | |
▷ Global constants | 9 | 42.86% |
▷ Class constants | 12 | 57.14% |
▷ Public constants | 11 | 91.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.11MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ai-buddy.png | 1.69KB | 1.76KB | 0.00% |
assets/images/ai-buddy-first-screen.png | 111.07KB | 120.17KB | 0.00% |