84% webatta-deposit-for-wc-products

Code Review | Webatta - Deposit price for WooCommerce products

WordPress plugin Webatta - Deposit price for WooCommerce products scored84%from 54 tests.

About plugin

  • Plugin page: webatta-deposit-f...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: May 23, 2021
  • Latest release: Feb 2, 2022
  • Number of updates: 18
  • Update frequency: every 14.3 days
  • Top authors: webatta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,113 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.99ms] Passed 4 tests

Analyzing server-side resources used by Webatta - Deposit price for WooCommerce products
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0449.00 ▲5.18
Dashboard /wp-admin3.34 ▼0.0049.86 ▼18.15
Posts /wp-admin/edit.php3.47 ▲0.1171.78 ▲18.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.60 ▼5.10
Media Library /wp-admin/upload.php3.27 ▲0.0438.18 ▲2.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webatta - Deposit price for WooCommerce products
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.27 ▼0.281.89 ▲0.1539.45 ▼5.65
Dashboard /wp-admin2,195 ▲185.61 ▲0.0190.84 ▼2.6738.24 ▼4.28
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0236.37 ▼2.7934.93 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.22672.32 ▲0.8166.30 ▲14.46
Media Library /wp-admin/upload.php1,403 ▲94.19 ▲0.0297.23 ▼6.2544.72 ▲0.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 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/webatta-deposit-for-wc-products/webatta-deposit.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: ecommerce

webatta-deposit-for-wc-products/webatta-deposit.php 85% from 13 tests

"Webatta - Deposit price for WooCommerce products" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webatta-deposit-for-wc-products.php" instead of "webatta-deposit.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
Everything looks great! No dangerous files found in this plugin144 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16348102
PO File1101042

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin