90% welcome-clock

Code Review | Welcome Clock

WordPress plugin Welcome Clock scored90%from 54 tests.

About plugin

  • Plugin page: welcome-clock
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 18, 2016
  • Latest release: May 8, 2023
  • Number of updates: 83
  • Update frequency: every 28.1 days
  • Top authors: tawhidurrahmandear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,656 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
Installer ran successfully

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

This is a short check of server-side resources used by Welcome Clock
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.00 ▼1.77
Dashboard /wp-admin3.31 ▼0.0457.33 ▼5.36
Posts /wp-admin/edit.php3.36 ▲0.0043.00 ▼1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.72 ▼16.43
Media Library /wp-admin/upload.php3.23 ▲0.0037.34 ▲4.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Welcome Clock
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.33 ▼1.071.82 ▼0.0646.48 ▲2.09
Dashboard /wp-admin2,206 ▲185.91 ▲0.05110.93 ▼8.1545.54 ▼0.64
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0234.66 ▼2.0234.43 ▼2.06
Add New Post /wp-admin/post-new.php1,533 ▲1923.31 ▲5.73688.68 ▲2.5159.37 ▼5.84
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.03103.01 ▲0.8445.30 ▲1.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: time, welcome message, clock, greetings, wish

welcome-clock/welcome-clock.php Passed 13 tests

"Welcome Clock" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Only PlugIn activation is enough! No need to use any short-code or to edit settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181236

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected