90% sitespeakai

Code Review | SiteSpeakAI

WordPress plugin SiteSpeakAI scored90%from 54 tests.

About plugin

  • Plugin page: sitespeakai
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2023
  • Latest release: Oct 17, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: sitespeakai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /13 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.73ms] Passed 4 tests

Server-side resources used by SiteSpeakAI
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.12 ▼0.23
Dashboard /wp-admin3.32 ▼0.0347.81 ▼18.17
Posts /wp-admin/edit.php3.37 ▲0.0147.13 ▼7.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.52 ▼21.04
Media Library /wp-admin/upload.php3.24 ▲0.0139.25 ▲2.34
SiteSpeakAI /wp-admin/options-general.php?page=sitespeakai_id3.2031.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SiteSpeakAI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.73 ▲0.381.95 ▲0.3139.14 ▼5.74
Dashboard /wp-admin2,193 ▲135.54 ▼0.1184.21 ▼1.1343.74 ▼1.07
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0335.42 ▼2.1928.96 ▼8.75
Add New Post /wp-admin/post-new.php1,531 ▲523.21 ▲0.01688.29 ▼67.6365.46 ▲9.91
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.04103.00 ▼6.4647.59 ▲1.22
SiteSpeakAI /wp-admin/options-general.php?page=sitespeakai_id8052.0323.1930.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: sitespeak, ai, chatgpt

sitespeakai/sitespeakai.php Passed 13 tests

The principal PHP file in "SiteSpeakAI" v. 1.0.1 is loaded by WordPress automatically on each request
60 characters long description:
Add a custom trained ChatGPT chatbot to your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101247

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin