10% easy-wp-tickets

Code Review | Easy WP Tickets

WordPress plugin Easy WP Tickets scored 10% from 54 tests.

About plugin

  • Plugin page: easy-wp-tickets
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Feb 23, 2015
  • Latest release: Feb 25, 2015
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: Cromorama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,875 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/easy-wp-tickets/easywptickets.php+16
    include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.89MB] [CPU: ▼190.87ms] Passed 4 tests

Analyzing server-side resources used by Easy WP Tickets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.989.34 ▼12.18
Dashboard /wp-admin1.76 ▼1.295.39 ▼42.11
Posts /wp-admin/edit.php1.76 ▼1.354.64 ▼42.06
Add New Post /wp-admin/post-new.php1.76 ▼3.676.10 ▼642.45
Media Library /wp-admin/upload.php1.76 ▼1.245.16 ▼36.84

Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: 4 new tables, no new options
New tables
crm_subjects
crm_tracing
crm_tickets
crm_config

Browser metrics Passed 4 tests

A check of browser resources used by Easy WP Tickets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,759 ▲16316.11 ▲0.589.70 ▼1.0850.49 ▲3.49
Dashboard /wp-admin3,006 ▲755.93 ▼0.18159.16 ▲3.98123.63 ▲16.20
Posts /wp-admin/edit.php2,803 ▲642.70 ▼0.0181.68 ▲15.5489.16 ▼1.10
Add New Post /wp-admin/post-new.php1,533 ▲3518.36 ▼0.44363.94 ▼14.95110.23 ▲5.57
Media Library /wp-admin/upload.php1,868 ▲615.06 ▲0.03143.54 ▼11.05131.55 ▲3.58
Tickets /wp-admin/easywptickets.php?page=tickets260.900.1013.31
Asuntos /wp-admin/easywptickets.php?page=subjects260.900.069.04
Configuración /wp-admin/easywptickets.php?page=config260.900.069.65

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/easy-wp-tickets/easywptickets.php+16
    include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory

Smoke tests 50% from 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 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: mode in wp-content/plugins/easy-wp-tickets/custom/frontend-custom-agents.php on line 22
    • > PHP Warning
      include_once(): Failed opening 'includes/crm-admin-agents.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-wp-tickets/easywptickets.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_settings() in wp-content/plugins/easy-wp-tickets/includes/crm_motor_functions.php:16
    • > PHP Warning
      include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory in wp-content/plugins/easy-wp-tickets/easywptickets.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function showSupportTicketTable() in wp-content/plugins/easy-wp-tickets/custom/frontend-custom-agents.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_settings() in wp-content/plugins/easy-wp-tickets/includes/crm_motor_functions.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/easywptickets.php?page=tickets
    • > Network (severe)
    wp-admin/easywptickets.php?page=tickets - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/easywptickets.php?page=subjects
    • > Network (severe)
    wp-admin/easywptickets.php?page=subjects - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/easywptickets.php?page=config
    • > Network (severe)
    wp-admin/easywptickets.php?page=config - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === easy-wp-tickets === )
You can take inspiration from this readme.txt

easy-wp-tickets/easywptickets.php 92% from 13 tests

The primary PHP file in "Easy WP Tickets" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-wp-tickets.php" instead of "easywptickets.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
No dangerous file extensions were detected2,844 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP173222431,893
PO File2178264389
CSS27914316
JavaScript340246

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icons/icon-notification.png1.53KB0.58KB▼ 62.09%
img/icons/icon-close-lock.png0.28KB0.37KB0.00%
img/icons/cromo-tickets-icon.png0.43KB0.39KB▼ 9.34%
js/tinyeditor/images/icons.png15.88KB5.44KB▼ 65.72%
img/icons/icon-open-ticket.png0.33KB0.25KB▼ 23.95%