90% free-shipping-notice-for-woocommerce

Code Review | Free Shipping Notice for WooCommerce

WordPress plugin Free Shipping Notice for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: free-shipping-not...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 3, 2018
  • Latest release: Mar 11, 2019
  • Number of updates: 15
  • Update frequency: every 16.7 days
  • Top authors: caitlinchou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,037 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.32ms] Passed 4 tests

A check of server-side resources used by Free Shipping Notice for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.19 ▼6.21
Dashboard /wp-admin3.31 ▲0.0043.90 ▼4.50
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▲1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.28 ▼15.27
Media Library /wp-admin/upload.php3.23 ▲0.0033.26 ▲0.69

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Free Shipping Notice for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.25 ▼1.251.64 ▼0.1239.15 ▼9.92
Dashboard /wp-admin2,215 ▲274.84 ▼0.0497.12 ▼4.4038.90 ▼2.12
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.0139.16 ▼1.2634.10 ▼2.36
Add New Post /wp-admin/post-new.php1,539 ▲2023.24 ▲0.01671.56 ▼2.3663.80 ▲13.65
Media Library /wp-admin/upload.php1,394 ▲94.19 ▼0.0494.80 ▼9.0941.96 ▼4.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% 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
8 plugin tags: free shipping, free shipping promotion, cart, checkout, free shipping tracker...

free-shipping-notice-for-woocommerce/free-shipping-notice.php 92% from 13 tests

"Free Shipping Notice for WooCommerce" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("free-shipping-notice-for-woocommerce.php" instead of "free-shipping-notice.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,497 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33301621,369
PHP11411127
CSS1281

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions10
▷ Named functions10100.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 are no PNG files in this plugin