10% yast-yet-another-support-tool

Code Review | YAST : Yet Another Support Tool

WordPress plugin YAST : Yet Another Support Tool scored10%from 54 tests.

About plugin

  • Plugin page: yast-yet-another-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: May 20, 2015
  • Number of updates: 20
  • Update frequency: every 8.4 days
  • Top authors: bastho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,515 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/yast-yet-another-support-tool/yast.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; YAST_class has a deprecated constructor

Server metrics [RAM: ▼1.53MB] [CPU: ▼62.59ms] Passed 4 tests

Server-side resources used by YAST : Yet Another Support Tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.006.17 ▼36.50
Dashboard /wp-admin2.49 ▼0.867.20 ▼63.03
Posts /wp-admin/edit.php2.49 ▼0.877.81 ▼45.12
Add New Post /wp-admin/post-new.php2.49 ▼3.407.56 ▼105.70
Media Library /wp-admin/upload.php2.49 ▼0.748.11 ▼27.42
Support Tickets /wp-admin/admin.php?page=yast_list2.498.37
Ticket types /wp-admin/edit-tags.php?taxonomy=ticket_type2.498.47
Options /wp-admin/admin.php?page=yast_options2.496.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for YAST : Yet Another Support Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,479 ▲71813.90 ▼0.3510.52 ▲8.6444.23 ▲0.33
Dashboard /wp-admin2,453 ▲2554.94 ▼0.15105.43 ▼6.9042.07 ▼3.54
Posts /wp-admin/edit.php2,343 ▲2432.21 ▲0.1644.69 ▲3.9336.22 ▼0.76
Add New Post /wp-admin/post-new.php1,744 ▲18923.35 ▲5.12678.52 ▲51.7971.68 ▲21.07
Media Library /wp-admin/upload.php1,646 ▲2494.57 ▲0.31104.60 ▼5.2550.57 ▲3.41
Support Tickets /wp-admin/admin.php?page=yast_list1,2592.1440.8430.74
Ticket types /wp-admin/edit-tags.php?taxonomy=ticket_type1,5331.9034.1232.85
Options /wp-admin/admin.php?page=yast_options1,1972.2128.7728.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/yast-yet-another-support-tool/yast.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; YAST_class has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > Deprecated in wp-content/plugins/yast-yet-another-support-tool/yast.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; YAST_class has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > Deprecated in wp-content/plugins/yast-yet-another-support-tool/front.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; YAST_front has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > Deprecated in wp-content/plugins/yast-yet-another-support-tool/tools.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; YAST_tools has a deprecated constructor
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > Warning in wp-content/plugins/yast-yet-another-support-tool/inc/view.options.php+9
    in_array() expects parameter 2 to be array, string given
    • > GET request to /wp-admin/admin.php?page=yast_options
    • > Warning in wp-content/plugins/yast-yet-another-support-tool/inc/view.options.php+63
    implode(): Invalid arguments passed

SRP 50% 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 take a closer look at the following
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/yast-yet-another-support-tool/yast.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yast-yet-another-support-tool/inc/assign.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yast-yet-another-support-tool/inc/get_conf_param.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/yast-yet-another-support-tool/inc/view.single.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/yast-yet-another-support-tool/archive-yast.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yast-yet-another-support-tool/inc/view.box.info.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yast-yet-another-support-tool/inc/form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/yast-yet-another-support-tool/inc/reply.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yast-yet-another-support-tool/inc/form-js.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_post_status() in wp-content/plugins/yast-yet-another-support-tool/inc/register.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wphelp, tickets, ticket, support, assistance...

yast-yet-another-support-tool/yast.php 85% from 13 tests

The main file in "YAST : Yet Another Support Tool" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("yast-yet-another-support-tool.php" instead of "yast.php")

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
Good job! No executable or dangerous file extensions detected3,548 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP191983732,536
PO File1196235461
CSS43257335
JavaScript4226188
SVG10028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity75.33
▷ Minimum class complexity14.00
▷ Maximum class complexity180.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods69100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin