79% chimney-rock-support-tickets

Code Review | Chimney Rock Support Tickets

WordPress plugin Chimney Rock Support Tickets scored79%from 54 tests.

About plugin

  • Plugin page: chimney-rock-supp...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2022
  • Latest release: Nov 29, 2023
  • Number of updates: 22
  • Update frequency: every 30.2 days
  • Top authors: sdev1913 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /498 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.48MB] [CPU: ▲1.99ms] Passed 4 tests

Server-side resources used by Chimney Rock Support Tickets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4140.01 ▲5.05
Dashboard /wp-admin3.84 ▲0.5449.23 ▼1.70
Posts /wp-admin/edit.php3.90 ▲0.5451.87 ▲9.28
Add New Post /wp-admin/post-new.php6.37 ▲0.4892.59 ▼4.67
Media Library /wp-admin/upload.php3.70 ▲0.4741.48 ▲11.51
Settings /wp-admin/edit.php?post_type=crm_support_ticket&page=crm-settings3.6733.08
All Support Tickets /wp-admin/edit.php?post_type=crm_support_ticket3.7538.71
Reports /wp-admin/edit.php?post_type=crm_support_ticket&page=crm-reports3.6735.34
Add New /wp-admin/post-new.php?post_type=crm_support_ticket3.7645.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 20 new options
New tables
wp_crm_tickets
New WordPress options
can_compress_scripts
crm_support_tickets_enable_customer_email
widget_recent-posts
crm_support_tickets_captcha_secret_key
theysaidso_admin_options
crm_support_tickets_enable_auto_close
widget_theysaidso_widget
crm_support_tickets_auto_close_days
crm_support_tickets_plugin_version
crm_support_tickets_slug_to_tickets
...

Browser metrics Passed 4 tests

Chimney Rock Support Tickets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲16913.42 ▼1.297.93 ▲6.4537.17 ▲1.27
Dashboard /wp-admin2,232 ▲545.61 ▼0.0889.76 ▼23.5940.63 ▼5.16
Posts /wp-admin/edit.php2,173 ▲762.00 ▼0.0238.78 ▲3.1537.23 ▲5.63
Add New Post /wp-admin/post-new.php1,557 ▲2323.57 ▲0.54635.78 ▼7.1060.45 ▲10.98
Media Library /wp-admin/upload.php1,437 ▲344.18 ▼0.0394.57 ▼3.9141.48 ▼2.29
Settings /wp-admin/edit.php?post_type=crm_support_ticket&page=crm-settings1,1562.0224.9731.34
All Support Tickets /wp-admin/edit.php?post_type=crm_support_ticket1,2141.9331.0432.81
Reports /wp-admin/edit.php?post_type=crm_support_ticket&page=crm-reports8712.5330.8633.91
Add New /wp-admin/post-new.php?post_type=crm_support_ticket1,7342.5554.3158.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_crm_tickets
  • Zombie WordPress options detected upon uninstall: 19 options
    • crm_support_tickets_enable_auto_close
    • widget_recent-posts
    • crm_support_tickets_from_email
    • widget_recent-comments
    • theysaidso_admin_options
    • crm_support_tickets_enable_captcha
    • crm_support_tickets_email_from_name
    • db_upgraded
    • crm_support_tickets_enable_admin_email
    • crm_support_tickets_db_version
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% 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:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

chimney-rock-support-tickets/functions.php 85% from 13 tests

The main file in "Chimney Rock Support Tickets" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chimney-rock-support-tickets.php" instead of "functions.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,017 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP146172711,880
CSS2170100
JavaScript110037

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.30
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods88
▷ Static methods44.55%
▷ Public methods88100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png0.55KB0.49KB▼ 11.64%