83% wc-net-30-terms-for-woocommerce

Code Review | NET-30 Terms for Woocommercee

WordPress plugin NET-30 Terms for Woocommercee scored83%from 54 tests.

About plugin

  • Plugin page: wc-net-30-terms-f...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 3
  • Update frequency: every 23.7 days
  • Top authors: gregbast1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /606 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
Installer ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼21.26ms] Passed 4 tests

Server-side resources used by NET-30 Terms for Woocommercee
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.39 ▼5.14
Dashboard /wp-admin3.20 ▼0.1428.88 ▼30.53
Posts /wp-admin/edit.php3.27 ▼0.0932.52 ▼17.42
Add New Post /wp-admin/post-new.php5.44 ▼0.4471.61 ▼31.96
Media Library /wp-admin/upload.php3.21 ▼0.0234.44 ▲0.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
recovery_mode_email_last_sent
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for NET-30 Terms for Woocommercee
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,450 ▼1,29612.42 ▼1.961.88 ▲0.0537.07 ▼5.97
Dashboard /wp-admin843 ▼1,3491.38 ▼3.5813.19 ▼95.5015.75 ▼27.00
Posts /wp-admin/edit.php854 ▼1,2351.53 ▼0.526.21 ▼34.0815.50 ▼21.11
Add New Post /wp-admin/post-new.php580 ▼9341.73 ▼15.7323.14 ▼658.867.86 ▼49.98
Media Library /wp-admin/upload.php739 ▼6491.73 ▼2.5124.55 ▼74.8724.46 ▼22.71

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-net-30-terms-for-woocommerce/woocommerce-net-30.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: net-30, woocommerce

wc-net-30-terms-for-woocommerce/woocommerce-net-30.php 77% from 13 tests

The main file in "NET-30 Terms for Woocommercee" v. 1.1 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-net-30-terms-for-woocommerce.php" instead of "woocommerce-net-30.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1153143
Markdown119022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/with-net-30.png41.70KB16.81KB▼ 59.68%
screenshots/enable-cheque-option.png34.98KB14.08KB▼ 59.76%
screenshots/without-net-30.png39.57KB15.50KB▼ 60.84%
screenshots/activate-net-30-terms.png19.38KB8.37KB▼ 56.79%