93% form-countdown-for-givewp

Code Review | Form Countdown for GiveWP

WordPress plugin Form Countdown for GiveWP scored 93% from 54 tests.

About plugin

  • Plugin page: form-countdown-fo...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 5.8.1
  • First release: Mar 28, 2020
  • Latest release: Mar 6, 2021
  • Number of updates: 5
  • Update frequency: every 68.8 days
  • Top authors: webdevmattcrom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,340 total downloads


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.03MB] [CPU: ▼141.34ms] Passed 4 tests

This is a short check of server-side resources used by Form Countdown for GiveWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0333.43 ▼0.23
Dashboard /wp-admin3.09 ▲0.0443.38 ▲0.98
Posts /wp-admin/edit.php3.14 ▲0.0347.51 ▲5.01
Add New Post /wp-admin/post-new.php5.45 ▲0.0186.27 ▼565.14
Media Library /wp-admin/upload.php3.03 ▲0.0333.83 ▼0.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Form Countdown for GiveWP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11916.19 ▲0.588.73 ▼1.9746.14 ▼0.25
Dashboard /wp-admin2,979 ▲486.12 ▼0.02133.43 ▼10.91115.64 ▼3.97
Posts /wp-admin/edit.php2,751 ▲122.72 ▲0.0059.44 ▼0.7895.29 ▲1.87
Add New Post /wp-admin/post-new.php1,880 ▲21019.20 ▲0.08386.75 ▲9.46108.43 ▼4.68
Media Library /wp-admin/upload.php1,819 ▲125.04 ▲0.01148.81 ▲1.77120.12 ▲1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-countdown-for-givewp/includes/actions.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/form-countdown-for-givewp/includes/admin/class-form-metabox-setting.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/form-countdown-for-givewp/give-form-countdown.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/form-countdown-for-givewp/template/countdown_clock_1.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The Form Countdown Clock on a donation form.), #2 (The Form Countdown Settings.)
  • Screenshots: No descriptions were found for these screenshots #0, #0 in form-countdown-for-givewp/assets to your readme.txt
You can look at the official readme.txt

form-countdown-for-givewp/give-form-countdown.php 85% from 13 tests

This is the main PHP file of "Form Countdown for GiveWP" version 2.0, 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 ("form-countdown-for-givewp.php" instead of "give-form-countdown.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin550 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.00
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods210.53%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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
PNG images were not found in this plugin