84% innovator-ai

Code Review | Innovator AI

WordPress plugin Innovator AI scored84%from 54 tests.

About plugin

  • Plugin page: innovator-ai
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2022
  • Latest release: Apr 7, 2023
  • Number of updates: 11
  • Update frequency: every 9.1 days
  • Top authors: Maniruzzaman Akash (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /1,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.42ms] Passed 4 tests

Server-side resources used by Innovator AI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.11 ▲2.41
Dashboard /wp-admin3.53 ▲0.1955.33 ▼7.55
Posts /wp-admin/edit.php3.58 ▲0.2347.33 ▼6.33
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.87 ▼10.19
Media Library /wp-admin/upload.php3.39 ▲0.1640.35 ▲4.47

Server storage [IO: ▲5.59MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
db_upgraded
innovator_ai_settings
can_compress_scripts
innovator_ai_setting_seeder_ran
widget_theysaidso_widget
innovator_ai_installed
innovator_ai_version
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Innovator AI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.25 ▼0.101.91 ▲0.2839.91 ▼1.61
Dashboard /wp-admin2,210 ▲305.56 ▼0.1287.52 ▼9.8678.62 ▲38.64
Posts /wp-admin/edit.php2,130 ▲301.98 ▲0.0435.67 ▼1.3038.02 ▲1.97
Add New Post /wp-admin/post-new.php1,591 ▲6523.98 ▲0.17783.21 ▲83.6642.09 ▼8.96
Media Library /wp-admin/upload.php1,430 ▲304.20 ▲0.02101.00 ▲2.9179.41 ▲34.63
Dashboard /wp-admin/admin.php?page=innovator-ai#/1,08610.41236.5891.30
Settings /wp-admin/admin.php?page=innovator-ai#/settings1,21311.85126.2892.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-comments
    • innovator_ai_setting_seeder_ran
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • innovator_ai_installed
    • innovator_ai_settings
    • innovator_ai_version

Smoke tests 75% from 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 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 items
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'WpInnovator\\InnovatorAi\\Traits\\InputSanitizer' not found in wp-content/plugins/innovator-ai/includes/Settings/Manager.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/innovator-ai/templates/blocks/text-generator/markup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/innovator-ai/includes/Abstracts/RESTController.php:12
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/innovator-ai/templates/blocks/text-generator/markup.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/innovator-ai/templates/blocks/text-generator/markup.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WpInnovator\\InnovatorAi\\Abstracts\\RESTController' not found in wp-content/plugins/innovator-ai/includes/REST/SettingsController.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/innovator-ai/templates/blocks/text-generator/markup.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WpInnovator\\InnovatorAi\\Abstracts\\DBSeeder' not found in wp-content/plugins/innovator-ai/includes/Databases/Seeder/SettingsSeeder.php:14
    • > PHP Fatal error
      Trait 'WpInnovator\\InnovatorAi\\Traits\\Queryable' not found in wp-content/plugins/innovator-ai/includes/Abstracts/BaseModel.php on line 13
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/innovator-ai/templates/blocks/text-generator/markup.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

The principal PHP file in "Innovator AI" v. 1.2.0 is loaded by WordPress automatically on each request
111 characters long description:
Your Virtual AI assistant to make your WordPress content automation journey smooth and beautiful using Open AI.

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 plugin1,397 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP333501,1181,321
JSON20068
CSS3106
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.96
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces0
Traits2
Classes21
▷ Abstract classes419.05%
▷ Concrete classes1780.95%
▷ Final classes15.88%
Methods106
▷ Static methods2422.64%
▷ Public methods9791.51%
▷ Protected methods21.89%
▷ Private methods76.60%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants16
▷ Global constants1062.50%
▷ Class constants637.50%
▷ Public constants6100.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
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png25.38KB25.40KB0.00%
assets/images/logo-sm.png22.06KB22.05KB0.01%
assets/images/logo-icon.png2.18KB1.72KB▼ 21.16%