84% shipping-countdown-for-woocommerce

Code Review | Shipping Countdown For WooCommerce

WordPress plugin Shipping Countdown For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: shipping-countdow...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Sep 11, 2018
  • Latest release: Sep 11, 2018
  • Number of updates: 6
  • Update frequency: every 16.8 days
  • Top authors: Brad Davis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,203 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: ▼1.68ms] Passed 4 tests

Server-side resources used by Shipping Countdown For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.45 ▼0.24
Dashboard /wp-admin3.32 ▲0.0144.35 ▼4.18
Posts /wp-admin/edit.php3.37 ▲0.0145.26 ▲0.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.88 ▼2.56
Media Library /wp-admin/upload.php3.24 ▲0.0137.01 ▲2.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shipping Countdown For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.57 ▲0.291.62 ▼0.1141.21 ▲0.96
Dashboard /wp-admin2,198 ▲205.62 ▼0.0291.41 ▼7.7841.33 ▲1.31
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0538.89 ▲2.2037.29 ▲1.80
Add New Post /wp-admin/post-new.php1,535 ▲918.19 ▼4.60596.88 ▼38.5957.33 ▲4.81
Media Library /wp-admin/upload.php1,400 ▼04.10 ▼0.1096.47 ▼12.7342.51 ▼3.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/shipping-countdown-for-woocommerce/classes/class_extends_customizer.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: woocommerce, shipping

shipping-countdown-for-woocommerce/shipping-countdown-for-woocommerce.php 85% from 13 tests

The main PHP script in "Shipping Countdown For WooCommerce" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9.0" instead of "3.4.0")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin323 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP548184264
JavaScript14537
CSS14019
Markdown1203

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods633.33%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin