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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.59 ▲3.20 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.75 ▼2.75 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 42.73 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 72.20 ▼14.35 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 33.15 ▲2.84 |
Yext /wp-admin/tools.php?page=yext | 3.26 | 30.39 |
Yext /wp-admin/plugins.php?page=yext | 3.26 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.23 ▼1.17 | 1.57 ▼0.18 | 41.38 ▼4.51 |
Dashboard /wp-admin | 2,231 ▲40 | 4.80 ▼0.07 | 111.65 ▲4.71 | 40.32 ▼2.43 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▼0.05 | 33.36 ▼4.53 | 34.91 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 18.64 ▼4.59 | 649.18 ▼13.37 | 60.19 ▼0.52 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.22 ▲0.08 | 93.73 ▼2.37 | 41.85 ▼0.83 |
Yext /wp-admin/tools.php?page=yext | 1,097 | 4.00 | 53.22 | 40.62 |
Yext /wp-admin/plugins.php?page=yext | 1,093 | 3.63 | 57.52 | 28.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 21 | 238 |
CSS | 1 | 1 | 0 | 6 |
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 code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/yext-wp-icon-light.png | 14.85KB | 0.42KB | ▼ 97.16% |
public/images/yext-wp-icon-dark.png | 14.85KB | 0.42KB | ▼ 97.16% |