84% advance-waitlist

Code Review | Advance Waitlist

WordPress plugin Advance Waitlist scored84%from 54 tests.

About plugin

  • Plugin page: advance-waitlist
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: Mar 31, 2022
  • Number of updates: 29
  • Update frequency: every 74.2 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,459 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.00MB] [CPU: ▼1.02ms] Passed 4 tests

Analyzing server-side resources used by Advance Waitlist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.79 ▲3.43
Dashboard /wp-admin3.31 ▲0.0045.21 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▼0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.13 ▲1.17
Media Library /wp-admin/upload.php3.23 ▲0.0031.08 ▲1.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Advance Waitlist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.122.06 ▲0.1842.60 ▼4.03
Dashboard /wp-admin2,209 ▲214.87 ▼0.92109.90 ▼5.9841.61 ▼4.12
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0039.42 ▲5.0934.25 ▲0.51
Add New Post /wp-admin/post-new.php1,521 ▼823.00 ▼0.18576.14 ▼50.2747.43 ▼8.34
Media Library /wp-admin/upload.php1,391 ▲94.17 ▼0.0793.89 ▼5.7240.89 ▼1.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: add to waitlist, woocommerce waitlist, advance waitlist, notified when in stock, out of stock...

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

This is the main PHP file of "Advance Waitlist" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advance-waitlist.php" instead of "ced_waitlist.php")
  • Description: 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 check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,187 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP82776541,668
CSS31412221
JavaScript13716171
PO File14848127

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin