78% smartwaiver-waiver-widget

Code Review | Smartwaiver Waiver Widget

WordPress plugin Smartwaiver Waiver Widget scored 78% from 54 tests.

About plugin

  • Plugin page: smartwaiver-waive...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2014
  • Latest release: Nov 26, 2019
  • Number of updates: 17
  • Update frequency: every 124.5 days
  • Top authors: Smartwaiver (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 6,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Smartwaiver Waiver Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.44 ▲1.24
Dashboard /wp-admin3.31 ▲0.0148.25 ▲1.74
Posts /wp-admin/edit.php3.36 ▲0.0143.98 ▲0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.54 ▼7.97
Media Library /wp-admin/upload.php3.23 ▲0.0135.22 ▲3.62
Smartwaiver /wp-admin/options-general.php?page=smartwaiver_settings3.2332.07

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smartwaiver Waiver Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.17 ▲0.021.82 ▲0.0243.01 ▲0.52
Dashboard /wp-admin2,213 ▲74.86 ▲0.01113.04 ▼1.6542.58 ▲0.53
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0234.76 ▲1.0834.96 ▼0.05
Add New Post /wp-admin/post-new.php1,539 ▲2023.25 ▼0.07635.71 ▲24.0666.29 ▲22.12
Media Library /wp-admin/upload.php1,389 ▼24.41 ▲0.21103.59 ▲2.5445.76 ▲0.28
Smartwaiver /wp-admin/options-general.php?page=smartwaiver_settings8662.0227.1033.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=smartwaiver_settings
    • > Notice in wp-content/plugins/smartwaiver-waiver-widget/smartwaiver_config_page.php+55
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smartwaiver-waiver-widget/smartwaiver_config_page.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
3 plugin tags: smartwaiver, digital waiver, waiver

smartwaiver-waiver-widget/smartwaiver_wp_plugin.php 92% from 13 tests

The primary PHP file in "Smartwaiver Waiver Widget" version 2.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("smartwaiver-waiver-widget.php" instead of "smartwaiver_wp_plugin.php")

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 detected103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21719103

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.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin