89% ticketrilla

Code Review | Ticketrilla: Client

WordPress plugin Ticketrilla: Client scored 89% from 54 tests.

About plugin

  • Plugin page: ticketrilla
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.7.2
  • WordPress version: 5.8.1
  • First release: Jan 29, 2019
  • Latest release: Jul 1, 2021
  • Number of updates: 25
  • Update frequency: every 35.4 days
  • Top authors: ticketrilla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.55MB] [CPU: ▼136.80ms] Passed 4 tests

Server-side resources used by Ticketrilla: Client
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1233.89 ▼0.98
Dashboard /wp-admin3.77 ▲0.7158.58 ▲4.54
Posts /wp-admin/edit.php3.82 ▲0.7253.96 ▲8.25
Add New Post /wp-admin/post-new.php6.07 ▲0.6399.10 ▼558.40
Media Library /wp-admin/upload.php3.72 ▲0.7243.17 ▲7.66
Tickets /wp-admin/admin.php?page=ticketrilla-client3.7450.53
Settings /wp-admin/admin.php?page=ticketrilla-client-settings3.6552.73
Newsletters /wp-admin/admin.php?page=ticketrilla-client-newsletters3.6643.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 201 new files
Database: no new tables, 3 new options
New WordPress options
ttlc_standard_license_type
ttlc_cleaning_date
ttlc_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ticketrilla: Client
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲17116.05 ▲0.129.05 ▲0.2947.23 ▼4.48
Dashboard /wp-admin3,058 ▲1246.24 ▲0.20148.61 ▼12.83106.75 ▼12.61
Posts /wp-admin/edit.php2,831 ▲922.90 ▲0.1967.86 ▼6.2986.81 ▲0.95
Add New Post /wp-admin/post-new.php1,562 ▼11021.07 ▲2.35388.08 ▼22.86106.91 ▼0.97
Media Library /wp-admin/upload.php1,897 ▲905.11 ▲0.07152.64 ▼2.02113.65 ▼8.53
Tickets /wp-admin/admin.php?page=ticketrilla-client1,3313.1976.52103.19
Settings /wp-admin/admin.php?page=ticketrilla-client-settings1,7513.1679.48110.16
Newsletters /wp-admin/admin.php?page=ticketrilla-client-newsletters1,2153.1271.0297.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 3 options in the database
    • ttlc_version
    • ttlc_cleaning_date
    • ttlc_standard_license_type

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: license, ticket system, ticket, support, support center...

ticketrilla/ticketrilla-client.php 85% from 13 tests

The main PHP script in "Ticketrilla: Client" version 1.1.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ticketrilla.php" instead of "ticketrilla-client.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected27,662 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
CSS12535211,741
SVG4036,052
PHP651,0283025,202
Markdown469102,839
JavaScript821234221,828

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.38
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes13.12%
▷ Concrete classes3196.88%
▷ Final classes13.23%
Methods238
▷ Static methods239.66%
▷ Public methods19180.25%
▷ Protected methods3213.45%
▷ Private methods156.30%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants26
▷ Global constants1142.31%
▷ Class constants1557.69%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/ckeditor/skins/moono-lisa/images/hidpi/close.png1.21KB0.47KB▼ 60.99%
assets/js/ckeditor/plugins/icons_hidpi.png10.34KB5.18KB▼ 49.90%
assets/js/ckeditor/skins/moono-lisa/icons.png3.37KB2.01KB▼ 40.52%
assets/js/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png1.05KB0.40KB▼ 62.00%
assets/js/ckeditor/skins/moono-lisa/images/hidpi/lock.png1.04KB0.40KB▼ 61.68%