90% multisite-ticket-system

Code Review | Multisite Ticket System

WordPress plugin Multisite Ticket System scored90%from 54 tests.

About plugin

  • Plugin page: multisite-ticket-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2016
  • Latest release: Sep 22, 2017
  • Number of updates: 6
  • Update frequency: every 99.5 days
  • Top authors: merleM_157 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.31MB] [CPU: ▼3.19ms] Passed 4 tests

An overview of server-side resources used by Multisite Ticket System
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2943.37 ▲2.19
Dashboard /wp-admin3.66 ▲0.3655.98 ▲3.47
Posts /wp-admin/edit.php3.71 ▲0.3551.40 ▼0.01
Add New Post /wp-admin/post-new.php6.18 ▲0.2986.63 ▼18.42
Media Library /wp-admin/upload.php3.52 ▲0.2941.27 ▲6.44
Multisite Ticket System /wp-admin/admin.php?page=msts_plugin3.5339.30
Create ticket /wp-admin/admin.php?page=msts_create_ticket3.4935.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Multisite Ticket System: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.28 ▼0.082.01 ▲0.2341.88 ▲2.01
Dashboard /wp-admin2,231 ▲545.56 ▼0.1089.59 ▼46.0047.34 ▼11.66
Posts /wp-admin/edit.php2,136 ▲362.00 ▼0.0135.13 ▼7.7046.27 ▲5.04
Add New Post /wp-admin/post-new.php1,405 ▼13020.40 ▲2.37599.28 ▼28.30179.05 ▲106.26
Media Library /wp-admin/upload.php1,436 ▲424.23 ▼0.10105.80 ▲0.2645.93 ▲2.58
Multisite Ticket System /wp-admin/admin.php?page=msts_plugin1,2652.0528.0738.15
Create ticket /wp-admin/admin.php?page=msts_create_ticket9691.9924.1834.42

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: multisite network, network admin, support, ticket, super admin...

multisite-ticket-system/multisite-ticket-system.php 92% from 13 tests

"Multisite Ticket System" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,158 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP113487991,658
PO File3186387414
CSS19086

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity59.33
▷ Minimum class complexity6.00
▷ Maximum class complexity125.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods83
▷ Static methods22.41%
▷ Public methods6072.29%
▷ Protected methods2125.30%
▷ Private methods22.41%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/msts_logo.png0.77KB0.94KB0.00%
assets/images/editImg.png0.45KB0.35KB▼ 21.18%
assets/images/deleteImg.png0.58KB0.64KB0.00%