Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.29ms] Passed 4 tests
Server-side resources used by Article Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.28 ▼3.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.47 ▼3.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.84 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.43 ▼10.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.69 ▲0.57 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Article Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.21 ▼1.17 | 1.79 ▼0.24 | 45.11 ▼1.53 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼1.17 | 95.10 ▼19.95 | 40.76 ▼6.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 40.57 ▲5.39 | 35.11 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 17.97 ▼5.37 | 626.75 ▼25.88 | 64.90 ▲19.25 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.00 | 95.67 ▼3.60 | 41.96 ▼5.44 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/article-generator/templates/blocks/ai-gen-image/markup.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/article-generator/includes/Abstracts/RESTController.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/article-generator/templates/blocks/ai-complete/markup.php:11
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\BaseModel' not found in wp-content/plugins/article-generator/includes/Contexts/Context.php:12
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\DBSeeder' not found in wp-content/plugins/article-generator/includes/Databases/Seeder/SettingsSeeder.php:13
- > PHP Fatal error
Trait 'ArticleGen\\CBPlugin\\Traits\\Queryable' not found in wp-content/plugins/article-generator/includes/Abstracts/BaseModel.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\DBSeeder' not found in wp-content/plugins/article-generator/includes/Databases/Seeder/ContextsSeeder.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/article-generator/templates/app.php:3
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\RESTController' not found in wp-content/plugins/article-generator/includes/REST/SettingsController.php:17
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\RESTController' not found in wp-content/plugins/article-generator/includes/REST/ContextsController.php:17
- > PHP Fatal error
Uncaught Error: Class 'ArticleGen\\CBPlugin\\Abstracts\\DBMigrator' not found in wp-content/plugins/article-generator/includes/Databases/Migrations/SettingsMigration.php:10
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: article generator, chatgpt, gpt, writing assistant, automated content creation...
article-generator/article-gen.php 77% from 13 tests
The main file in "Article Generator" v. 0.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("article-generator.php" instead of "article-gen.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.8")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,852 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 579 | 1,609 | 2,243 |
PO File | 1 | 132 | 151 | 313 |
JSON | 6 | 0 | 0 | 288 |
CSS | 5 | 1 | 0 | 5 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 27 | |
▷ Abstract classes | 4 | 14.81% |
▷ Concrete classes | 23 | 85.19% |
▷ Final classes | 1 | 4.35% |
Methods | 144 | |
▷ Static methods | 27 | 18.75% |
▷ Public methods | 130 | 90.28% |
▷ Protected methods | 6 | 4.17% |
▷ Private methods | 8 | 5.56% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 19 | |
▷ Global constants | 10 | 52.63% |
▷ Class constants | 9 | 47.37% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/article-gen-logo.png | 30.59KB | 30.62KB | 0.00% |
assets/images/article-gen-logo-icon.png | 1.12KB | 0.90KB | ▼ 19.26% |
build/images/article-gen-logo.2c9e3ee0.png | 30.59KB | 30.62KB | 0.00% |