77% bertha-ai-free

Code Review | BERTHA AI. Your AI co-pilot for WordPress and Chrome

WordPress plugin BERTHA AI. Your AI co-pilot for WordPress and Chrome scored77%from 54 tests.

About plugin

  • Plugin page: bertha-ai-free
  • Plugin version: 1.11.10.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Nov 21, 2023
  • Number of updates: 94
  • Update frequency: every 7.3 days
  • Top authors: webacetechs (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

900+ active /58,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲10.96ms] Passed 4 tests

This is a short check of server-side resources used by BERTHA AI. Your AI co-pilot for WordPress and Chrome
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1459.86 ▲18.69
Dashboard /wp-admin3.32 ▼0.0365.18 ▼0.17
Posts /wp-admin/edit.php3.46 ▲0.1067.56 ▲17.71
Add New Post /wp-admin/post-new.php5.69 ▼0.20102.29 ▲7.60
Media Library /wp-admin/upload.php3.39 ▲0.1765.52 ▲33.64
Bertha Art /wp-admin/admin.php?page=bertha-ai-art-setting3.3058.65
Brand Settings /wp-admin/admin.php?page=bertha-ai-content-setting3.3059.78
Bertha Chat /wp-admin/admin.php?page=bertha-ai-chat-setting3.3058.20
Onboard Free Dashboard /wp-admin/admin.php?page=wa-free-onboard-dashboard3.3059.16
Launch Bertha /wp-admin/admin.php?page=bertha-ai-setting2.3812.76
General Settings /wp-admin/admin.php?page=bertha-ai-license-setting3.3059.66
Onboard Dashboard /wp-admin/admin.php?page=wa-onboard-dashboard3.3057.33
License /wp-admin/admin.php?page=bertha-ai-license3.3057.74

Server storage [IO: ▲2.02MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
idea_template_children
bertha_setup_wizard_added
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BERTHA AI. Your AI co-pilot for WordPress and Chrome
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,558 ▲81124.46 ▲10.2751.19 ▲49.4737.64 ▼5.43
Dashboard /wp-admin2,603 ▲42311.05 ▲5.40138.12 ▲40.5573.44 ▲26.05
Posts /wp-admin/edit.php2,440 ▲3409.97 ▲7.95105.25 ▲66.8934.58 ▼1.80
Add New Post /wp-admin/post-new.php1,772 ▲24623.18 ▲0.25577.73 ▼42.5941.71 ▼6.01
Media Library /wp-admin/upload.php1,778 ▲37811.40 ▲7.14140.68 ▲40.6569.46 ▲27.21
Bertha Art /wp-admin/admin.php?page=bertha-ai-art-setting1,2419.5284.8938.50
Brand Settings /wp-admin/admin.php?page=bertha-ai-content-setting1,5619.6289.5563.06
Bertha Chat /wp-admin/admin.php?page=bertha-ai-chat-setting1,20910.8391.9335.35
Onboard Free Dashboard /wp-admin/admin.php?page=wa-free-onboard-dashboard1,3009.5176.3938.85
Launch Bertha /wp-admin/admin.php?page=bertha-ai-setting1,3129.4083.7740.54
General Settings /wp-admin/admin.php?page=bertha-ai-license-setting1,2989.4279.7240.77
Onboard Dashboard /wp-admin/admin.php?page=wa-onboard-dashboard1,95513.05124.1955.89
License /wp-admin/admin.php?page=bertha-ai-license1,3129.3984.1643.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • bertha_setup_wizard_added
    • db_upgraded
    • widget_recent-comments
    • idea_template_children
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bertha-ai-license
    • > Notice in wp-content/plugins/bertha-ai-free/classes/class-bertha-ai.php+505
    Trying to get property 'free_templates' of non-object
    • > GET request to /wp-admin/admin.php?page=bertha-ai-art-setting
    • > Notice in wp-content/plugins/bertha-ai-free/classes/class-bertha-ai-admin.php+510
    Trying to get property 'image_credits' of non-object
    • > GET request to /wp-admin/admin.php?page=bertha-ai-art-setting
    • > Notice in wp-content/plugins/bertha-ai-free/classes/class-bertha-ai-admin.php+511
    Trying to get property 'image_credits_used' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bertha-ai-license
    • > Notice in wp-content/plugins/bertha-ai-free/classes/class-bertha-ai-admin.php+572
    Trying to get property 'bertha_plugin_type' of non-object
    • > GET request to /wp-admin/admin.php?page=bertha-ai-chat-setting
    • > Notice in wp-content/plugins/bertha-ai-free/classes/class-bertha-ai-admin.php+466
    Trying to get property 'chat_prompt_prompt' of non-object

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=bertha-ai-chat-setting
    • > Javascript (severe) in unknown
    /wp-content/plugins/bertha-ai-free/assets/js/setup.js?ver=1.11.7 283:29 Uncaught TypeError: Cannot read properties of null (reading 'quickwins_version')
    • > GET request to /wp-admin/admin.php?page=wa-onboard-dashboard
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=wa-onboard-dashboard 247 Allow attribute will take precedence over 'allowfullscreen'.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Requires php: Version not formatted correctly
  • Screenshots: A description for screenshot #10 is missing in bertha-ai-free/assets to your readme.txt
Please take inspiration from this readme.txt

bertha-ai-free/bertha-ai.php 77% from 13 tests

"BERTHA AI. Your AI co-pilot for WordPress and Chrome" version 1.11.10.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bertha-ai-free.php" instead of "bertha-ai.php")
  • Description: The description should be shorter than 140 characters (currently 217 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected14,804 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS52361185,806
PHP65231274,876
JavaScript131651563,403
SVG2638719

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 400)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity273.75
▷ Minimum class complexity73.00
▷ Maximum class complexity727.00
Average method complexity15.95
▷ Minimum method complexity1.00
▷ Maximum method complexity400.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods7197.26%
▷ Protected methods00.00%
▷ Private methods22.74%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/picture.png10.03KB6.61KB▼ 34.09%
assets/images/ber_chat.png23.36KB7.30KB▼ 68.76%
assets/images/bertha_avatar.png80.18KB24.46KB▼ 69.49%