89% tsa-wait-times

Code Review | TSA Wait Times

WordPress plugin TSA Wait Times scored89%from 54 tests.

About plugin

  • Plugin page: tsa-wait-times
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: May 22, 2022
  • Number of updates: 5
  • Update frequency: every 161.4 days
  • Top authors: jdyken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.17ms] Passed 4 tests

This is a short check of server-side resources used by TSA Wait Times
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.61 ▼0.92
Dashboard /wp-admin3.35 ▲0.0451.19 ▼0.65
Posts /wp-admin/edit.php3.40 ▲0.0452.47 ▲0.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.88 ▼18.71
Media Library /wp-admin/upload.php3.27 ▲0.0434.94 ▼4.40
TSA Wait Times Settings /wp-admin/options-general.php?page=tsa_settings3.2430.90

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TSA Wait Times
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▲0.001.84 ▲0.0343.80 ▲1.18
Dashboard /wp-admin2,199 ▲195.61 ▼0.0094.79 ▲3.8440.04 ▼4.39
Posts /wp-admin/edit.php2,107 ▲102.02 ▲0.0338.81 ▲0.8634.01 ▼0.79
Add New Post /wp-admin/post-new.php1,540 ▲1418.40 ▼4.80604.58 ▼129.5161.32 ▲0.11
Media Library /wp-admin/upload.php1,407 ▲104.15 ▼0.0397.40 ▼20.3544.54 ▼5.43
TSA Wait Times Settings /wp-admin/options-general.php?page=tsa_settings9461.9923.1427.84

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 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
6 plugin tags: times, precheck, security, checkpoint, tsa...

tsa-wait-times/tsa-wait-times.php 69% from 13 tests

The main PHP file in "TSA Wait Times" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: Prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS121171,317
JavaScript1150316641
PHP22473202

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin