79% llama-ai-blog-assistant

Code Review | Llama: AI Blog Assistant

WordPress plugin Llama: AI Blog Assistant scored79%from 54 tests.

About plugin

  • Plugin page: llama-ai-blog-ass...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2023
  • Latest release: Nov 2, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: marketingllama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.17MB] [CPU: ▼44.74ms] Passed 4 tests

A check of server-side resources used by Llama: AI Blog Assistant
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.6613.01 ▼30.64
Dashboard /wp-admin2.84 ▼0.4716.32 ▼32.33
Posts /wp-admin/edit.php2.84 ▼0.5217.83 ▼35.90
Add New Post /wp-admin/post-new.php2.84 ▼3.0518.42 ▼80.08
Media Library /wp-admin/upload.php2.84 ▼0.3916.87 ▼18.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Llama: AI Blog Assistant
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲5014.35 ▼0.181.95 ▼0.0242.41 ▼0.35
Dashboard /wp-admin2,220 ▲405.61 ▲0.0091.98 ▲5.0142.82 ▲6.32
Posts /wp-admin/edit.php2,122 ▲222.05 ▲0.0340.71 ▲6.6135.26 ▼1.51
Add New Post /wp-admin/post-new.php1,539 ▼1022.95 ▲4.88616.11 ▼96.2156.69 ▼5.37
Media Library /wp-admin/upload.php1,425 ▲254.19 ▼0.0498.50 ▲0.9943.51 ▲2.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function WP_Block_Type_Registry::register was called incorrectly. Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Real-time AI Writing Assistant)
You can look at the official readme.txt

llama-ai-blog-assistant/llama-ai-blog-assistant.php 77% from 13 tests

The main PHP script in "Llama: AI Blog Assistant" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "6")
  • Description: The description should be shorter than 140 characters (currently 217 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected34,550 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON30033,434
PHP297134763
JavaScript42846280
Sass214072
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin