84% hb-customer-send-atmcode-to-administrator-for-woocommerce

Code Review | HB Customer Send ATMCode To Administrator for WooCommerce

WordPress plugin HB Customer Send ATMCode To Administrator for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: hb-customer-send-...
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2022
  • Latest release: Aug 21, 2022
  • Number of updates: 13
  • Update frequency: every 2.9 days
  • Top authors: heiblack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.33ms] Passed 4 tests

A check of server-side resources used by HB Customer Send ATMCode To Administrator for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.85 ▼0.01
Dashboard /wp-admin3.35 ▲0.0450.51 ▼5.27
Posts /wp-admin/edit.php3.40 ▲0.0450.36 ▼3.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.05 ▼5.77
Media Library /wp-admin/upload.php3.27 ▲0.0437.49 ▼2.84

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

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

Browser metrics Passed 4 tests

HB Customer Send ATMCode To Administrator for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.421.95 ▼0.0341.93 ▼2.50
Dashboard /wp-admin2,209 ▲245.86 ▲0.05103.55 ▼13.1143.22 ▼0.69
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0333.59 ▼3.3232.59 ▲0.36
Add New Post /wp-admin/post-new.php1,528 ▼523.37 ▲0.01681.05 ▼4.6054.56 ▼4.26
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0698.38 ▼3.4244.32 ▼1.68

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-SendMessageView.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-sendMessage.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/hb-customer-send-atmcode-to-administrator-for-woocommerce/page/HB-Settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: atm

hb-customer-send-atmcode-to-administrator-for-woocommerce/hb-customer-send-atmcode-to-administrator-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "HB Customer Send ATMCode To Administrator for WooCommerce" version 0.1.3
63 characters long description:
A Simple Customer Send ATMCode To Administrator for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected495 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP46528410
CSS19054
JavaScript110031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity8.00
▷ Maximum class complexity26.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods861.54%
▷ Protected methods00.00%
▷ Private methods538.46%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin