90% woo-product-remover-from-checkout-page

Code Review | Woocommerce Product Remover From Checkout Page

WordPress plugin Woocommerce Product Remover From Checkout Page scored90%from 54 tests.

About plugin

  • Plugin page: woo-product-remov...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Jul 25, 2017
  • Latest release: Jul 25, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ratulbinhasan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Woocommerce Product Remover From Checkout Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.76 ▼6.54
Dashboard /wp-admin3.31 ▲0.0144.09 ▼5.90
Posts /wp-admin/edit.php3.36 ▲0.0047.28 ▲2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.67 ▼12.92
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▲1.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Product Remover From Checkout Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.491.71 ▼0.0643.36 ▼0.80
Dashboard /wp-admin2,206 ▲205.90 ▲0.99104.64 ▼19.0540.87 ▼8.74
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0340.67 ▲2.9334.23 ▲1.45
Add New Post /wp-admin/post-new.php1,533 ▲523.27 ▲4.72657.73 ▲8.1268.46 ▲16.11
Media Library /wp-admin/upload.php1,382 ▼94.23 ▼0.0098.06 ▼6.7341.32 ▼8.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
5 plugin tags: product remover from woocommerce checkout page, delete product woocommerce checkout page, woocommerce checkout product remover, remove product from woocommerce checkout page, woocommerce checkout page product delete

woo-product-remover-from-checkout-page/woocommerce product remover from checkout page.php 92% from 13 tests

"Woocommerce Product Remover From Checkout Page" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-product-remover-from-checkout-page.php" instead of "woocommerce product remover from checkout page.php")

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
Success! There were no dangerous files found in this plugin26 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP381423
JavaScript12273
CSS1040

PHP code Passed 2 tests

A short 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.40
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 are no PNG files in this plugin