78% wp-waitlist

Code Review | WP-Waitlist

WordPress plugin WP-Waitlist scored78%from 54 tests.

About plugin

  • Plugin page: wp-waitlist
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: May 6, 2014
  • Number of updates: 4
  • Update frequency: every 550.3 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼9.25ms] Passed 4 tests

A check of server-side resources used by WP-Waitlist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.68 ▼5.75
Dashboard /wp-admin3.32 ▲0.0248.06 ▼5.44
Posts /wp-admin/edit.php3.38 ▲0.0247.49 ▼1.55
Add New Post /wp-admin/post-new.php5.46 ▼0.4279.57 ▼22.24
Media Library /wp-admin/upload.php3.25 ▲0.0233.12 ▼3.55
WP-Waitlist /wp-admin/options-general.php?page=wp-waitlist_settings3.2134.87

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WP-Waitlist: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.68 ▼0.631.66 ▼0.4440.11 ▼4.78
Dashboard /wp-admin2,229 ▲235.98 ▲1.08110.60 ▲5.5140.24 ▼5.56
Posts /wp-admin/edit.php2,111 ▲112.01 ▲0.0139.36 ▲2.7234.27 ▼0.11
Add New Post /wp-admin/post-new.php6,346 ▲4,81526.13 ▲2.93913.33 ▲244.7854.59 ▲2.28
Media Library /wp-admin/upload.php1,405 ▲54.27 ▲0.08100.44 ▼5.7542.73 ▼0.78
WP-Waitlist /wp-admin/options-general.php?page=wp-waitlist_settings8142.0626.9029.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-waitlist/wp-waitlist.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp-waitlist_settings
    • > Network (severe)
    wp-content/plugins/wp-waitlist/wp-waitlist.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: user lists, user management, developer

wp-waitlist/wp-waitlist.php 92% from 13 tests

The main PHP file in "WP-Waitlist" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin440 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14165392
JavaScript12248

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2062.50%
▷ Protected methods00.00%
▷ Private methods1237.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected