99% remove-related-products

Code Review | Remove Related Products

WordPress plugin Remove Related Products scored 99% from 54 tests.

About plugin

  • Plugin page: remove-related-pr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 5.8.1
  • First release: Apr 21, 2017
  • Latest release: Nov 7, 2019
  • Number of updates: 8
  • Update frequency: every 116.3 days
  • Top authors: hellomohsinkhan (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,417 total downloads

Benchmarks

Plugin footprint Passed 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: ▼148.64ms] Passed 4 tests

Analyzing server-side resources used by Remove Related Products
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.29 ▲15.75
Dashboard /wp-admin3.06 ▲0.0143.63 ▼5.36
Posts /wp-admin/edit.php3.11 ▲0.0157.85 ▲8.71
Add New Post /wp-admin/post-new.php5.42 ▼0.01104.74 ▼573.49
Media Library /wp-admin/upload.php3.00 ▲0.0031.67 ▼24.42

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Related Products
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲12215.98 ▲0.3610.79 ▼4.7449.55 ▼0.47
Dashboard /wp-admin2,967 ▲365.92 ▼0.08161.26 ▼10.30112.90 ▼10.88
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0279.25 ▼24.1193.59 ▼2.31
Add New Post /wp-admin/post-new.php1,683 ▼1,85318.79 ▲1.14423.76 ▼210.44114.12 ▼5.36
Media Library /wp-admin/upload.php1,807 ▲35.04 ▲0.00167.08 ▼32.84123.16 ▼15.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: remove related product, woocommerce-addon, woocommerce

remove-related-products/woocommerce-addon-remove-related-product.php 85% from 13 tests

The main PHP script in "Remove Related Products" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-related-products.php" instead of "woocommerce-addon-remove-related-product.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11178

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected