Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.73MB] [CPU: ▲4.94ms] Passed 4 tests
This is a short check of server-side resources used by OpenAI For WordPress - #1 Content Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.74 | 48.62 ▲11.73 |
Dashboard /wp-admin | 4.03 ▲0.73 | 56.36 ▲9.09 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 48.89 ▼1.84 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 97.91 ▲2.03 |
Media Library /wp-admin/upload.php | 3.95 ▲0.73 | 43.36 ▲10.48 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for OpenAI For WordPress - #1 Content Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.47 ▲0.29 | 2.27 ▲0.53 | 56.55 ▲13.92 |
Dashboard /wp-admin | 2,215 ▲27 | 5.86 ▲0.95 | 97.45 ▼16.26 | 35.89 ▼7.52 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.97 ▼0.07 | 36.47 ▼4.35 | 34.32 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,557 ▲38 | 19.54 ▼3.46 | 636.49 ▼1.12 | 56.99 ▲7.49 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.35 ▼0.04 | 98.58 ▼1.75 | 44.47 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Playground Settings), #2 (Content Generated), #3 (Content Options), #4 (Template Settings), #5 (Template Editor)
gpt-3-ai-content-generator/wpopenai.php 69% from 13 tests
The main PHP file in "OpenAI For WordPress - #1 Content Generator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 189 characters long)
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gpt-3-ai-content-generator.php" instead of "wpopenai.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
Good job! No executable or dangerous file extensions detected31,576 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 3 | 7,439 | 27,634 |
PHP | 43 | 714 | 1,808 | 3,938 |
CSS | 2 | 0 | 0 | 3 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 24.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 19 | 10.92% |
▷ Public methods | 130 | 74.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 44 | 25.29% |
Functions | 64 | |
▷ Named functions | 33 | 51.56% |
▷ Anonymous functions | 31 | 48.44% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-256.png | 26.64KB | 10.42KB | ▼ 60.90% |
assets/images/onboarding-2.png | 26.37KB | 28.51KB | 0.00% |