93% dynamic-countdown-with-acf-and-elementor

Code Review | Dynamic Countdown with ACF and Elementor

WordPress plugin Dynamic Countdown with ACF and Elementor scored 93% from 54 tests.

About plugin

  • Plugin page: dynamic-countdown...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-5.6
  • WordPress version: 5.8.1
  • First release: Dec 7, 2020
  • Latest release: Feb 17, 2021
  • Number of updates: 15
  • Update frequency: every 5.6 days
  • Top authors: kiiraklis94 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 706 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Dynamic Countdown with ACF and Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.63 ▲14.47
Dashboard /wp-admin3.07 ▲0.0252.88 ▲6.23
Posts /wp-admin/edit.php3.13 ▲0.0243.29 ▼1.62
Add New Post /wp-admin/post-new.php5.44 ▲0.01101.02 ▼571.27
Media Library /wp-admin/upload.php3.02 ▲0.0134.19 ▼13.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Countdown with ACF and Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12615.90 ▲0.1310.17 ▼0.1452.48 ▲2.51
Dashboard /wp-admin2,979 ▲485.94 ▼0.09143.71 ▼1.47142.29 ▲30.40
Posts /wp-admin/edit.php2,776 ▲372.70 ▼0.0168.47 ▼3.2598.00 ▲7.53
Add New Post /wp-admin/post-new.php1,696 ▲1318.71 ▼0.02404.83 ▼2.48111.62 ▼1.80
Media Library /wp-admin/upload.php1,770 ▼525.00 ▼0.01142.39 ▼15.82154.05 ▲20.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dynamic-countdown-with-acf-and-elementor/dynamic-countdown-with-acf-elementor.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-countdown-with-acf-and-elementor/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt might help

dynamic-countdown-with-acf-and-elementor/dynamic-countdown-with-acf-elementor.php 69% from 13 tests

The primary PHP file in "Dynamic Countdown with ACF and Elementor" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamic-countdown-with-acf-and-elementor.php" instead of "dynamic-countdown-with-acf-elementor.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions360.00%
▷ Anonymous functions240.00%
▷ 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings