83% woocommerce-show-free-shipping-only-by-nunoapps

Code Review | WooCommerce: Show Free Shipping Only by NunoApps

WordPress plugin WooCommerce: Show Free Shipping Only by NunoApps scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-show-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2013
  • Latest release: Dec 10, 2013
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: namaless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WooCommerce: Show Free Shipping Only by NunoApps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.51 ▼2.93
Dashboard /wp-admin3.31 ▲0.0052.12 ▼3.53
Posts /wp-admin/edit.php3.36 ▲0.0049.84 ▼11.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.40 ▼34.62
Media Library /wp-admin/upload.php3.23 ▲0.0034.04 ▼3.75

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WooCommerce: Show Free Shipping Only by NunoApps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.334.61 ▲2.7043.18 ▼0.29
Dashboard /wp-admin2,209 ▲245.91 ▲1.0298.25 ▼8.9938.89 ▼5.04
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0239.14 ▼4.2434.17 ▼5.09
Add New Post /wp-admin/post-new.php1,533 ▼123.23 ▼0.22600.46 ▼44.5748.66 ▼12.41
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0797.80 ▼0.8142.19 ▼2.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-show-free-shipping-only-by-nunoapps/nunoapps-woocommerce-show-free-shipping-only.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: woocommerce

woocommerce-show-free-shipping-only-by-nunoapps/nunoapps-woocommerce-show-free-shipping-only.php 77% from 13 tests

The main file in "WooCommerce: Show Free Shipping Only by NunoApps" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-show-free-shipping-only-by-nunoapps.php" instead of "nunoapps-woocommerce-show-free-shipping-only.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown18017
PHP16448

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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
There were not PNG files found in your plugin