90% handywriter

Code Review | Handywriter – AI-Powered Writing Assistant for WordPress

WordPress plugin Handywriter – AI-Powered Writing Assistant for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: handywriter
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 15, 2022
  • Latest release: Jul 22, 2023
  • Number of updates: 8
  • Update frequency: every 35.0 days
  • Top authors: handyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,321 total downloads

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.46MB] [CPU: ▲3.00ms] Passed 4 tests

An overview of server-side resources used by Handywriter – AI-Powered Writing Assistant for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4545.08 ▼5.77
Dashboard /wp-admin3.77 ▲0.4660.83 ▲7.73
Posts /wp-admin/edit.php3.88 ▲0.5259.02 ▲6.66
Add New Post /wp-admin/post-new.php6.36 ▲0.47105.98 ▲3.39
Media Library /wp-admin/upload.php3.69 ▲0.4648.38 ▲9.77
Settings /wp-admin/admin.php?page=handywriter3.7344.54
Templates /wp-admin/admin.php?page=handywriter-templates3.7744.42

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Handywriter – AI-Powered Writing Assistant for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15714.40 ▲0.022.13 ▲0.3942.78 ▼3.54
Dashboard /wp-admin2,299 ▲1225.62 ▲0.0994.96 ▼7.7639.46 ▼5.12
Posts /wp-admin/edit.php2,207 ▲1072.04 ▲0.0342.01 ▲3.7337.23 ▼1.72
Add New Post /wp-admin/post-new.php1,736 ▲21023.28 ▲0.27633.13 ▼23.8465.63 ▲10.18
Media Library /wp-admin/upload.php1,505 ▲1054.20 ▼0.03124.41 ▲18.5845.03 ▼3.41
Settings /wp-admin/admin.php?page=handywriter2,12913.28235.03151.63
Templates /wp-admin/admin.php?page=handywriter-templates1,96713.3898.8348.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: copywriting, content writing, gpt, ai, copywriter

handywriter/plugin.php 92% from 13 tests

The main PHP script in "Handywriter – AI-Powered Writing Assistant for WordPress" version 1.2.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("handywriter.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,941 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP174575242,932
JavaScript4024
SVG3003
CSS1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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
Namespaces6
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%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants47
▷ Global constants612.77%
▷ Class constants4187.23%
▷ Public constants41100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected