10% countdown-clock

Code Review | Countdown Clock

WordPress plugin Countdown Clock scored10%from 54 tests.

About plugin

  • Plugin page: countdown-clock
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2010
  • Latest release: Aug 23, 2022
  • Number of updates: 125
  • Update frequency: every 38.6 days
  • Top authors: enclick (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

600+ active /65,637 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/countdown-clock/countdown-clock.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; countdown_clock has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼52.11ms] Passed 4 tests

This is a short check of server-side resources used by Countdown Clock
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.37 ▼35.76
Dashboard /wp-admin2.29 ▼1.019.96 ▼48.89
Posts /wp-admin/edit.php2.29 ▼1.069.91 ▼45.15
Add New Post /wp-admin/post-new.php2.29 ▼3.5912.13 ▼78.63
Media Library /wp-admin/upload.php2.29 ▼0.9410.68 ▼26.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_countdown_clock
widget_theysaidso_widget

Browser metrics Passed 4 tests

Countdown Clock: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.031.75 ▼0.0542.66 ▼5.50
Dashboard /wp-admin2,195 ▲215.65 ▲0.0696.03 ▼5.3940.08 ▼4.90
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0337.54 ▲1.8833.13 ▼4.24
Add New Post /wp-admin/post-new.php1,526 ▼022.94 ▼0.32650.87 ▼31.1261.25 ▲1.19
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.01110.21 ▼9.8046.40 ▼5.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in countdown_clock is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_countdown_clock
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-clock/countdown-clock.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Compact layout), #2 (Horizontal layout), #3 (Vertical layout with animation), #4 (Compact layout with animation), #5 (Square layout with animation), #6 (Vertical Large layout with animation), #7 (Fireworks), #8 (Admin Panel), #9 (Summer countdown), #10 (Olympics countdown)
  • Tags: Please delete some tags, you are using 28 tag instead of maximum 10
Please take inspiration from this readme.txt

countdown-clock/countdown-clock.php 92% from 13 tests

The main PHP script in "Countdown Clock" version 1.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

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
Everything looks great! No dangerous files found in this plugin560 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2219100560

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity10.75
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin