Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.09ms] Passed 4 tests
Analyzing server-side resources used by AI Writer: Content Generator GPT | ChatGPT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 37.67 ▼1.07 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.53 ▼4.14 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.46 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.01 ▼5.27 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.57 ▲2.14 |
Settings /wp-admin/admin.php?page=aiwriter-settings | 3.30 | 32.65 |
Generate Content /wp-admin/admin.php?page=ai-writer | 3.36 | 36.00 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by AI Writer: Content Generator GPT | ChatGPT
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.66 ▼1.02 | 1.79 ▼0.03 | 47.29 ▲0.55 |
Dashboard /wp-admin | 2,286 ▲98 | 5.94 ▲1.04 | 101.51 ▼8.16 | 54.75 ▲11.50 |
Posts /wp-admin/edit.php | 2,169 ▲77 | 2.00 ▲0.00 | 39.38 ▲0.99 | 34.08 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,587 ▲73 | 23.08 ▲5.39 | 755.19 ▲148.51 | 64.16 ▲12.24 |
Media Library /wp-admin/upload.php | 1,468 ▲77 | 4.25 ▼0.03 | 97.32 ▼3.40 | 73.72 ▲27.07 |
Settings /wp-admin/admin.php?page=aiwriter-settings | 1,033 | 2.12 | 29.58 | 33.19 |
Generate Content /wp-admin/admin.php?page=ai-writer | 1,740 | 6.71 | 131.91 | 92.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ai-writer/templates/admin/popup.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function aiwriter_settings_display_title() in wp-content/plugins/ai-writer/templates/admin/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-writer/includes/loader.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ai-writer/assets/php-css/dynamic-styles.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ai-writer/includes/admin-functions.php:330
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ai-writer/includes/core-data.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ai-writer/templates/admin/template-parts/new-content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ai-writer/templates/admin/sidebar.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ai-writer/templates/admin/template-parts/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
7 plugin tags: content generator, chatgpt, ai, openai, chatbot...
ai-writer/ai-writer.php Passed 13 tests
The principal PHP file in "AI Writer: Content Generator GPT | ChatGPT" v. 1.1.1 is loaded by WordPress automatically on each request
60 characters long description:
A simple plugin that generates content using the OpenAI API.
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
Success! There were no dangerous files found in this plugin1,587 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1 | 10 | 674 |
PHP | 12 | 163 | 276 | 659 |
JavaScript | 2 | 25 | 20 | 171 |
SVG | 2 | 0 | 2 | 83 |
PHP code Passed 2 tests
Analyzing 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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/check-v.png | 1.58KB | 0.71KB | ▼ 55.16% |