90% countdown-pro-block

Code Review | Countdown Pro for Gutenberg

WordPress plugin Countdown Pro for Gutenberg scored 90% from 54 tests.

About plugin

  • Plugin page: countdown-pro-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: May 15, 2022
  • Number of updates: 9
  • Update frequency: every 118.7 days
  • Top authors: alikhallad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.92ms] Passed 4 tests

Server-side resources used by Countdown Pro for Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0252.14 ▲0.06
Dashboard /wp-admin3.32 ▲0.0155.23 ▼7.78
Posts /wp-admin/edit.php3.37 ▲0.0155.24 ▼8.14
Add New Post /wp-admin/post-new.php7.16 ▲1.28123.01 ▲14.78
Media Library /wp-admin/upload.php3.24 ▲0.0139.53 ▲0.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Countdown Pro for Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲22023.46 ▲10.31193.05 ▲191.0940.84 ▼8.51
Dashboard /wp-admin2,209 ▲65.86 ▲0.03103.97 ▼17.3948.93 ▲1.18
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0241.24 ▼3.7133.89 ▼4.37
Add New Post /wp-admin/post-new.php6,423 ▲4,89520.62 ▼2.70942.22 ▲218.8737.73 ▼15.42
Media Library /wp-admin/upload.php1,388 ▲34.09 ▼0.14119.48 ▼12.9756.08 ▲10.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: countdown block, colorfull countdown, countdown for gutenberg, countdown, progress indicator

countdown-pro-block/countdown-pro-block.php 92% from 13 tests

"Countdown Pro for Gutenberg" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin91 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133556
PO File192331
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin