Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.63ms] Passed 4 tests
This is a short check of server-side resources used by Quick Chat GPT
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.24 ▼3.16 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.32 ▼2.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 50.33 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.69 ▼13.11 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 42.18 ▲5.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Quick Chat GPT: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 15.26 ▲0.89 | 1.67 ▼0.27 | 43.98 ▼0.00 |
Dashboard /wp-admin | 2,232 ▲44 | 6.53 ▲1.70 | 124.08 ▲15.75 | 42.01 ▼0.03 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.96 ▲0.96 | 45.59 ▲9.78 | 34.20 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 18.30 ▲0.39 | 707.73 ▼5.04 | 37.10 ▼20.56 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 5.82 ▲1.61 | 118.61 ▲6.59 | 48.61 ▼2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/quick-chat-gpt/quick-chat-gpt.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-chat-gpt/inc/quickchatgpt.class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quick-chat-gpt/template-parts/chat_gpt_style_1.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4 in quick-chat-gpt/assets to your readme.txt
quick-chat-gpt/quick-chat-gpt.php Passed 13 tests
The main file in "Quick Chat GPT" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
A plugin for adding API keys to use with Chat GPT
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,331 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 3 | 0 | 2,071 |
PHP | 3 | 31 | 10 | 247 |
JavaScript | 1 | 6 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin