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

Code Review | Dynamic Countdown with ACF and Elementor

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

About plugin

  • Plugin page: dynamic-countdown...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-6.0
  • WordPress version: 6.3.1
  • First release: Dec 7, 2020
  • Latest release: Jul 13, 2022
  • Number of updates: 17
  • Update frequency: every 35.0 days
  • Top authors: kiiraklis94 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.23ms] 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 /3.48 ▲0.0138.71 ▼3.31
Dashboard /wp-admin3.33 ▼0.0246.02 ▼17.08
Posts /wp-admin/edit.php3.38 ▲0.0243.66 ▼4.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.51 ▼19.83
Media Library /wp-admin/upload.php3.25 ▲0.0236.35 ▼1.11

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, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

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 /2,804 ▲4314.15 ▼0.191.69 ▼0.0043.65 ▼0.40
Dashboard /wp-admin2,213 ▲365.58 ▼0.0784.01 ▼4.4378.21 ▲33.75
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0335.36 ▼0.6933.45 ▼0.86
Add New Post /wp-admin/post-new.php1,554 ▲2823.04 ▼0.55759.25 ▲56.3554.99 ▲4.41
Media Library /wp-admin/upload.php1,415 ▲154.24 ▲0.0296.41 ▼3.4170.32 ▲27.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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 add_action() in wp-content/plugins/dynamic-countdown-with-acf-and-elementor/options.php:3
    • > 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

User-side errors Passed 1 test

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

Optimizations

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.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • 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
  • 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")

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

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
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 functions360.00%
▷ Anonymous functions240.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon1.png0.69KB0.89KB0.00%