10% simple-tickets

Code Review | Simple Tickets

WordPress plugin Simple Tickets scored10%from 54 tests.

About plugin

  • Plugin page: simple-tickets
  • Plugin version: 0.1.7.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Oct 31, 2020
  • Number of updates: 28
  • Update frequency: every 52.3 days
  • Top authors: paulgee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,865 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/simple-tickets/Extension/_includes/common.lib.php+1047
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.59MB] [CPU: ▼57.26ms] Passed 4 tests

Analyzing server-side resources used by Simple Tickets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.41 ▼1.055.09 ▼32.66
Dashboard /wp-admin2.43 ▼0.927.25 ▼51.97
Posts /wp-admin/edit.php2.43 ▼0.937.46 ▼47.12
Add New Post /wp-admin/post-new.php2.43 ▼3.468.42 ▼97.29
Media Library /wp-admin/upload.php2.43 ▼0.808.02 ▼27.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Tickets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.17 ▼1.221.96 ▲0.1839.67 ▲0.42
Dashboard /wp-admin2,214 ▲235.85 ▲1.0099.14 ▼6.9865.60 ▲19.04
Posts /wp-admin/edit.php2,097 ▲81.97 ▼0.0838.04 ▼4.7330.72 ▼7.03
Add New Post /wp-admin/post-new.php1,518 ▼117.49 ▼5.74739.92 ▲97.0654.21 ▲2.49
Media Library /wp-admin/upload.php1,390 ▲54.22 ▲0.03112.96 ▲10.2176.99 ▲34.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/simple-tickets/Extension/_includes/common.lib.php+1047
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 23× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/simple-tickets/Extension/admin/index.php
    • > /wp-content/plugins/simple-tickets/Extension/simple-tickets/simple-tickets.lib.php
    • > /wp-content/plugins/simple-tickets/Extension/simple-tickets/index.php
    • > /wp-content/plugins/simple-tickets/Themes/default_admin/index.php
    • > /wp-content/plugins/simple-tickets/Themes/dashboard.php
    • > /wp-content/plugins/simple-tickets/Extension/simple-tickets/settings.mnu.php
    • > /wp-content/plugins/simple-tickets/Extension/_includes/index.php
    • > /wp-content/plugins/simple-tickets/index.php
    • > /wp-content/plugins/simple-tickets/Extension/_includes/common.lib.php
    • > /wp-content/plugins/simple-tickets/Extension/admin/admin.lib.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-tickets/GlobelWP.php:65
    • > PHP Warning
      Use of undefined constant GBL_ADMIN_MYNAME - assumed 'GBL_ADMIN_MYNAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-tickets/Extension/simple-tickets/shortcode.lib.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: simple tickets, ticket system, ticket managing system, ticketing, support tickets...

simple-tickets/GlobelWP.php 85% from 13 tests

The principal PHP file in "Simple Tickets" v. 0.1.7.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-tickets.php" instead of "GlobelWP.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,108 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS7657633,742
PHP206044683,365
INI1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions73
▷ Named functions7298.63%
▷ Anonymous functions11.37%
Constants30
▷ Global constants30100.00%
▷ Class constants00.00%
▷ Public constants00.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
12 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Themes/_general_images/whatsnew/blank_200x100.png0.33KB0.09KB▼ 71.64%
Themes/default_admin/images/feed_16x16.png0.90KB1.09KB0.00%
Themes/default_admin/images/blank_16x16.png0.14KB0.08KB▼ 42.07%
Themes/default_admin/images/pinpush_red_20x25.png3.54KB0.92KB▼ 74.11%
Themes/Simple-Tickets-Logo.png20.39KB11.02KB▼ 45.93%