10% reservation-system

Code Review | Reservation System

WordPress plugin Reservation System scored10%from 54 tests.

About plugin

  • Plugin page: reservation-system
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 19, 2018
  • Latest release: Aug 9, 2021
  • Number of updates: 7
  • Update frequency: every 155.1 days
  • Top authors: iffikhan30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Reservationsystem' not found

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by Reservation System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.71 ▲2.24
Dashboard /wp-admin3.37 ▲0.0753.23 ▲2.76
Posts /wp-admin/edit.php3.43 ▲0.0654.09 ▼3.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0685.53 ▼19.27
Media Library /wp-admin/upload.php3.30 ▲0.0642.24 ▲5.20
Reservations /wp-admin/edit.php?post_type=reservation3.3439.19
Add New /wp-admin/post-new.php?post_type=reservation3.4149.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Reservation System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.52 ▼1.1312.97 ▲11.1046.85 ▲3.98
Dashboard /wp-admin2,222 ▲455.56 ▼0.0387.59 ▼4.4943.66 ▼2.70
Posts /wp-admin/edit.php2,127 ▲242.01 ▲0.0339.71 ▼6.9935.15 ▼3.93
Add New Post /wp-admin/post-new.php1,548 ▲2223.65 ▲0.47686.67 ▼25.0358.61 ▼2.66
Media Library /wp-admin/upload.php1,427 ▲274.14 ▼0.06100.26 ▼8.2842.07 ▼3.77
Reservations /wp-admin/edit.php?post_type=reservation1,1001.9331.0832.18
Add New /wp-admin/post-new.php?post_type=reservation2,2927.62173.6767.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'Reservationsystem' not found
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: event, event system, reservation system, system, reservation

reservation-system/reservationsystem.php 85% from 13 tests

The principal PHP file in "Reservation System" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("reservation-system.php" instead of "reservationsystem.php")

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
Everything looks great! No dangerous files found in this plugin1,841 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS281701,442
PHP43432272
JavaScript22131127

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.50
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected