94% advance-waitlist

Code Review | Advance Waitlist

WordPress plugin Advance Waitlist scored 94% from 54 tests.

About plugin

  • Plugin page: advance-waitlist
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.9.2
  • First release: May 10, 2016
  • Latest release: Nov 19, 2021
  • Number of updates: 28
  • Update frequency: every 72.1 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,062 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Advance Waitlist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0158.45 ▲10.54
Dashboard /wp-admin3.41 ▲0.0033.12 ▼0.08
Posts /wp-admin/edit.php3.64 ▲0.0037.39 ▲1.88
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.19 ▼1,171.48
Media Library /wp-admin/upload.php3.29 ▲0.0022.23 ▼1.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advance Waitlist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.98 ▼0.055.92 ▲0.292.16 ▼0.31
Dashboard /wp-admin2,888 ▲346.12 ▼0.09113.73 ▼17.08152.21 ▼8.57
Posts /wp-admin/edit.php2,691 ▼03.22 ▼0.1462.45 ▼2.52144.19 ▲3.18
Add New Post /wp-admin/post-new.php1,661 ▲116.14 ▼4.09415.08 ▼16.04150.43 ▼2.45
Media Library /wp-admin/upload.php1,701 ▲35.44 ▼0.10132.65 ▼7.91183.22 ▼4.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/advance-waitlist/templates/admin-oos_prod.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
10 plugin tags: waitlist, woocommerce waitlist, email notification, add to waitlist, product reservation...

advance-waitlist/ced_waitlist.php 85% from 13 tests

This is the main PHP file of "Advance Waitlist" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advance-waitlist.php" instead of "ced_waitlist.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,186 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP82776501,667
CSS31412221
JavaScript13716171
PO File14848127

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity29.67
▷ Minimum class complexity8.00
▷ Maximum class complexity53.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected