89% piri-faq-ai-assistant

Code Review | Piri FAQ AI Assistant

WordPress plugin Piri FAQ AI Assistant scored 89% from 54 tests.

About plugin

  • Plugin page: piri-faq-ai-assis...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2019
  • Latest release: Dec 4, 2019
  • Number of updates: 11
  • Update frequency: every 5.6 days
  • Top authors: piriai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.69ms] Passed 4 tests

Server-side resources used by Piri FAQ AI Assistant
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.67 ▼6.22
Dashboard /wp-admin3.42 ▲0.1246.04 ▼3.07
Posts /wp-admin/edit.php3.53 ▲0.1848.12 ▲1.89
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.97 ▼14.34
Media Library /wp-admin/upload.php3.34 ▲0.1136.99 ▲0.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
piri_faa_example_setting
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Piri FAQ AI Assistant
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲19415.03 ▲0.6846.21 ▲44.2842.24 ▼7.19
Dashboard /wp-admin2,218 ▲334.81 ▼1.07109.36 ▲9.3036.04 ▼0.44
Posts /wp-admin/edit.php2,101 ▲92.06 ▲0.0238.31 ▼3.7135.90 ▼1.20
Add New Post /wp-admin/post-new.php1,543 ▲223.14 ▲4.88643.55 ▼18.5956.99 ▲0.65
Media Library /wp-admin/upload.php1,403 ▲184.15 ▼0.0798.28 ▼6.0641.19 ▼2.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • piri_faa_example_setting
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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
There were no browser issues found

Optimizations

Plugin configuration 90% 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 need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Chat bot widget on your Website.) image not found
You can take inspiration from this readme.txt

piri-faq-ai-assistant/piri-faq-ai-assistant.php 92% from 13 tests

"Piri FAQ AI Assistant" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected473 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5122282383
JavaScript2115066
Markdown118023
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1648.48%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin