Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by ContentBot AI Writer (ChatGPT, GPT3, GPT4)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 35.56 ▼4.98 |
Dashboard /wp-admin | 3.43 ▲0.09 | 46.56 ▼15.68 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.76 ▼0.15 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 93.59 ▼5.97 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.96 ▲3.04 |
Help /wp-admin/admin.php?page=wp-content-bot-help | 3.34 | 32.89 |
ContentBot /wp-admin/admin.php?page=wp-content-bot-menu | 3.32 | 35.77 |
Server storage [IO: ▲39.87MB] [DB: ▲0.07MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- The filesystem usage should be lower than 25MB (currently using 39.87MB)
Filesystem: 2,049 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
cbai_website |
cbai_version |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ContentBot AI Writer (ChatGPT, GPT3, GPT4): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.67 ▲0.27 | 1.64 ▼0.19 | 35.49 ▼7.60 |
Dashboard /wp-admin | 2,222 ▲47 | 5.60 ▼0.11 | 90.69 ▼22.06 | 41.43 ▼6.16 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.04 ▲0.07 | 41.63 ▲2.67 | 35.94 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6,403 ▲4,868 | 27.91 ▲4.69 | 856.01 ▲193.68 | 35.70 ▼24.04 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.16 ▼0.06 | 94.87 ▼3.07 | 44.17 ▲2.10 |
Help /wp-admin/admin.php?page=wp-content-bot-help | 1,260 | 1.98 | 24.86 | 46.70 |
ContentBot /wp-admin/admin.php?page=wp-content-bot-menu | 1,540 | 2.31 | 29.60 | 42.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-bot/content-bot.php:102
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: artificial intelligence, contentbot, ai content, chatgpt, gpt3...
content-bot/content-bot.php 85% from 13 tests
The main PHP file in "ContentBot AI Writer (ChatGPT, GPT3, GPT4)" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin73,636 lines of code in 2,001 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 20 | 3,445 | 143 | 43,553 |
JavaScript | 16 | 2,857 | 2,971 | 18,232 |
SVG | 1,956 | 0 | 0 | 6,814 |
Sass | 1 | 5 | 0 | 1,988 |
JSON | 1 | 0 | 0 | 1,955 |
PHP | 7 | 389 | 233 | 1,094 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-icon.png | 0.60KB | 0.60KB | 0.00% |
img/instruct-icon.png | 3.85KB | 3.08KB | ▼ 20.02% |
img/squarel.png | 6.01KB | 3.29KB | ▼ 45.32% |
img/cb-icon.png | 6.01KB | 3.29KB | ▼ 45.32% |
img/cb-icon-instruct.png | 3.85KB | 3.08KB | ▼ 20.02% |