79% yetix-request-form

Code Review | Yetix Request Form for Zendesk

WordPress plugin Yetix Request Form for Zendesk scored79%from 54 tests.

About plugin

  • Plugin page: yetix-request-form
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Jun 10, 2022
  • Number of updates: 17
  • Update frequency: every 13.8 days
  • Top authors: bmartinent (94.12%)whodunitagency (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.90ms] Passed 4 tests

Server-side resources used by Yetix Request Form for Zendesk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.57 ▲3.62
Dashboard /wp-admin3.48 ▲0.1351.25 ▼13.54
Posts /wp-admin/edit.php3.53 ▲0.1755.55 ▲4.74
Add New Post /wp-admin/post-new.php6.08 ▲0.1991.32 ▼5.91
Media Library /wp-admin/upload.php3.40 ▲0.1740.52 ▲4.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 646 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
yetix_request__version
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Yetix Request Form for Zendesk
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10714.85 ▲0.271.95 ▲0.2049.53 ▲10.34
Dashboard /wp-admin2,271 ▲654.89 ▲0.00106.51 ▲4.2338.83 ▼4.48
Posts /wp-admin/edit.php2,153 ▲532.03 ▼0.0240.13 ▲3.8935.91 ▲0.17
Add New Post /wp-admin/post-new.php6,210 ▲4,68419.22 ▲1.61866.17 ▲219.6435.28 ▼25.26
Media Library /wp-admin/upload.php1,450 ▲474.27 ▲0.0298.94 ▼5.4644.59 ▼0.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • yetix_request__version
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/yetix-request-form/vendor/zendesk/zendesk_api_client_php/index.php
  • 146× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/yetix-request-form/vendor/guzzlehttp/promises/src/Coroutine.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'Zendesk\\API\\Resources\\ResourceAbstract' not found in wp-content/plugins/yetix-request-form/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Resources/Core/Macros.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Zendesk\\API\\Utilities\\Auth' not found in wp-content/plugins/yetix-request-form/class/whodunit/client/zendesk/ExtendedAuth.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/yetix-request-form/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/yetix-request-form/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/yetix-request-form/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Trait 'Zendesk\\API\\Traits\\Utility\\ChainedParametersTrait' not found in wp-content/plugins/yetix-request-form/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Resources/Chat.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_generate_uuid4() in wp-content/plugins/yetix-request-form/views/shortcodes/requestform/default.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/yetix-request-form/vendor/guzzlehttp/guzzle/src/Pool.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/yetix-request-form/vendor/psr/http-message/src/ResponseInterface.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: zendesk integration, zendesk, zendesk api, support, zendesk ticket...

yetix-request-form/yetix-request-form.php Passed 13 tests

The main PHP file in "Yetix Request Form for Zendesk" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Add a Zendesk Support Form easily to your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin216,417 lines of code in 582 files:
LanguageFilesBlank linesComment linesLines of code
CSS20520,20514,080137,392
JavaScript583,3311,78744,404
PHP2603,4189,90716,789
SVG831512,404
Markdown181,31803,832
JSON21101,191
PO File1120210230
YAML8253126
XML14036
make26113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces35
Interfaces26
Traits20
Classes193
▷ Abstract classes94.66%
▷ Concrete classes18495.34%
▷ Final classes2211.96%
Methods1,194
▷ Static methods20717.34%
▷ Public methods98982.83%
▷ Protected methods746.20%
▷ Private methods13110.97%
Functions225
▷ Named functions5624.89%
▷ Anonymous functions16975.11%
Constants75
▷ Global constants1013.33%
▷ Class constants6586.67%
▷ Public constants65100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/distributable/semantic-ui/themes/default/assets/images/flags.png27.46KB29.21KB0.00%