77% infographic-and-list-builder-ilist

Code Review | AI Infographic Maker OpenAI

WordPress plugin AI Infographic Maker OpenAI scored77%from 54 tests.

About plugin

  • Plugin page: infographic-and-l...
  • Plugin version: 4.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 6, 2016
  • Latest release: Nov 24, 2023
  • Number of updates: 134
  • Update frequency: every 18.9 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /72,050 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: ▲1.21MB] [CPU: ▲3.78ms] Passed 4 tests

Analyzing server-side resources used by AI Infographic Maker OpenAI
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9243.27 ▲0.46
Dashboard /wp-admin4.65 ▲1.3061.93 ▼1.64
Posts /wp-admin/edit.php4.73 ▲1.3766.11 ▲15.92
Add New Post /wp-admin/post-new.php7.18 ▲1.2999.20 ▲0.38
Media Library /wp-admin/upload.php4.58 ▲1.3451.10 ▲17.03
Support /wp-admin/edit.php?post_type=ilist&page=qcopd_ilist_supports4.5549.59
Manage iList Items /wp-admin/edit.php?post_type=ilist4.6350.13
New iList /wp-admin/post-new.php?post_type=ilist5.1369.71
Settings /wp-admin/edit.php?post_type=ilist&page=ilist_settings4.5653.97

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 829 new files
Database: no new tables, 13 new options
New WordPress options
sl_openai_engines
ilisthclpage
db_upgraded
widget_theysaidso_widget
ilist_ot_convrt
can_compress_scripts
sl_openai_frequency_penalty
sl_openai_max_token
widget_recent-posts
sl_openai_presence_penalty
...

Browser metrics Passed 4 tests

AI Infographic Maker OpenAI: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /14,595 ▲11,84813.89 ▼0.456.92 ▲5.3527.05 ▼16.79
Dashboard /wp-admin13,884 ▲11,7075.32 ▼0.35140.40 ▲51.9048.19 ▲7.41
Posts /wp-admin/edit.php13,792 ▲11,6922.42 ▲0.4753.54 ▲14.1837.27 ▲2.98
Add New Post /wp-admin/post-new.php18,055 ▲16,52628.60 ▲5.41879.43 ▲241.4238.73 ▼14.89
Media Library /wp-admin/upload.php13,085 ▲11,6884.58 ▲0.40111.00 ▲9.0745.24 ▲1.69
Support /wp-admin/edit.php?post_type=ilist&page=qcopd_ilist_supports13,3552.3469.3982.27
Manage iList Items /wp-admin/edit.php?post_type=ilist13,2043.95137.2850.73
New iList /wp-admin/post-new.php?post_type=ilist14,8438.66319.41145.69
Settings /wp-admin/edit.php?post_type=ilist&page=ilist_settings13,3732.4969.1451.37

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 13 options in the database
    • widget_theysaidso_widget
    • ilist_ot_convrt
    • db_upgraded
    • sl_openai_temperature
    • theysaidso_admin_options
    • widget_recent-posts
    • sl_openai_presence_penalty
    • sl_openai_max_token
    • sl_openai_engines
    • sl_openai_frequency_penalty
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-chart.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/embed/embedder.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-shortcode.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-asset.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-hook.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-ajax.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-post-type.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/embed/qcld-embed-link.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-frameworks.php
    • > /wp-content/plugins/infographic-and-list-builder-ilist/qc-project-ilist-main.php
  • 71× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/infographic-and-list-builder-ilist/views/infographic-template-five/template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/infographic-and-list-builder-ilist/views/image-template-three/template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/infographic-and-list-builder-ilist/views/infographic-template-thirteen/template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/infographic-and-list-builder-ilist/views/simple-list-two/template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/infographic-and-list-builder-ilist/inc/CMB2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/infographic-and-list-builder-ilist/inc/CMB2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/infographic-and-list-builder-ilist/inc/CMB2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/infographic-and-list-builder-ilist/views/image-template-one/template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/infographic-and-list-builder-ilist/inc/CMB2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/infographic-and-list-builder-ilist/inc/grid-master/Cmb2GridPluginLoad.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: ai, listicle, charts, openai, infographic

infographic-and-list-builder-ilist/qc-project-ilist-main.php 77% from 13 tests

"AI Infographic Maker OpenAI" version 4.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("infographic-and-list-builder-ilist.php" instead of "qc-project-ilist-main.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "4.6")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin101,530 lines of code in 364 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78717,89031,582
CSS702,2651,13129,035
JavaScript323,5853,20715,785
PHP1093,4426,62913,333
JSON4007,075
SVG5102,703
Sass18296261,355
Markdown32080609
YAML193328
XML25425

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.45
Average class complexity16.54
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes79
▷ Abstract classes911.39%
▷ Concrete classes7088.61%
▷ Final classes00.00%
Methods602
▷ Static methods8714.45%
▷ Public methods49782.56%
▷ Protected methods10016.61%
▷ Private methods50.83%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants1460.87%
▷ Class constants939.13%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
132 PNG files occupy 1.84MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qc-support-promo-page/images/premium-theme-coming-soont.png42.28KB15.04KB▼ 64.44%
assets/js/16_pixel.png1.14KB0.41KB▼ 64.42%
qc-support-promo-page/images/seo-help.png28.00KB11.38KB▼ 59.34%
qc-support-promo-page/images/notice-pro.png6.63KB4.80KB▼ 27.49%
qc-support-promo-page/images/icon-pack/service-08.png2.54KB1.42KB▼ 44.28%