Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.50ms] Passed 4 tests
Analyzing server-side resources used by ChatGPT Simple Playground
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.99 ▼0.93 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.26 ▼1.12 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.12 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.11 ▼12.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.58 ▲6.30 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ChatGPT Simple Playground
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.19 ▼1.18 | 1.61 ▼0.15 | 39.44 ▼2.37 |
Dashboard /wp-admin | 2,225 ▲34 | 4.87 ▼1.03 | 108.04 ▲8.88 | 37.51 ▼2.81 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.01 | 39.15 ▲4.10 | 34.25 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 18.47 ▲0.11 | 620.58 ▲0.04 | 54.88 ▲3.21 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.16 ▼0.05 | 98.34 ▼0.95 | 44.38 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: text to image, featured image, txt2img, ai, artificial intelligence
kh-chatgpt-frontend-fun/kh-chatgpt-frontend-fun.php Passed 13 tests
The entry point to "ChatGPT Simple Playground" version 1.1.0 is a PHP file that has certain tags in its header comment area
125 characters long description:
This is a simple chatgpt frontend to let user play, you can specify how many times you want to allow user to request per day.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected411 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 129 | 246 | 411 |
CSS | 1 | 0 | 3 | 0 |
JavaScript | 1 | 1 | 3 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin