89% ai-gpt-3-content-generator

Code Review | AI GPT-3 Content Generator

WordPress plugin AI GPT-3 Content Generator scored89%from 54 tests.

About plugin

  • Plugin page: ai-gpt-3-content-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Mar 23, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: cyberlord92 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /897 total downloads

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.00MB] [CPU: ▼11.47ms] Passed 4 tests

An overview of server-side resources used by AI GPT-3 Content Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.82 ▼4.14
Dashboard /wp-admin3.32 ▼0.0345.45 ▼14.67
Posts /wp-admin/edit.php3.37 ▲0.0148.68 ▼1.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.20 ▼24.46
Media Library /wp-admin/upload.php3.24 ▲0.0132.89 ▼2.61

Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AI GPT-3 Content Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.22 ▼0.241.77 ▲0.0742.80 ▲0.46
Dashboard /wp-admin2,210 ▲305.51 ▼0.1485.54 ▼2.5783.81 ▲41.01
Posts /wp-admin/edit.php2,121 ▲211.97 ▼0.0334.45 ▼3.5232.17 ▲0.04
Add New Post /wp-admin/post-new.php6,339 ▲4,81325.82 ▲2.61978.72 ▲380.5253.33 ▲0.97
Media Library /wp-admin/upload.php1,418 ▲244.17 ▲0.0098.84 ▲0.7772.37 ▲30.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: gpt-3, chatgpt, openai, ai, gpt...

ai-gpt-3-content-generator/class-ai-gpt3-content-generator.php 62% from 13 tests

This is the main PHP file of "AI GPT-3 Content Generator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ai-gpt-3-content-generator.php" instead of "class-ai-gpt3-content-generator.php")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin772 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14111327767
JavaScript3003
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.36
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods32
▷ Static methods721.88%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/miniorange.png1.49KB1.34KB▼ 10.35%
assets/img/miniorange-logo.png5.57KB3.46KB▼ 37.79%