94% recurring-daily-countdown

Code Review | Recurring Daily Countdown

WordPress plugin Recurring Daily Countdown scored 94% from 54 tests.

About plugin

  • Plugin page: recurring-daily-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Sep 27, 2021
  • Latest release: Sep 27, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: karthicksivakumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 55 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
Install script ran successfully

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

Server-side resources used by Recurring Daily Countdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1340.06 ▲12.20
Dashboard /wp-admin3.07 ▲0.0247.32 ▲1.14
Posts /wp-admin/edit.php3.12 ▲0.0247.62 ▲4.55
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.27 ▼566.06
Media Library /wp-admin/upload.php3.01 ▲0.0136.80 ▲0.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Recurring Daily Countdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11015.96 ▲0.027.38 ▼2.8444.29 ▼7.00
Dashboard /wp-admin3,012 ▲815.96 ▲0.03144.46 ▼6.77120.67 ▲7.06
Posts /wp-admin/edit.php2,759 ▲202.70 ▲0.0167.92 ▲2.38101.74 ▲9.25
Add New Post /wp-admin/post-new.php1,696 ▲1318.77 ▲0.06372.97 ▼8.85108.58 ▲0.70
Media Library /wp-admin/upload.php1,827 ▲175.02 ▲0.02157.75 ▲5.62128.04 ▲4.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/recurring-daily-countdown/recurring-daily-countdown.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recurring-daily-countdown/menu/layout.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: recurring countdown, recurring daily countdown, countdown, daily countdown

recurring-daily-countdown/recurring-daily-countdown.php Passed 13 tests

Analyzing the main PHP file in "Recurring Daily Countdown" version 1.0.0
63 characters long description:
Recurring countdown that run countdown, daily for a fixed time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected132 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP62712103
JavaScript1131029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin