Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.26ms] Passed 4 tests
Analyzing server-side resources used by Knowledge Tags from Yext Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.66 ▼6.21 |
Dashboard /wp-admin | 3.36 ▲0.02 | 55.62 ▼12.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 53.67 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.41 ▼15.63 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.64 ▲1.97 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Knowledge Tags from Yext Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.69 ▼0.62 | 1.70 ▼0.17 | 43.20 ▲0.25 |
Dashboard /wp-admin | 2,226 ▲35 | 5.79 ▼0.13 | 102.62 ▼4.44 | 85.26 ▲42.37 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 1.97 ▼0.06 | 41.74 ▲0.90 | 34.21 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.11 ▲4.56 | 690.83 ▲63.75 | 56.65 ▲5.36 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.16 ▼0.04 | 109.08 ▲6.67 | 74.97 ▲28.86 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knowledge-tags-from-yext/settings.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/knowledge-tags-from-yext/settings.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: content, knowledge tags from yext, yext, schema, schemaorg...
knowledge-tags-from-yext/yext-schema.php 92% from 13 tests
The principal PHP file in "Knowledge Tags from Yext Plugin" v. 1.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("knowledge-tags-from-yext.php" instead of "yext-schema.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected342 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 68 | 318 |
CSS | 1 | 4 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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-dark.png | 14.85KB | 0.42KB | ▼ 97.16% |
public/images/yext-wp-icon-light.png | 14.85KB | 0.42KB | ▼ 97.16% |