78% content-automation-toolkit-cat

Code Review | Content Automation Toolkit

WordPress plugin Content Automation Toolkit scored 78% from 54 tests.

About plugin

  • Plugin page: content-automatio...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2023
  • Latest release: Feb 13, 2023
  • Number of updates: 83
  • Update frequency: every 0.1 days
  • Top authors: bpmediaworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.17MB] [CPU: ▼15.93ms] Passed 4 tests

This is a short check of server-side resources used by Content Automation Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.17 ▼2.93
Dashboard /wp-admin3.13 ▼0.1827.70 ▼21.82
Posts /wp-admin/edit.php3.27 ▼0.0934.84 ▼15.53
Add New Post /wp-admin/post-new.php5.51 ▼0.3876.74 ▼21.70
Media Library /wp-admin/upload.php3.21 ▼0.0231.13 ▼4.68
Social Helper /wp-admin/admin.php?page=catai-social-helper3.1127.38
Settings /wp-admin/admin.php?page=catai-settings3.1124.98
FAQ /wp-admin/admin.php?page=catai-faq3.1124.31
Article Generator /wp-admin/admin.php?page=catai-generator3.1125.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Content Automation Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.24 ▼1.134.60 ▲2.6643.76 ▲2.32
Dashboard /wp-admin2,260 ▲724.88 ▼1.00108.45 ▼1.5090.67 ▲43.71
Posts /wp-admin/edit.php2,143 ▲542.01 ▲0.0241.43 ▲0.7536.13 ▼2.56
Add New Post /wp-admin/post-new.php1,577 ▲6318.73 ▲1.15759.56 ▲141.2865.98 ▲11.01
Media Library /wp-admin/upload.php1,439 ▲514.24 ▲0.02109.41 ▲5.2779.88 ▲38.97
Social Helper /wp-admin/admin.php?page=catai-social-helper8312.0224.8128.27
Settings /wp-admin/admin.php?page=catai-settings8502.0222.4534.13
FAQ /wp-admin/admin.php?page=catai-faq9202.1423.4030.39
Article Generator /wp-admin/admin.php?page=catai-generator8282.0226.6826.20

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=catai-generator
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/admin.php?page=catai-social-helper
    • > Notice in wp-content/plugins/content-automation-toolkit-cat/content-automation-toolkit.php+383
    Undefined variable: no_api_message

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-automation-toolkit-cat/content-automation-toolkit.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

content-automation-toolkit-cat/content-automation-toolkit.php 85% from 13 tests

"Content Automation Toolkit" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("content-automation-toolkit-cat.php" instead of "content-automation-toolkit.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 771 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin777 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15921379
CSS1755355
JavaScript15227
SVG10116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected