78% autotask-ticket-lookup

Code Review | Autotask Ticket Lookup

WordPress plugin Autotask Ticket Lookup scored78%from 54 tests.

About plugin

  • Plugin page: autotask-ticket-l...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 11, 2014
  • Latest release: Sep 11, 2014
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: C-NetSystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.99ms] Passed 4 tests

An overview of server-side resources used by Autotask Ticket Lookup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.73 ▼5.14
Dashboard /wp-admin3.31 ▲0.0047.78 ▼4.53
Posts /wp-admin/edit.php3.36 ▲0.0046.77 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.56 ▼9.38
Media Library /wp-admin/upload.php3.23 ▲0.0031.15 ▼0.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Autotask Ticket Lookup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲23113.30 ▼1.075.32 ▲3.2946.39 ▼1.68
Dashboard /wp-admin2,252 ▲645.84 ▲0.87100.47 ▼4.7338.68 ▼2.74
Posts /wp-admin/edit.php2,141 ▲521.98 ▼0.0735.12 ▼0.6236.38 ▲5.16
Add New Post /wp-admin/post-new.php1,552 ▲3822.58 ▲5.14559.90 ▼134.1734.01 ▼21.48
Media Library /wp-admin/upload.php1,434 ▲464.28 ▲0.1194.00 ▼13.4739.44 ▼6.85

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/autotask-ticket-lookup/wpat-main.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/autotask-ticket-lookup/wpat-settings.php:12
    • > PHP Notice
      Undefined index: wpat_submitted in wp-content/plugins/autotask-ticket-lookup/wpat-settings.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (This is the settings page for this plugin. You need to supply user credentials, and choose the correct region as outlined above.), #2 (This shows the plugin's output from the front end, including the search form with the ticket field labeled as "Ticket #: " and the output results below.)
The official readme.txt is a good inspiration

autotask-ticket-lookup/wpat-main.php 85% from 13 tests

This is the main PHP file of "Autotask Ticket Lookup" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("autotask-ticket-lookup.php" instead of "wpat-main.php")
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin387 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36910387

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.35MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png244.34KB78.77KB▼ 67.76%
screenshot-2.png96.56KB30.69KB▼ 68.22%
images/seo-screen.png19.59KB18.43KB▼ 5.94%