Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.35ms] Passed 4 tests
Server-side resources used by Chat with GPT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.34 ▼4.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.64 ▲2.02 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.02 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.88 ▼12.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.02 ▲3.28 |
Chat with GPT /wp-admin/tools.php?page=chat-with-gpt | 3.66 | 321.90 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 494 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_qcg_user_access |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Chat with GPT
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.32 ▼0.03 | 1.74 ▼0.58 | 45.36 ▲1.88 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.07 | 93.69 ▼7.10 | 44.03 ▲3.47 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▲0.04 | 33.26 ▼4.00 | 35.14 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.17 ▲0.04 | 687.03 ▲87.69 | 53.99 ▼4.36 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.13 ▼0.02 | 97.86 ▼10.07 | 42.77 ▼3.00 |
Chat with GPT /wp-admin/tools.php?page=chat-with-gpt | 904 | 2.01 | 23.41 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 259× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\StreamFactory' not found in wp-content/plugins/chat-with-gpt/vendor/php-http/message/src/StreamFactory/SlimStreamFactory.php:16
- > PHP Fatal error
Uncaught Error: Class 'Tectalic\\OpenAi\\Models\\AbstractModel' not found in wp-content/plugins/chat-with-gpt/vendor/tectalic/openai/src/Models/Edits/CreateResponseChoicesItem.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/chat-with-gpt/vendor/php-http/message/src/Authentication/Bearer.php:13
- > PHP Fatal error
Uncaught Error: Class 'Tectalic\\OpenAi\\Models\\AbstractModel' not found in wp-content/plugins/chat-with-gpt/vendor/tectalic/openai/src/Models/ImagesEdits/CreateImageRequest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/chat-with-gpt/vendor/php-http/promise/src/FulfilledPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chat-with-gpt/vendor/tectalic/openai/tests/Unit/Handlers/FineTunesEventsTest.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\UriFactory' not found in wp-content/plugins/chat-with-gpt/vendor/php-http/message/src/UriFactory/DiactorosUriFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'Tectalic\\OpenAi\\Models\\UnstructuredModel' not found in wp-content/plugins/chat-with-gpt/vendor/tectalic/openai/src/Models/FineTunesCancel/CancelFineTuneResponseTrainingFilesItemStatusDetails.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Exception' not found in wp-content/plugins/chat-with-gpt/vendor/php-http/message/src/Exception/UnexpectedValueException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/chat-with-gpt/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #3 in chat-with-gpt/assets to your readme.txt
chat-with-gpt/bootstrap.php 92% from 13 tests
This is the main PHP file of "Chat with GPT" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chat-with-gpt.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected29,908 lines of code in 464 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 378 | 4,911 | 11,097 | 19,816 |
Markdown | 40 | 1,935 | 0 | 3,319 |
YAML | 4 | 132 | 15 | 3,147 |
JSON | 25 | 1 | 0 | 2,681 |
CSS | 2 | 15 | 2 | 438 |
JavaScript | 2 | 37 | 4 | 209 |
PO File | 1 | 47 | 100 | 159 |
SVG | 9 | 0 | 0 | 106 |
XML | 3 | 3 | 4 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 36 | |
Traits | 12 | |
Classes | 309 | |
▷ Abstract classes | 7 | 2.27% |
▷ Concrete classes | 302 | 97.73% |
▷ Final classes | 221 | 73.18% |
Methods | 1,437 | |
▷ Static methods | 186 | 12.94% |
▷ Public methods | 1,227 | 85.39% |
▷ Protected methods | 62 | 4.31% |
▷ Private methods | 148 | 10.30% |
Functions | 63 | |
▷ Named functions | 20 | 31.75% |
▷ Anonymous functions | 43 | 68.25% |
Constants | 137 | |
▷ Global constants | 6 | 4.38% |
▷ Class constants | 131 | 95.62% |
▷ Public constants | 33 | 25.19% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
asset/images/pattern.png | 11.29KB | 4.83KB | ▼ 57.23% |
asset/images/ico_32.png | 0.45KB | 0.29KB | ▼ 34.42% |