89% ebizzpay-for-woocommerce

Code Review | EbizzPay for WooCommerce

WordPress plugin EbizzPay for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: ebizzpay-for-wooc...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Sep 19, 2022
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: ebizzpay889 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by EbizzPay for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.51 ▼12.08
Dashboard /wp-admin3.35 ▲0.0148.65 ▼11.36
Posts /wp-admin/edit.php3.47 ▲0.1147.29 ▲0.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0480.75 ▼21.92
Media Library /wp-admin/upload.php3.28 ▲0.0435.22 ▲0.24

Server storage [IO: ▲0.09MB] [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: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for EbizzPay for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.21 ▼1.181.76 ▼0.5242.04 ▼5.81
Dashboard /wp-admin2,212 ▲215.89 ▲0.0899.80 ▼18.1840.95 ▼1.61
Posts /wp-admin/edit.php2,094 ▲52.00 ▼0.0135.11 ▼1.2032.64 ▼3.76
Add New Post /wp-admin/post-new.php1,553 ▲2018.73 ▼4.51641.66 ▼20.4664.99 ▲14.43
Media Library /wp-admin/upload.php1,388 ▼34.32 ▲0.1199.90 ▼1.6842.02 ▼3.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: ebizzpay, woocommerce, payment

ebizzpay-for-woocommerce/ebizzpay-wc.php 85% from 13 tests

The principal PHP file in "EbizzPay for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ebizzpay-for-woocommerce.php" instead of "ebizzpay-wc.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin670 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1126485670

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.83
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods2255.00%
▷ Protected methods37.50%
▷ Private methods1537.50%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ebizzpay.png14.26KB4.98KB▼ 65.09%