84% countdown-timer-for-elementor

Code Review | Countdown Timer for Elementor

WordPress plugin Countdown Timer for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: countdown-timer-f...
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Aug 19, 2023
  • Number of updates: 20
  • Update frequency: every 88.4 days
  • Top authors: shaikhaezaz80 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

6,000+ active /58,166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by Countdown Timer for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.79 ▲0.26
Dashboard /wp-admin3.34 ▼0.0160.54 ▼5.59
Posts /wp-admin/edit.php3.39 ▲0.0356.06 ▲4.10
Add New Post /wp-admin/post-new.php5.92 ▲0.03105.45 ▼15.16
Media Library /wp-admin/upload.php3.26 ▲0.0340.88 ▲2.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Countdown Timer for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.40 ▼0.967.98 ▲6.1745.99 ▲4.17
Dashboard /wp-admin2,202 ▲255.63 ▼0.0491.89 ▼5.4143.46 ▼0.95
Posts /wp-admin/edit.php2,113 ▲132.12 ▲0.1740.90 ▲0.9337.16 ▲1.14
Add New Post /wp-admin/post-new.php1,536 ▲1023.28 ▼0.17613.70 ▼13.3767.69 ▲17.32
Media Library /wp-admin/upload.php1,410 ▲164.15 ▼0.1198.07 ▼2.5740.82 ▼4.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/countdown-timer-for-elementor/inc/elementor-helper.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
8 plugin tags: oto, elementor countdown timer widget, timer module, elementor addon, elementor countdown addon...

countdown-timer-for-elementor/countdown-timer-for-elementor.php Passed 13 tests

The main PHP script in "Countdown Timer for Elementor" version 1.3.4 is automatically included on every request by WordPress
94 characters long description:
Showcase a countdown timer for your next upcoming event or offers with elementor page builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,378 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12722712
PHP35963620
CSS18346

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods342.86%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 files were detected