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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.13MB] [CPU: ▼7.88ms] Passed 4 tests
Analyzing server-side resources used by GPT Content Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.57 ▼7.40 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.65 ▲0.61 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.56 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.69 | 71.72 ▼26.41 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.91 ▲2.88 |
Wp OpenAI /wp-admin/options-general.php?page=wpopenai-configkey | 3.26 | 34.75 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GPT Content Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.75 ▼0.61 | 1.72 ▼0.42 | 42.88 ▼1.11 |
Dashboard /wp-admin | 2,238 ▲53 | 4.88 ▼0.02 | 106.49 ▼14.81 | 41.01 ▼5.81 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.19 ▲0.19 | 35.60 ▼1.52 | 34.03 ▼3.42 |
Add New Post /wp-admin/post-new.php | 6,303 ▲4,761 | 19.89 ▼3.03 | 840.76 ▲180.15 | 52.18 ▼1.57 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.24 ▲0.01 | 106.20 ▲4.66 | 44.56 ▲2.66 |
Wp OpenAI /wp-admin/options-general.php?page=wpopenai-configkey | 886 | 2.05 | 24.77 | 37.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gpt-content-generator/openai.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gpt-content-generator/templates/enterdata.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=wpopenai-configkey
- > Network (severe)
wp-content/plugins/gpt-content-generator/assets/js/wpopenai.js?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: ai, feature image generator, content generator
gpt-content-generator/openai.php 85% from 13 tests
"GPT Content Generator" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 198 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gpt-content-generator.php" instead of "openai.php")
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
There were no executable files found in this plugin554 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 74 | 29 | 335 |
CSS | 1 | 1 | 0 | 105 |
JavaScript | 1 | 3 | 1 | 66 |
Markdown | 1 | 21 | 0 | 47 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/blue-dark-logo.png | 112.49KB | 55.68KB | ▼ 50.50% |
assets/images/logowhite.png | 6.83KB | 3.92KB | ▼ 42.68% |