78% yext

Code Review | Yext Plugin

WordPress plugin Yext Plugin scored78%from 54 tests.

About plugin

  • Plugin page: yext
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Mar 6, 2023
  • Number of updates: 42
  • Update frequency: every 81.2 days
  • Top authors: thundersnow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /38,718 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.07ms] Passed 4 tests

This is a short check of server-side resources used by Yext Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.59 ▲3.20
Dashboard /wp-admin3.43 ▲0.1244.75 ▼2.75
Posts /wp-admin/edit.php3.46 ▲0.1142.73 ▼2.03
Add New Post /wp-admin/post-new.php6.12 ▲0.2372.20 ▼14.35
Media Library /wp-admin/upload.php3.36 ▲0.1433.15 ▲2.84
Yext /wp-admin/tools.php?page=yext3.2630.39
Yext /wp-admin/plugins.php?page=yext3.2630.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
yext_logging
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
yext_token
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yext Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.171.57 ▼0.1841.38 ▼4.51
Dashboard /wp-admin2,231 ▲404.80 ▼0.07111.65 ▲4.7140.32 ▼2.43
Posts /wp-admin/edit.php2,111 ▲222.00 ▼0.0533.36 ▼4.5334.91 ▲0.13
Add New Post /wp-admin/post-new.php1,558 ▲2518.64 ▼4.59649.18 ▼13.3760.19 ▼0.52
Media Library /wp-admin/upload.php1,413 ▲314.22 ▲0.0893.73 ▼2.3741.85 ▼0.83
Yext /wp-admin/tools.php?page=yext1,0974.0053.2240.62
Yext /wp-admin/plugins.php?page=yext1,0933.6357.5228.57

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=yext
    • > Notice in wp-content/plugins/yext/yext.php+50
    Undefined index: YEXT_WIDGETS_STORM_HOST

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/yext/yext.php:14

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

yext/yext.php Passed 13 tests

Analyzing the main PHP file in "Yext Plugin" version 1.1.3
67 characters long description:
Publish your Yext posts, products, bios, menus, events, or reviews.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected244 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13721238
CSS1106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/yext-wp-icon-light.png14.85KB0.42KB▼ 97.16%
public/images/yext-wp-icon-dark.png14.85KB0.42KB▼ 97.16%