78% sola-support-tickets

Code Review | Sola Support Tickets

WordPress plugin Sola Support Tickets scored 78% from 54 tests.

About plugin

  • Plugin page: sola-support-tickets
  • Plugin version: 3.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 5.8.1
  • First release: Jun 25, 2014
  • Latest release: Feb 22, 2017
  • Number of updates: 43
  • Update frequency: every 22.6 days
  • Top authors: SolaPlugins (100%)

Code review

54 tests

User reviews

65 reviews

Install metrics

100+ active / 22,708 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
Installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼153.88ms] Passed 4 tests

A check of server-side resources used by Sola Support Tickets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.7737.94 ▲17.32
Dashboard /wp-admin3.60 ▲0.5430.37 ▼13.11
Posts /wp-admin/edit.php3.66 ▲0.5629.48 ▼15.69
Add New Post /wp-admin/post-new.php5.68 ▲0.2576.24 ▼592.80
Media Library /wp-admin/upload.php3.60 ▲0.6034.73 ▲6.08
Help Desk /wp-admin/admin.php?page=support-tickets3.5427.20
System Log /wp-admin/admin.php?page=sola-st-menu-error-log3.5829.57
Settings /wp-admin/admin.php?page=sola-st-settings3.5829.20
Feedback /wp-admin/admin.php?page=sola-st-menu-feedback-page3.5830.33
Responses /wp-admin/edit.php?post_type=sola_st_responses3.6529.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 10 new options
New WordPress options
sola_st_password
sola_st_email_to_ticket
sola_st_host
sola_st_username
sola_st_port
sola_st_settings
sola_st_default_assigned_to
sola_st_current_version
sola_st_encryption
sola_st_submit_ticket_page

Browser metrics Passed 4 tests

An overview of browser requirements for Sola Support Tickets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,876 ▲28016.59 ▲1.0113.79 ▲5.9148.01 ▼1.15
Dashboard /wp-admin3,026 ▲955.86 ▼0.25134.56 ▼4.12109.23 ▲2.15
Posts /wp-admin/edit.php2,792 ▲532.70 ▲0.0163.85 ▼1.9192.30 ▲4.90
Add New Post /wp-admin/post-new.php1,709 ▲20918.88 ▲0.26350.34 ▼12.33115.42 ▲5.55
Media Library /wp-admin/upload.php1,869 ▲595.05 ▲0.00147.28 ▼4.16114.74 ▼7.93
Help Desk /wp-admin/admin.php?page=support-tickets1,3132.3661.6556.09
System Log /wp-admin/admin.php?page=sola-st-menu-error-log1,1152.0558.0572.70
Settings /wp-admin/admin.php?page=sola-st-settings1,9752.6062.49139.98
Feedback /wp-admin/admin.php?page=sola-st-menu-feedback-page1,2472.2159.8866.68
Responses /wp-admin/edit.php?post_type=sola_st_responses1,4642.6368.6180.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • sola_st_default_assigned_to
    • sola_st_username
    • sola_st_email_to_ticket
    • sola_st_settings
    • sola_st_password
    • sola_st_encryption
    • sola_st_port
    • sola_st_submit_ticket_page
    • sola_st_current_version
    • sola_st_host

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=support-tickets
    • > User notice in wp-includes/functions.php+5663
    WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=sola_st_responses
    • > Notice in wp-content/plugins/sola-support-tickets/sola-support-tickets.php+608
    session_start(): A session had already been started - ignoring
    • > GET request to /wp-admin/admin.php?page=sola-st-menu-error-log
    • > Warning in wp-content/plugins/sola-support-tickets/sola-support-tickets.php+797
    fopen(wp-content/uploads/sola/sola_st_log.txt): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=sola-st-menu-feedback-page
    • > User deprecated in wp-includes/functions.php+5211
    get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/sola-support-tickets/includes/feedback-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sola-support-tickets/includes/error-log-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sola-support-tickets/modules/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sola-support-tickets/modules/metaboxes.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sola-support-tickets/includes/footer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sola-support-tickets/includes/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sola-support-tickets/includes/welcome-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sola-support-tickets/modules/dashboard-ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sola-support-tickets/modules/metaboxes.php:19

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Submit a support ticket), #2 (View your open, solved and pending support tickets), #3 (View of a single ticket), #4 (Respond to your support ticket), #5 (Add an internal note to your support ticket)
You can take inspiration from this readme.txt

sola-support-tickets/sola-support-tickets.php Passed 13 tests

The main PHP script in "Sola Support Tickets" version 3.18 is automatically included on every request by WordPress
85 characters long description:
Create a support centre within your WordPress admin. No need for third party systems!

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
There were no executable files found in this plugin12,713 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PO File113,1054,9447,193
PHP91,2214673,734
CSS591531,394
JavaScript622019392

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions80
▷ Named functions80100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.82MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png105.32KB30.41KB▼ 71.12%
css/jquery-ui-theme/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/jquery-ui-theme/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/jquery-ui-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
css/jquery-ui-theme/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%