84% aiwriter

Code Review | AiWriter: Automatic WordPress AI Writer, Copywriting Assistant & Content Repurposer / OpenAI GPT

WordPress plugin AiWriter: Automatic WordPress AI Writer, Copywriting Assistant & Content Repurposer / OpenAI GPT scored84%from 54 tests.

About plugin

  • Plugin page: aiwriter
  • Plugin version: 0.10.3
  • PHP compatiblity: 8.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2023
  • Latest release: Oct 12, 2023
  • Number of updates: 12
  • Update frequency: every 20.8 days
  • Top authors: floriansimeth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,122 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.21ms] Passed 4 tests

A check of server-side resources used by AiWriter: Automatic WordPress AI Writer, Copywriting Assistant & Content Repurposer / OpenAI GPT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.99 ▲1.31
Dashboard /wp-admin3.31 ▼0.0453.54 ▼8.91
Posts /wp-admin/edit.php3.36 ▲0.0049.30 ▼0.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.98 ▼25.78
Media Library /wp-admin/upload.php3.23 ▲0.0033.27 ▼5.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AiWriter: Automatic WordPress AI Writer, Copywriting Assistant & Content Repurposer / OpenAI GPT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.17 ▼0.101.78 ▼0.1543.00 ▲2.11
Dashboard /wp-admin2,192 ▲155.63 ▲0.0290.72 ▲3.6941.64 ▼1.96
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0239.34 ▲2.0835.30 ▲0.36
Add New Post /wp-admin/post-new.php1,537 ▲918.36 ▼4.81628.61 ▼16.8570.36 ▲18.20
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0095.18 ▼4.1442.90 ▼1.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected '|', expecting '{' in wp-content/plugins/aiwriter/aiwriter.php on line 231

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

aiwriter/aiwriter.php 92% from 13 tests

The main PHP script in "AiWriter: Automatic WordPress AI Writer, Copywriting Assistant & Content Repurposer / OpenAI GPT" version 0.10.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("8.0" instead of "8.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin847 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP6146106700
PO File1212696
Markdown114042
CSS3006
JavaScript3003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions1957.58%
▷ Anonymous functions1442.42%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected