84% datelist

Code Review | Datelist - Online Reservation System

WordPress plugin Datelist - Online Reservation System scored84%from 54 tests.

About plugin

  • Plugin page: datelist
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 24, 2020
  • Latest release: Feb 19, 2021
  • Number of updates: 7
  • Update frequency: every 12.6 days
  • Top authors: aclarembeau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /530 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.06ms] Passed 4 tests

A check of server-side resources used by Datelist - Online Reservation System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.00 ▼14.17
Dashboard /wp-admin3.32 ▲0.0154.72 ▲4.37
Posts /wp-admin/edit.php3.37 ▲0.0150.97 ▲1.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.33 ▼6.74
Media Library /wp-admin/upload.php3.24 ▲0.0133.43 ▼1.14

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Datelist - Online Reservation System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.26 ▼1.134.05 ▲2.2437.60 ▼10.94
Dashboard /wp-admin2,224 ▲365.80 ▼0.10104.47 ▲1.1077.25 ▲36.39
Posts /wp-admin/edit.php2,104 ▲121.98 ▼0.0136.23 ▼5.1135.63 ▲4.30
Add New Post /wp-admin/post-new.php1,527 ▲817.59 ▼5.65714.35 ▲96.5760.24 ▲6.03
Media Library /wp-admin/upload.php1,403 ▲184.11 ▼0.12104.95 ▼0.6447.31 ▲2.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/datelist/datelist.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: reservation, booking

datelist/datelist.php 92% from 13 tests

"Datelist - Online Reservation System" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

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
Good job! No executable or dangerous file extensions detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.72KB1.67KB▼ 38.51%
images/icon.png0.27KB0.24KB▼ 12.36%