84% remove-address-from-e-commerce

Code Review | Remove Address from E-commerce

WordPress plugin Remove Address from E-commerce scored84%from 54 tests.

About plugin

  • Plugin page: remove-address-fr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 15, 2021
  • Latest release: Nov 5, 2022
  • Number of updates: 6
  • Update frequency: every 78.8 days
  • Top authors: pileggi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Remove Address from E-commerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.44 ▼2.43
Dashboard /wp-admin3.31 ▲0.0042.74 ▼4.12
Posts /wp-admin/edit.php3.36 ▲0.0048.00 ▲7.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.90 ▼9.33
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲1.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Remove Address from E-commerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.74 ▼0.621.60 ▼0.5644.46 ▼0.89
Dashboard /wp-admin2,209 ▲214.82 ▼0.04108.93 ▼5.0940.36 ▼2.86
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0339.51 ▼2.4034.07 ▼0.29
Add New Post /wp-admin/post-new.php1,542 ▲1423.27 ▲4.92652.20 ▲26.4160.78 ▼2.30
Media Library /wp-admin/upload.php1,382 ▼64.22 ▼0.00104.37 ▼1.4647.33 ▲4.04

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-address-from-e-commerce/remove-address-from-e-commerce.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, remove address fields

remove-address-from-e-commerce/remove-address-from-e-commerce.php Passed 13 tests

The primary PHP file in "Remove Address from E-commerce" version 1.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
Removes address fields from the woocommerce order screen.

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin