84% cibeles-ai

Code Review | CIBELES AI

WordPress plugin CIBELES AI scored84%from 54 tests.

About plugin

  • Plugin page: cibeles-ai
  • Plugin version: 1.8.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2023
  • Latest release: Jul 18, 2023
  • Number of updates: 38
  • Update frequency: every 3.1 days
  • Top authors: soportecibeles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /947 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▲299.37ms] 75% from 4 tests

This is a short check of server-side resources used by CIBELES AI
The following require your attention
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 299.37ms on /wp-admin/options-general.php?page=cibeles_ai)
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.16 ▲4.50
Dashboard /wp-admin3.59 ▲0.29445.73 ▲399.82
Posts /wp-admin/edit.php3.64 ▲0.29455.66 ▲405.83
Add New Post /wp-admin/post-new.php6.13 ▲0.25476.23 ▲387.34
Media Library /wp-admin/upload.php3.45 ▲0.23498.60 ▲462.18
Cibeles AI /wp-admin/options-general.php?page=cibeles_ai3.43416.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CIBELES AI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.63 ▲0.011.75 ▲0.2244.52 ▼1.63
Dashboard /wp-admin2,210 ▲224.87 ▼1.03111.18 ▲9.0342.37 ▼1.94
Posts /wp-admin/edit.php2,093 ▲71.96 ▼0.0536.19 ▲1.0731.83 ▼6.10
Add New Post /wp-admin/post-new.php1,537 ▲423.21 ▼0.11660.61 ▲1.4753.70 ▼5.53
Media Library /wp-admin/upload.php1,395 ▲44.29 ▲0.0794.37 ▼4.7944.41 ▲2.63
Cibeles AI /wp-admin/options-general.php?page=cibeles_ai1,1912.1527.3028.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cibeles-ai/options.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

cibeles-ai/cibeles-ai.php Passed 13 tests

Analyzing the main PHP file in "CIBELES AI" version 1.8.2
99 characters long description:
Asistente de redacción de entradas de inteligencia artificial para Wordpress hecho por cibeles.net

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,552 lines of code in 98 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript311731902,739
SVG1002,671
PO File106748432,386
JavaScript28226611,361
PHP189936808
JSON680207
CSS2188174
Markdown1570154
HTML110052

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo-ai.cibeles.net.png10.37KB5.60KB▼ 45.99%