83% intelly-countdown

Code Review | Evergreen Countdown Timer

WordPress plugin Evergreen Countdown Timer scored83%from 54 tests.

About plugin

  • Plugin page: intelly-countdown
  • Plugin version: 2.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2016
  • Latest release: Mar 1, 2023
  • Number of updates: 43
  • Update frequency: every 61.3 days
  • Top authors: IntellyWP (88.37%)data443 (13.95%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active /100,964 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.12MB] [CPU: ▼2.31ms] Passed 4 tests

An overview of server-side resources used by Evergreen Countdown Timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.58 ▲4.91
Dashboard /wp-admin3.47 ▲0.1777.39 ▲24.95
Posts /wp-admin/edit.php3.51 ▲0.1651.39 ▼0.43
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.97 ▼10.21
Media Library /wp-admin/upload.php3.32 ▲0.0935.36 ▼3.50

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 13 new options
New WordPress options
EC_PluginInstallDate[intelly-countdown]
db_upgraded
EC_PluginUpdateDate[intelly-countdown]
widget_recent-comments
EC_ShowActivationNotice
EC_ShowWhatsNew
widget_recent-posts
EC_TrackingEnable
widget_theysaidso_widget
EC_TrackingLastSend[intelly-countdown]
...

Browser metrics Passed 4 tests

A check of browser resources used by Evergreen Countdown Timer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.66 ▼0.559.90 ▲8.1343.35 ▼1.02
Dashboard /wp-admin2,207 ▲195.86 ▼0.02101.59 ▼4.6741.48 ▲0.70
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0536.11 ▼1.1432.81 ▼2.61
Add New Post /wp-admin/post-new.php1,545 ▲2618.06 ▼5.12640.70 ▼54.3555.66 ▼2.74
Media Library /wp-admin/upload.php1,395 ▲104.18 ▼0.1196.63 ▼18.6143.38 ▼7.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 14 options in the database
    • EC_TrackingEnable
    • widget_recent-posts
    • EC_Active
    • theysaidso_admin_options
    • widget_recent-comments
    • EC_PluginFirstInstall
    • can_compress_scripts
    • EC_ShowActivationNotice
    • widget_theysaidso_widget
    • db_upgraded
    • ...

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
Good news, no errors were detected

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 take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/intelly-countdown/includes/install.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ICP_Recursive_ArrayAccess' not found in wp-content/plugins/intelly-countdown/includes/classes/session/class-session.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intelly-countdown/includes/classes/session/session.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/intelly-countdown/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/intelly-countdown/includes/core.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ICP_Options' not found in wp-content/plugins/intelly-countdown/includes/classes/utils/PluginOptions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/intelly-countdown/includes/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ICP_AbstractDetect' not found in wp-content/plugins/intelly-countdown/includes/classes/core/detect/CookieDetect.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ICP_AbstractDetect' not found in wp-content/plugins/intelly-countdown/includes/classes/core/detect/IpAddressDetect.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (A simple manager to create, manage and edit every countdown, plus get the shortcodes.), #2 (The essential settings to create the perfect scarcity timer), #3 (Modify the look and feel of your countdown in seconds)
The official readme.txt might help

intelly-countdown/index.php 92% from 13 tests

The primary PHP file in "Evergreen Countdown Timer" version 2.0.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("intelly-countdown.php" instead of "index.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 detected61,826 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
CSS111491,89830,848
JavaScript743,7852,34619,330
PHP386106328,493
SVG2002,959
PO File6480196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity61.62
▷ Minimum class complexity1.00
▷ Maximum class complexity517.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes14.00%
Methods482
▷ Static methods10.21%
▷ Public methods42187.34%
▷ Protected methods244.98%
▷ Private methods377.68%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants49
▷ Global constants3775.51%
▷ Class constants1224.49%
▷ Public constants12100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.63MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/repeat.png0.87KB0.47KB▼ 45.51%
screenshot-1.png90.64KB27.82KB▼ 69.30%
assets/images/select-all.png0.68KB0.37KB▼ 45.45%
assets/images/internet.png0.83KB0.79KB▼ 4.91%
assets/images/tick.png0.80KB0.64KB▼ 19.02%