90% wpc-countdown-timer

Code Review | WPC Countdown Timer for WooCommerce

WordPress plugin WPC Countdown Timer for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-countdown-timer
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Oct 16, 2023
  • Number of updates: 63
  • Update frequency: every 20.7 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /34,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.27ms] Passed 4 tests

This is a short check of server-side resources used by WPC Countdown Timer for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3243.55 ▲3.87
Dashboard /wp-admin3.62 ▲0.3148.56 ▲0.12
Posts /wp-admin/edit.php3.73 ▲0.3846.21 ▼0.89
Add New Post /wp-admin/post-new.php6.22 ▲0.3382.91 ▼7.77
Media Library /wp-admin/upload.php3.54 ▲0.3135.19 ▼0.54
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.7231.86
About /wp-admin/admin.php?page=wpclever3.5131.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WPC Countdown Timer for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲8014.24 ▼0.311.69 ▼0.2344.13 ▲3.86
Dashboard /wp-admin2,275 ▲1045.61 ▲0.0779.04 ▼7.5176.08 ▲33.05
Posts /wp-admin/edit.php2,181 ▲812.03 ▲0.0535.81 ▲0.2632.52 ▼2.06
Add New Post /wp-admin/post-new.php1,600 ▲7423.10 ▼0.57720.70 ▲54.3851.55 ▲2.34
Media Library /wp-admin/upload.php1,477 ▲774.19 ▲0.0291.77 ▼20.0690.60 ▲44.65
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1234.8253.68
About /wp-admin/admin.php?page=wpclever1,3962.1430.1035.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

wpc-countdown-timer/wpc-countdown-timer.php Passed 13 tests

The main PHP file in "WPC Countdown Timer for WooCommerce" ver. 3.0.2 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
WPC Countdown Timer helps you display countdown timer in single product pages and shop page.

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 detected13,730 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111,3105308,408
CSS6415272,768
PHP5222591,387
Sass113101,138
SVG10029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity50.00
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48.33%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected