89% yext-answers

Code Review | Yext Answers Site Search

WordPress plugin Yext Answers Site Search scored 89% from 54 tests.

About plugin

  • Plugin page: yext-answers
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.8
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Feb 23, 2022
  • Number of updates: 10
  • Update frequency: every 49.8 days
  • Top authors: thundersnow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,293 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.56ms] Passed 4 tests

An overview of server-side resources used by Yext Answers Site Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.91 ▼0.59
Dashboard /wp-admin3.36 ▲0.0546.39 ▼0.96
Posts /wp-admin/edit.php3.41 ▲0.0546.25 ▲1.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.09 ▼0.58
Media Library /wp-admin/upload.php3.28 ▲0.0536.94 ▼0.10
Yext Answers Site Search /wp-admin/options-general.php?page=yext_answers_options3.2532.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Yext Answers Site Search: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.091.72 ▼0.1039.76 ▼7.43
Dashboard /wp-admin2,213 ▲254.83 ▼1.0599.51 ▼2.0338.19 ▼8.25
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0235.44 ▼1.9730.44 ▼1.74
Add New Post /wp-admin/post-new.php1,545 ▲1118.36 ▼4.70607.27 ▼32.3292.76 ▲43.35
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.0695.62 ▼8.9448.63 ▲5.87
Yext Answers Site Search /wp-admin/options-general.php?page=yext_answers_options8862.1522.9835.14

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: relevant-search, better-search, yext, search, search-engine...

yext-answers/answers.php 77% from 13 tests

The main PHP script in "Yext Answers Site Search" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yext-answers.php" instead of "answers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin233 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22465208
Markdown17025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin