94% woo-product-remover

Code Review | Woo Product Remover

WordPress plugin Woo Product Remover scored 94% from 54 tests.

About plugin

  • Plugin page: woo-product-remover
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 5.8.1
  • First release: Dec 27, 2016
  • Latest release: Mar 20, 2017
  • Number of updates: 5
  • Update frequency: every 16.2 days
  • Top authors: mcfarhat (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

3,000+ active / 22,416 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Woo Product Remover
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0038.00 ▼0.33
Dashboard /wp-admin3.06 ▲0.0154.78 ▲7.04
Posts /wp-admin/edit.php3.11 ▲0.0144.70 ▲2.98
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.61 ▼570.63
Media Library /wp-admin/upload.php3.00 ▲0.0035.05 ▼0.17

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woo Product Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.79 ▲0.3310.77 ▲0.0549.44 ▼6.60
Dashboard /wp-admin3,009 ▲755.97 ▼0.20144.49 ▼11.51121.34 ▲1.56
Posts /wp-admin/edit.php2,756 ▲172.69 ▼0.0174.07 ▲6.4995.28 ▼0.48
Add New Post /wp-admin/post-new.php1,696 ▲19818.80 ▼0.02365.29 ▼24.93109.42 ▼17.30
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.09158.46 ▼4.45132.53 ▲7.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-remover/woo-product-remover.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === woo-product-remover === )
The official readme.txt might help

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

The main PHP script in "Woo Product Remover" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)

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
There were no executable files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132079

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions3
▷ Named functions3100.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