84% copymatic

Code Review | Copymatic - AI Content Writer & Generator

WordPress plugin Copymatic - AI Content Writer & Generator scored84%from 54 tests.

About plugin

  • Plugin page: copymatic
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: May 25, 2023
  • Number of updates: 58
  • Update frequency: every 8.3 days
  • Top authors: ryanfaber (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /10,861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.19ms] Passed 4 tests

Server-side resources used by Copymatic - AI Content Writer & Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.46 ▲1.59
Dashboard /wp-admin3.33 ▲0.0344.34 ▼1.49
Posts /wp-admin/edit.php3.38 ▲0.0256.20 ▲10.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.22 ▼6.92
Media Library /wp-admin/upload.php3.25 ▲0.0239.71 ▲6.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Copymatic - AI Content Writer & Generator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲5514.65 ▲0.501.73 ▼0.2945.15 ▲5.14
Dashboard /wp-admin2,244 ▲635.71 ▲0.0690.45 ▼11.3239.72 ▼2.11
Posts /wp-admin/edit.php2,155 ▲522.15 ▲0.2043.40 ▲0.1537.75 ▲0.42
Add New Post /wp-admin/post-new.php1,563 ▲3723.81 ▲0.87701.41 ▲20.3567.49 ▲13.36
Media Library /wp-admin/upload.php1,456 ▲564.33 ▲0.15119.20 ▲12.4747.19 ▲1.49

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/copymatic/copymatic.php:11

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: content writer, ai, content bot, article generator, artificial intelligence...

copymatic/copymatic.php Passed 13 tests

"Copymatic - AI Content Writer & Generator" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Your favorite AI-powered content writer. Generate engaging and quality content from blog articles to landing pages.

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
No dangerous file extensions were detected1,188 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4339466
CSS210376
JavaScript2161346

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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
Namespaces0
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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