90% wpf-product-countdown-timer

Code Review | WPF Product Countdown Timer

WordPress plugin WPF Product Countdown Timer scored90%from 54 tests.

About plugin

  • Plugin page: wpf-product-count...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2021
  • Latest release: Jul 18, 2023
  • Number of updates: 15
  • Update frequency: every 46.0 days
  • Top authors: wpfound (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,572 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.04MB] [CPU: ▼2.61ms] Passed 4 tests

A check of server-side resources used by WPF Product Countdown Timer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.33 ▼2.88
Dashboard /wp-admin3.35 ▲0.0548.84 ▲0.21
Posts /wp-admin/edit.php3.40 ▲0.0450.92 ▼0.63
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.69 ▼6.37
Media Library /wp-admin/upload.php3.27 ▲0.0436.51 ▼0.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WPF Product Countdown Timer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.42 ▼0.938.29 ▲6.6843.21 ▼3.09
Dashboard /wp-admin2,198 ▲245.61 ▲0.0492.73 ▲1.1944.93 ▲1.81
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0039.52 ▼1.5734.74 ▼10.20
Add New Post /wp-admin/post-new.php1,406 ▼13118.18 ▼0.04586.14 ▼69.5650.33 ▼10.04
Media Library /wp-admin/upload.php1,394 ▼34.21 ▲0.0197.13 ▼7.0147.64 ▲5.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can look at the official readme.txt

wpf-product-countdown-timer/wpf-product-countdown-timer.php Passed 13 tests

This is the main PHP file of "WPF Product Countdown Timer" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
WPF Product Countdown Timer plugin helps you display for single product page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin292 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25895191
CSS1211265
JavaScript18536

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin