84% deal-or-announcement-with-countdown-timer

Code Review | deal or announcement with countdown timer

WordPress plugin deal or announcement with countdown timer scored 84% from 54 tests.

About plugin

  • Plugin page: deal-or-announcem...
  • Plugin version: 10.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 84
  • Update frequency: every 58.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 40,492 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: ▼2.75ms] Passed 4 tests

Server-side resources used by deal or announcement with countdown timer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.56 ▲3.44
Dashboard /wp-admin3.32 ▲0.0250.55 ▼0.16
Posts /wp-admin/edit.php3.37 ▲0.0243.79 ▼2.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.61 ▼9.48
Media Library /wp-admin/upload.php3.24 ▲0.0236.41 ▲0.76
Deal with countdown /wp-admin/options-general.php?page=deal-with-countdown3.2932.49

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 12 new options
New tables
wp_gCountdown
New WordPress options
deal_or_announcement_with_countdown_timer_title
deal_or_announcement_with_countdown_timer_text_color
can_compress_scripts
deal_or_announcement_with_countdown_timer_text_align
widget_theysaidso_widget
deal_or_announcement_with_countdown_timer_caption
db_upgraded
theysaidso_admin_options
widget_recent-posts
deal_or_announcement_with_countdown_timer_timer_color
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for deal or announcement with countdown timer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.14 ▼1.242.60 ▲0.9446.44 ▲4.11
Dashboard /wp-admin2,213 ▲224.81 ▼0.07108.48 ▲6.4646.81 ▲3.41
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0534.97 ▼1.6631.19 ▼1.00
Add New Post /wp-admin/post-new.php1,517 ▲317.73 ▲0.23618.27 ▼60.7565.87 ▲7.46
Media Library /wp-admin/upload.php1,392 ▲74.15 ▼0.1299.16 ▼7.8742.98 ▼3.62
Deal with countdown /wp-admin/options-general.php?page=deal-with-countdown8772.0323.3224.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/deal-or-announcement-with-countdown-timer/pages/content-management-show.php
    • > /wp-content/plugins/deal-or-announcement-with-countdown-timer/deal-or-announcement-with-countdown-timer.php
    • > /wp-content/plugins/deal-or-announcement-with-countdown-timer/pages/widget-setting.php
    • > /wp-content/plugins/deal-or-announcement-with-countdown-timer/pages/content-management-edit.php
    • > /wp-content/plugins/deal-or-announcement-with-countdown-timer/pages/content-management-add.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: offers, widget, announcement, countdown, deal...

deal-or-announcement-with-countdown-timer/deal-or-announcement-with-countdown-timer.php Passed 13 tests

"deal or announcement with countdown timer" version 10.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
This plugin will display your announcement with countdown timer.

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
Good job! No executable or dangerous file extensions detected1,178 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP68933821
PO File2108170245
JavaScript21018112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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