89% tiket-payment-invoicing

Code Review | Tikex

WordPress plugin Tikex scored89%from 54 tests.

About plugin

  • Plugin page: tiket-payment-inv...
  • Plugin version: 5.0.92
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 558
  • Update frequency: every 1.8 days
  • Top authors: j4nos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,095 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.66ms] Passed 4 tests

A check of server-side resources used by Tikex
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2841.72 ▼1.69
Dashboard /wp-admin3.61 ▲0.3047.99 ▼7.56
Posts /wp-admin/edit.php3.66 ▲0.3048.53 ▼2.41
Add New Post /wp-admin/post-new.php6.13 ▲0.2490.53 ▼6.96
Media Library /wp-admin/upload.php3.47 ▲0.2436.53 ▲0.79
Fordítások /wp-admin/admin.php?page=tiket-on-wordpress-translationseditor3.4432.96
Kedvezményezettek /wp-admin/admin.php?page=tiket-on-wordpress-payeeseditor3.4433.01
Vásárlások /wp-admin/admin.php?page=tiket-on-wordpress-purchases3.4432.27
Űrlapok /wp-admin/admin.php?page=tiket-on-wordpress-formseditor3.4437.33
Termékek /wp-admin/admin.php?page=tiket-on-wordpress-eventseditor3.4431.27
Custom Page /wp-admin/admin.php?page=login-page3.4432.98
Bérletek /wp-admin/admin.php?page=tiket-on-wordpress-passeseditor3.4430.01
Időpontok /wp-admin/admin.php?page=tiket-on-wordpress-eventtimeseditor3.4431.33
Csapataim /wp-admin/admin.php?page=tiket-on-wordpress-teams3.4441.46
Profil /wp-admin/admin.php?page=tiket-on-wordpress3.4433.49

Server storage [IO: ▲41.42MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Filesystem usage must be lower than 25MB (currently using 41.42MB)
Filesystem: 242 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
twppwr_example_setting
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tikex
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲8914.72 ▲0.371.86 ▲0.0143.38 ▼1.17
Dashboard /wp-admin2,256 ▲885.55 ▼0.0390.85 ▼5.0639.71 ▼8.29
Posts /wp-admin/edit.php2,161 ▲611.97 ▼0.0638.99 ▼4.0735.76 ▲1.69
Add New Post /wp-admin/post-new.php1,574 ▲4423.40 ▲0.36645.22 ▲40.8665.22 ▲11.69
Media Library /wp-admin/upload.php1,464 ▲644.19 ▼0.1297.79 ▼0.4446.69 ▲5.21
Fordítások /wp-admin/admin.php?page=tiket-on-wordpress-translationseditor8504.16143.9829.70
Kedvezményezettek /wp-admin/admin.php?page=tiket-on-wordpress-payeeseditor8984.23149.7433.47
Vásárlások /wp-admin/admin.php?page=tiket-on-wordpress-purchases8504.30111.8926.39
Űrlapok /wp-admin/admin.php?page=tiket-on-wordpress-formseditor8964.23107.5427.55
Termékek /wp-admin/admin.php?page=tiket-on-wordpress-eventseditor8924.23105.4525.72
Custom Page /wp-admin/admin.php?page=login-page8894.22107.2225.68
Bérletek /wp-admin/admin.php?page=tiket-on-wordpress-passeseditor8934.22104.6628.57
Időpontok /wp-admin/admin.php?page=tiket-on-wordpress-eventtimeseditor8994.54146.9728.90
Csapataim /wp-admin/admin.php?page=tiket-on-wordpress-teams8904.23103.7125.34
Profil /wp-admin/admin.php?page=tiket-on-wordpress8854.08113.9324.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (/plugin-directory/assets/pf.png)
You can look at the official readme.txt

tiket-payment-invoicing/tiket-on-wordpress.php 85% from 13 tests

The principal PHP file in "Tikex" v. 5.0.92 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tiket-payment-invoicing.php" instead of "tiket-on-wordpress.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected13,507 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript331192224,830
JavaScript511,0222,3264,185
CSS21495613,329
PHP15269793710
JSX22440302
JSON200144
SVG5007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.62
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods79
▷ Static methods1518.99%
▷ Public methods5468.35%
▷ Protected methods00.00%
▷ Private methods2531.65%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 5.79MB with 2.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/containers/Tikex/assets/images/bike1.png641.31KB210.04KB▼ 67.25%
app/containers/Tikex/assets/images/switch_on.png38.30KB15.88KB▼ 58.54%
app/containers/Tikex/assets/images/checkedImage.png0.56KB0.28KB▼ 49.83%
app/containers/Tikex/assets/images/play_icon.png0.25KB0.26KB0.00%
app/containers/Tikex/assets/images/check_icon.png0.24KB0.25KB0.00%