Benchmarks
Plugin footprint 48% 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.71MB] [CPU: ▼5.31ms] Passed 4 tests
Server-side resources used by Ai Robot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 41.38 ▲0.73 |
Dashboard /wp-admin | 4.05 ▲0.70 | 53.61 ▼10.39 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 53.82 ▲4.40 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 96.22 ▼15.96 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 44.14 ▲7.38 |
Freemius Debug [v.2.5.7] /wp-admin/admin.php?page=freemius | 4.30 | 40.35 |
Server storage [IO: ▲12.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,638 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_ai_robot_logs |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
ai_robot_global_settings |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Ai Robot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.24 ▼1.05 | 4.95 ▲3.20 | 35.94 ▼4.80 |
Dashboard /wp-admin | 2,243 ▲55 | 4.84 ▼0.20 | 102.09 ▼10.01 | 41.47 ▼1.39 |
Posts /wp-admin/edit.php | 2,126 ▲40 | 2.00 ▲0.02 | 41.24 ▲2.36 | 38.51 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,540 ▲10 | 23.57 ▲0.48 | 632.92 ▼51.90 | 65.80 ▲11.59 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.26 ▲0.15 | 95.21 ▼21.23 | 43.68 ▼4.25 |
Freemius Debug [v.2.5.7] /wp-admin/admin.php?page=freemius | 1,084 | 1.85 | 29.64 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ai-robot/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 1 table
- wp_ai_robot_logs
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
- ai_robot_version_pro
- ai_robot_global_settings
- fs_debug_mode
- can_compress_scripts
- fs_accounts
- widget_recent-comments
- widget_theysaidso_widget
- ...
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
Please fix the following
- 748× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ai-robot/vendor/google/gax/tests/Tests/Unit/FixedSizeCollectionTest.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ai-robot/vendor/google/gax/tests/Tests/Unit/ApiStatusTest.php:38
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/ai-robot/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:24
- > PHP Fatal error
Trait 'Google\\Cloud\\Core\\UriTrait' not found in wp-content/plugins/ai-robot/vendor/google/cloud-core/src/Upload/AbstractUploader.php on line 28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheItemPoolInterface' not found in wp-content/plugins/ai-robot/vendor/google/auth/src/Cache/SysVCacheItemPool.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ai-robot/vendor/google/gax/src/Testing/GeneratedTest.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/ai-robot/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/ai-robot/vendor/google/protobuf/src/Google/Protobuf/Value.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/ai-robot/vendor/google/common-protos/src/Api/Expr/V1alpha1/Expr.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/ai-robot/vendor/google/common-protos/src/Cloud/ServiceManagement/V1/Diagnostic.php:16
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gpt-3, ai, openai, gpt, chatgpt
ai-robot/ai-robot.php Passed 13 tests
The main PHP file in "Ai Robot" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
OpenAI and ChatGPT Content Generator
Code Analysis 97% from 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 plugin125,557 lines of code in 1,537 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,415 | 26,546 | 92,033 | 111,636 |
Markdown | 38 | 1,804 | 0 | 5,461 |
CSS | 17 | 469 | 52 | 3,850 |
JSON | 35 | 0 | 0 | 2,565 |
JavaScript | 15 | 503 | 533 | 1,635 |
YAML | 6 | 41 | 0 | 161 |
Bourne Shell | 4 | 25 | 56 | 88 |
Protocol Buffers | 2 | 14 | 38 | 64 |
Python | 1 | 17 | 43 | 46 |
XML | 3 | 0 | 1 | 42 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 166 | |
Interfaces | 54 | |
Traits | 58 | |
Classes | 1,149 | |
▷ Abstract classes | 24 | 2.09% |
▷ Concrete classes | 1,125 | 97.91% |
▷ Final classes | 26 | 2.31% |
Methods | 8,159 | |
▷ Static methods | 843 | 10.33% |
▷ Public methods | 6,986 | 85.62% |
▷ Protected methods | 282 | 3.46% |
▷ Private methods | 891 | 10.92% |
Functions | 442 | |
▷ Named functions | 223 | 50.45% |
▷ Anonymous functions | 219 | 49.55% |
Constants | 764 | |
▷ Global constants | 126 | 16.49% |
▷ Class constants | 638 | 83.51% |
▷ Public constants | 618 | 96.87% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.51MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/vimeo.png | 27.81KB | 12.03KB | ▼ 56.74% |
assets/images/open-ai.png | 2.83KB | 2.45KB | ▼ 13.49% |
freemius/assets/img/ai-robot.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/bottom-dashed.png | 1.72KB | 0.19KB | ▼ 88.70% |
assets/images/campaigns-list.png | 65.39KB | 18.82KB | ▼ 71.22% |