10% joomconnect-quick-ticket-lite-for-connectwise

Code Review | JoomConnect Quick Ticket Lite

WordPress plugin JoomConnect Quick Ticket Lite scored10%from 54 tests.

About plugin

  • Plugin page: joomconnect-quick...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2012
  • Latest release: Nov 27, 2012
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: directive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,203 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; jc_qtlite has a deprecated constructor

Server metrics [RAM: ▼1.94MB] [CPU: ▼55.67ms] Passed 4 tests

A check of server-side resources used by JoomConnect Quick Ticket Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.65 ▼36.21
Dashboard /wp-admin2.07 ▼1.275.46 ▼57.24
Posts /wp-admin/edit.php2.08 ▼1.285.83 ▼38.48
Add New Post /wp-admin/post-new.php2.07 ▼3.816.42 ▼90.75
Media Library /wp-admin/upload.php2.07 ▼1.156.21 ▼26.82

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

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

Browser metrics Passed 4 tests

JoomConnect Quick Ticket Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.60 ▼0.784.95 ▲3.3240.09 ▼2.98
Dashboard /wp-admin2,206 ▲155.91 ▲1.0196.88 ▼9.4542.49 ▼2.70
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.07 ▲0.8230.96 ▼1.11
Add New Post /wp-admin/post-new.php1,371 ▼15116.69 ▼6.48542.27 ▼53.4349.56 ▲4.70
Media Library /wp-admin/upload.php1,388 ▼34.18 ▲0.0393.49 ▼7.4241.81 ▼5.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; jc_qtlite has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_jc_qtlite_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite_front.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite_widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === joomconnect-quick-ticket-lite-for-connectwise === )
You can look at the official readme.txt

joomconnect-quick-ticket-lite-for-connectwise/joomconnect_quick_ticket_lite.php 92% from 13 tests

The main PHP script in "JoomConnect Quick Ticket Lite" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("joomconnect-quick-ticket-lite-for-connectwise.php" instead of "joomconnect_quick_ticket_lite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin646 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP46127468
JavaScript223148
CSS11329
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.50
▷ Minimum class complexity2.00
▷ Maximum class complexity21.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin