90% contentify-ai

Code Review | Contentify AI

WordPress plugin Contentify AI scored90%from 54 tests.

About plugin

  • Plugin page: contentify-ai
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Sep 5, 2023
  • Number of updates: 13
  • Update frequency: every 13.3 days
  • Top authors: alphatrait (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.17ms] Passed 4 tests

This is a short check of server-side resources used by Contentify AI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.06 ▼7.05
Dashboard /wp-admin3.37 ▲0.0647.85 ▼0.54
Posts /wp-admin/edit.php3.48 ▲0.1247.15 ▼1.29
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.63 ▼7.78
Media Library /wp-admin/upload.php3.29 ▲0.0636.20 ▲3.16
Contentify AI /wp-admin/options-general.php?page=contentify_settings3.2632.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contentify AI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.23 ▼1.144.61 ▲2.5643.95 ▼2.30
Dashboard /wp-admin2,210 ▲195.85 ▼0.0599.17 ▼19.8139.61 ▼3.57
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0234.39 ▼0.3332.67 ▼4.56
Add New Post /wp-admin/post-new.php1,536 ▲2223.34 ▲5.85657.19 ▲3.5559.61 ▲6.46
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0195.79 ▲0.7342.24 ▲0.17
Contentify AI /wp-admin/options-general.php?page=contentify_settings7802.0323.0329.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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)
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: chatgpt, ai, ai writer, gpt, contentify...

contentify-ai/index.php 92% from 13 tests

The main PHP file in "Contentify AI" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contentify-ai.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected340 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18557340

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected