74% integrate-ticket-master

Code Review | Integrate Ticket Master

WordPress plugin Integrate Ticket Master scored74%from 54 tests.

About plugin

  • Plugin page: integrate-ticket-...
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.5.12+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2018
  • Latest release: Jul 24, 2020
  • Number of updates: 21
  • Update frequency: every 35.2 days
  • Top authors: ankgne (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,005 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.54ms] Passed 4 tests

Server-side resources used by Integrate Ticket Master
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1945.79 ▲7.80
Dashboard /wp-admin3.43 ▲0.0854.01 ▼8.77
Posts /wp-admin/edit.php3.54 ▲0.1952.33 ▲2.13
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.57 ▼11.32
Media Library /wp-admin/upload.php3.35 ▲0.1244.59 ▲8.12
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log3.3540.47
Logs /wp-admin/edit.php?post_type=wp_log3.4040.92
Add New /wp-admin/post-new.php?post_type=wp_log3.4752.67

Server storage [IO: ▲2.83MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by Integrate Ticket Master
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20514.17 ▼0.1815.12 ▲13.2942.87 ▼1.57
Dashboard /wp-admin2,242 ▲625.64 ▼0.0392.92 ▲4.3037.21 ▼1.95
Posts /wp-admin/edit.php2,144 ▲442.02 ▼0.0137.25 ▼3.2942.78 ▲3.82
Add New Post /wp-admin/post-new.php1,565 ▲2723.20 ▲0.02629.01 ▼6.2756.75 ▲7.46
Media Library /wp-admin/upload.php1,447 ▲534.20 ▼0.06103.34 ▼1.5142.82 ▼1.23
Tags /wp-admin/edit-tags.php?taxonomy=wp_log_type&post_type=wp_log1,4442.1329.3229.62
Logs /wp-admin/edit.php?post_type=wp_log1,1081.9832.0829.27
Add New /wp-admin/post-new.php?post_type=wp_log2,2747.78171.1960.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'ank_wp_ticket_uninstall' not found or invalid function name
  • This plugin does not fully uninstall, leaving 7 options in the database
    • ank_wp_ticket_version
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant AK_TICKETMASTER_BASE_DIR - assumed 'AK_TICKETMASTER_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrate-ticket-master/includes/classes/api/ank-wp-ticket-master-api-call.php on line 10
    • > PHP Warning
      Use of undefined constant AK_TICKETMASTER_BASE_DIR - assumed 'AK_TICKETMASTER_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrate-ticket-master/includes/classes/admin/settings/ank-wp-ticket-master-settings-page.php on line 10
    • > PHP Warning
      include_once(AK_TICKETMASTER_BASE_DIR/includes/classes/common/ank-wp-ticket-master-scripts.php): failed to open stream: No such file or directory in wp-content/plugins/integrate-ticket-master/includes/classes/frontend/ank-wp-ticket-master-frontend.php on line 9
    • > PHP Warning
      include(): Failed opening 'AK_TICKETMASTER_BASE_DIR/includes/classes/admin/settings/ank-wp-ticket-master-settings-form.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrate-ticket-master/includes/classes/admin/settings/ank-wp-ticket-master-settings-page.php on line 10
    • > PHP Warning
      include_once(AK_TICKETMASTER_BASE_DIR/includes/classes/common/ank-wp-ticket-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/integrate-ticket-master/includes/classes/frontend/ank-wp-ticket-master-frontend.php on line 10
    • > PHP Warning
      include(AK_TICKETMASTER_BASE_DIR/includes/classes/api/ank-wp-ticket-master-searchevents.php): failed to open stream: No such file or directory in wp-content/plugins/integrate-ticket-master/includes/classes/api/ank-wp-ticket-master-api-call.php on line 10
    • > PHP Warning
      Use of undefined constant AK_TICKETMASTER_BASE_DIR - assumed 'AK_TICKETMASTER_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrate-ticket-master/includes/classes/frontend/ank-wp-ticket-master-frontend.php on line 9
    • > PHP Warning
      include(): Failed opening 'AK_TICKETMASTER_BASE_DIR/includes/classes/api/ank-wp-ticket-master-searchevents.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrate-ticket-master/includes/classes/api/ank-wp-ticket-master-api-call.php on line 10
    • > PHP Warning
      include_once(): Failed opening 'AK_TICKETMASTER_BASE_DIR/includes/classes/common/ank-wp-ticket-master-scripts.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/integrate-ticket-master/includes/classes/frontend/ank-wp-ticket-master-frontend.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/integrate-ticket-master/includes/classes/templates/ank-wp-ticket-master-events-list.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

integrate-ticket-master/ank-wp-ticket-master.php 92% from 13 tests

The principal PHP file in "Integrate Ticket Master" v. 2.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("integrate-ticket-master.php" instead of "ank-wp-ticket-master.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
Good job! No executable or dangerous file extensions detected10,831 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript178521,2704,003
SVG3003,825
CSS114262122,099
PHP12250609824
Markdown142080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods44
▷ Static methods1125.00%
▷ Public methods3579.55%
▷ Protected methods00.00%
▷ Private methods920.45%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/js/owlcarousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%