89% countdown-timer-block

Code Review | Countdown Timer for WordPress Block Editor

WordPress plugin Countdown Timer for WordPress Block Editor scored89%from 54 tests.

About plugin

  • Plugin page: countdown-timer-b...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: Aug 14, 2021
  • Number of updates: 13
  • Update frequency: every 52.1 days
  • Top authors: shaikhaezaz80 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.79ms] Passed 4 tests

Analyzing server-side resources used by Countdown Timer for WordPress Block Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.25 ▼3.92
Dashboard /wp-admin3.31 ▼0.0447.20 ▼17.13
Posts /wp-admin/edit.php3.36 ▲0.0046.66 ▼5.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.21 ▼8.76
Media Library /wp-admin/upload.php3.23 ▲0.0039.99 ▲2.01

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Countdown Timer for WordPress Block Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.61 ▼0.7710.73 ▲9.0242.23 ▲0.14
Dashboard /wp-admin2,189 ▲95.58 ▼0.1084.80 ▼7.4438.31 ▼0.86
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0237.28 ▼5.7330.00 ▼13.19
Add New Post /wp-admin/post-new.php6,375 ▲4,84928.39 ▲10.69862.42 ▲177.6938.61 ▼19.65
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.01103.83 ▲4.9745.67 ▲1.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

countdown-timer-block/countdown-timer-for-gutenberg.php 85% from 13 tests

The main PHP file in "Countdown Timer for WordPress Block Editor" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("countdown-timer-block.php" instead of "countdown-timer-for-gutenberg.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,504 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44657111,033
CSS3917391
PHP382755
PO File10014
Sass11111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
build/assets/img/clock4.png5.83KB2.86KB▼ 50.95%