89% cinema-seat-reservation-xcloud-pro

Code Review | Cinema Seat Reservation - Ticket System

WordPress plugin Cinema Seat Reservation - Ticket System scored 89% from 54 tests.

About plugin

  • Plugin page: cinema-seat-reser...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-6.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2017
  • Latest release: Apr 6, 2023
  • Number of updates: 11
  • Update frequency: every 178.4 days
  • Top authors: lucianopreite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 4,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.66ms] Passed 4 tests

This is a short check of server-side resources used by Cinema Seat Reservation - Ticket System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.23 ▼2.22
Dashboard /wp-admin3.33 ▲0.0342.83 ▼4.02
Posts /wp-admin/edit.php3.38 ▲0.0345.15 ▲1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.03 ▼1.95
Media Library /wp-admin/upload.php3.25 ▲0.0234.54 ▲2.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Cinema Seat Reservation - Ticket System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.47 ▲0.181.73 ▼0.1339.13 ▼7.61
Dashboard /wp-admin2,219 ▲315.86 ▲1.0095.05 ▼15.1543.07 ▲2.11
Posts /wp-admin/edit.php2,105 ▲192.12 ▲0.0735.20 ▼1.0634.08 ▲2.96
Add New Post /wp-admin/post-new.php1,546 ▲1323.55 ▲0.33582.52 ▼242.9251.35 ▼5.83
Media Library /wp-admin/upload.php1,407 ▲224.20 ▼0.0597.39 ▼3.3443.51 ▼3.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

cinema-seat-reservation-xcloud-pro/xcloud-cinema-seat-reservation.php 77% from 13 tests

Analyzing the main PHP file in "Cinema Seat Reservation - Ticket System" version 1.0.5
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cinema-seat-reservation-xcloud-pro.php" instead of "xcloud-cinema-seat-reservation.php")
  • Description: The description should be shorter than 140 characters (currently 243 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3313387
PO File1131859

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
No PNG images were found in this plugin