89% digital-clock-block

Code Review | Digital Clock Block

WordPress plugin Digital Clock Block scored89%from 54 tests.

About plugin

  • Plugin page: digital-clock-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Apr 30, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: raihancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Digital Clock Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▼4.44
Dashboard /wp-admin3.31 ▲0.0147.69 ▼6.99
Posts /wp-admin/edit.php3.37 ▲0.0148.74 ▼2.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.11 ▼5.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.75 ▲3.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Digital Clock Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.38 ▼0.978.61 ▲6.7141.74 ▼4.73
Dashboard /wp-admin2,198 ▲215.63 ▼0.0487.25 ▼17.0340.55 ▼2.94
Posts /wp-admin/edit.php2,103 ▲31.96 ▲0.0036.56 ▼0.7133.20 ▼3.52
Add New Post /wp-admin/post-new.php6,370 ▲4,84227.66 ▲4.60935.32 ▲245.6739.93 ▼13.47
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0598.55 ▼17.2745.28 ▼4.05

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (This is the first option), #2 (This is the second option), #3 (This is the third option), #4 (This is the fourth option), #5 (This is the Output)
You can look at the official readme.txt

digital-clock-block/plugin.php 92% from 13 tests

The primary PHP file in "Digital Clock Block" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digital-clock-block.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin432 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript630135210
Sass461117
CSS2152968
PHP2134937

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions2
▷ Named functions2100.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