89% cb-countdown-timer-widget-for-elementor

Code Review | Countdown Timer Widget for Elementor

WordPress plugin Countdown Timer Widget for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: cb-countdown-time...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2023
  • Latest release: Sep 25, 2023
  • Number of updates: 7
  • Update frequency: every 15.9 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /117 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.77ms] Passed 4 tests

A check of server-side resources used by Countdown Timer Widget for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.77 ▼6.61
Dashboard /wp-admin3.33 ▲0.0350.56 ▼2.09
Posts /wp-admin/edit.php3.38 ▲0.0353.62 ▲5.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.76 ▼5.80
Media Library /wp-admin/upload.php3.25 ▲0.0237.66 ▼0.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Countdown Timer Widget for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.28 ▼0.271.84 ▼0.9544.66 ▲0.78
Dashboard /wp-admin2,215 ▲385.62 ▼0.0493.54 ▲1.4343.38 ▼0.89
Posts /wp-admin/edit.php2,120 ▲171.98 ▼0.0242.58 ▲6.4137.75 ▲2.05
Add New Post /wp-admin/post-new.php1,543 ▲1523.31 ▲0.25624.10 ▼53.1843.67 ▼14.02
Media Library /wp-admin/upload.php1,420 ▲174.18 ▼0.02100.97 ▼12.7445.15 ▼5.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 ([screenshot-1.png] - The Countdown Widget settings in Elementor.), #2 ([screenshot-2.png] - An example of the Countdown Widget in action on a webpage.)
The official readme.txt might help

cb-countdown-timer-widget-for-elementor/countdown-widget.php 92% from 13 tests

The principal PHP file in "Countdown Timer Widget for Elementor" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cb-countdown-timer-widget-for-elementor.php" instead of "countdown-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected353 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3122135310
Markdown120036
CSS1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin